From 1f4588625ec7f4af6fc96dc8a3528e3b8af074cf Mon Sep 17 00:00:00 2001 From: Naohiro Yoshida Date: Wed, 10 Jul 2024 11:32:13 +0900 Subject: [PATCH] Bump tonic to 0.12 (#283) * bump tonic to 0.12 * add webpki roots to ClientTlsConfig --- artifact-registry/Cargo.toml | 10 +++---- bigquery/Cargo.toml | 6 ++--- foundation/gax/Cargo.toml | 6 ++--- foundation/gax/src/conn.rs | 2 +- foundation/longrunning/Cargo.toml | 10 +++---- googleapis/Cargo.toml | 12 ++++----- googleapis/src/bytes/google.api.rs | 2 +- .../bytes/google.cloud.bigquery.storage.v1.rs | 20 +++++++------- googleapis/src/bytes/google.cloud.kms.v1.rs | 8 +++--- .../google.devtools.artifactregistry.v1.rs | 10 +++---- googleapis/src/bytes/google.iam.v1.rs | 2 +- googleapis/src/bytes/google.pubsub.v1.rs | 26 +++++++++---------- googleapis/src/bytes/google.r#type.rs | 2 +- .../bytes/google.spanner.admin.database.v1.rs | 2 +- .../bytes/google.spanner.admin.instance.v1.rs | 2 +- googleapis/src/bytes/google.spanner.v1.rs | 20 +++++++------- googleapis/src/bytes/google.storage.v2.rs | 18 ++++++------- googleapis/src/google.api.rs | 2 +- .../src/google.cloud.bigquery.storage.v1.rs | 20 +++++++------- googleapis/src/google.cloud.kms.v1.rs | 8 +++--- .../google.devtools.artifactregistry.v1.rs | 10 +++---- googleapis/src/google.iam.v1.rs | 2 +- googleapis/src/google.pubsub.v1.rs | 26 +++++++++---------- googleapis/src/google.r#type.rs | 2 +- .../src/google.spanner.admin.database.v1.rs | 2 +- .../src/google.spanner.admin.instance.v1.rs | 2 +- googleapis/src/google.spanner.v1.rs | 20 +++++++------- googleapis/src/google.storage.v2.rs | 18 ++++++------- kms/Cargo.toml | 8 +++--- pubsub/Cargo.toml | 8 +++--- spanner/Cargo.toml | 10 +++---- 31 files changed, 148 insertions(+), 148 deletions(-) diff --git a/artifact-registry/Cargo.toml b/artifact-registry/Cargo.toml index fd3cae79..fb67288d 100644 --- a/artifact-registry/Cargo.toml +++ b/artifact-registry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-cloud-artifact-registry" -version = "0.5.0" +version = "0.6.0" edition = "2021" authors = ["yoshidan "] repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/artifact-registry" @@ -13,14 +13,14 @@ documentation = "https://docs.rs/google-cloud-artifact-registry/latest/google_cl [dependencies] google-cloud-token = { version = "0.1.2", path = "../foundation/token" } google-cloud-auth = { optional = true, version = "0.16", path="../foundation/auth", default-features=false } -google-cloud-googleapis = { version="0.14.0", path = "../googleapis", features=["artifact-registry"]} -google-cloud-gax = { version = "0.18.0", path = "../foundation/gax"} -google-cloud-longrunning = { version = "0.19.0", path = "../foundation/longrunning" } +google-cloud-googleapis = { version="0.15.0", path = "../googleapis", features=["artifact-registry"]} +google-cloud-gax = { version = "0.19.0", path = "../foundation/gax"} +google-cloud-longrunning = { version = "0.20.0", path = "../foundation/longrunning" } tracing = "0.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" thiserror = "1.0" -prost-types = "0.12" +prost-types = "0.13" [dev-dependencies] tokio = { version="1.32", features=["rt-multi-thread"] } diff --git a/bigquery/Cargo.toml b/bigquery/Cargo.toml index 8138263c..f46a85cb 100644 --- a/bigquery/Cargo.toml +++ b/bigquery/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-cloud-bigquery" -version = "0.10.0" +version = "0.12.0" edition = "2021" authors = ["yoshidan "] repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/bigquery" @@ -13,8 +13,8 @@ documentation = "https://docs.rs/google-cloud-bigquery/latest/google_cloud_bigqu [dependencies] async-trait = "0.1" google-cloud-token = { version = "0.1.2", path = "../foundation/token" } -google-cloud-googleapis = { version="0.14.0", path = "../googleapis", features=["bigquery"]} -google-cloud-gax = { version = "0.18.0", path = "../foundation/gax"} +google-cloud-googleapis = { version="0.15.0", path = "../googleapis", features=["bigquery"]} +google-cloud-gax = { version = "0.19.0", path = "../foundation/gax"} thiserror = "1.0" tracing = "0.1" reqwest = { version = "0.12.4", features = ["json", "stream", "multipart", "charset"], default-features = false } diff --git a/foundation/gax/Cargo.toml b/foundation/gax/Cargo.toml index 1f19f132..e9fc8cc8 100644 --- a/foundation/gax/Cargo.toml +++ b/foundation/gax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-cloud-gax" -version = "0.18.0" +version = "0.19.0" authors = ["yoshidan "] edition = "2018" repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/foundation/gax" @@ -12,9 +12,9 @@ description = "Google Cloud Platform gRPC retry library." [dependencies] tracing = "0.1" tokio = { version = "1.32", features = ["macros"] } -tonic = { version = "0.11", features = ["prost", "tls-webpki-roots"] } +tonic = { version = "0.12", features = ["prost", "tls-webpki-roots"] } thiserror = "1.0" tower = { version = "0.4", features = ["filter"] } -http = "0.2" +http = "1.1" google-cloud-token = { version = "0.1.2", path = "../token" } tokio-retry = "0.3" diff --git a/foundation/gax/src/conn.rs b/foundation/gax/src/conn.rs index d7590a88..e9d70d10 100644 --- a/foundation/gax/src/conn.rs +++ b/foundation/gax/src/conn.rs @@ -141,7 +141,7 @@ impl<'a> ConnectionManager { ts_provider: &dyn TokenSourceProvider, conn_options: &'a ConnectionOptions, ) -> Result, Error> { - let tls_config = ClientTlsConfig::new().domain_name(domain_name); + let tls_config = ClientTlsConfig::new().with_webpki_roots().domain_name(domain_name); let mut conns = Vec::with_capacity(pool_size); let ts = ts_provider.token_source(); diff --git a/foundation/longrunning/Cargo.toml b/foundation/longrunning/Cargo.toml index feecec93..6e4551e6 100644 --- a/foundation/longrunning/Cargo.toml +++ b/foundation/longrunning/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-cloud-longrunning" -version = "0.19.0" +version = "0.20.0" authors = ["yoshidan "] edition = "2021" repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/foundation/longrunning" @@ -10,7 +10,7 @@ readme = "README.md" description = "Google Cloud Platform longrunning library." [dependencies] -google-cloud-googleapis = { version = "0.14.0", path = "../../googleapis" } -google-cloud-gax = { version = "0.18.0", path = "../gax" } -tonic = { version = "0.11", features = ["tls", "prost"] } -prost = "0.12" +google-cloud-googleapis = { version = "0.15.0", path = "../../googleapis" } +google-cloud-gax = { version = "0.19.0", path = "../gax" } +tonic = { version = "0.12", features = ["tls", "prost"] } +prost = "0.13" diff --git a/googleapis/Cargo.toml b/googleapis/Cargo.toml index b6ee4b79..4b16f446 100644 --- a/googleapis/Cargo.toml +++ b/googleapis/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-cloud-googleapis" -version = "0.14.0" +version = "0.15.0" authors = ["yoshidan "] edition = "2021" repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/googleapis" @@ -12,13 +12,13 @@ description = "Google Cloud Platform rust client." # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -tonic = { version = "0.11", features = ["tls", "prost", "gzip"] } -prost = "0.12" -prost-types = "0.12" +tonic = { version = "0.12", features = ["tls", "prost", "gzip"] } +prost = "0.13" +prost-types = "0.13" [build-dependencies] -tonic-build = { version = "0.11", optional = true } -prost-build = { version = "0.12", optional = true } +tonic-build = { version = "0.12", optional = true } +prost-build = { version = "0.13", optional = true } [features] spanner = [] diff --git a/googleapis/src/bytes/google.api.rs b/googleapis/src/bytes/google.api.rs index 9759f4c8..c96f9f7a 100644 --- a/googleapis/src/bytes/google.api.rs +++ b/googleapis/src/bytes/google.api.rs @@ -716,7 +716,7 @@ pub mod method_settings { /// generators (e.g. /// [Java]()). #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct LongRunning { /// Initial delay after which the first poll request will be made. /// Default value: 5 seconds. diff --git a/googleapis/src/bytes/google.cloud.bigquery.storage.v1.rs b/googleapis/src/bytes/google.cloud.bigquery.storage.v1.rs index 4295cbbd..a1ef14e4 100644 --- a/googleapis/src/bytes/google.cloud.bigquery.storage.v1.rs +++ b/googleapis/src/bytes/google.cloud.bigquery.storage.v1.rs @@ -27,7 +27,7 @@ pub struct ArrowRecordBatch { } /// Contains options specific to Arrow Serialization. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ArrowSerializationOptions { /// The compression codec to use for Arrow buffers in serialized record /// batches. @@ -104,7 +104,7 @@ pub struct AvroRows { } /// Contains options specific to Avro Serialization. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AvroSerializationOptions { /// Enable displayName attribute in Avro schema. /// @@ -445,7 +445,7 @@ pub struct ReadSession { pub mod read_session { /// Additional attributes when reading a table. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TableModifiers { /// The snapshot time of the table. If not set, interpreted as now. #[prost(message, optional, tag = "1")] @@ -535,7 +535,7 @@ pub mod read_session { /// Nested message and enum types in `TableReadOptions`. pub mod table_read_options { #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum OutputFormatSerializationOptions { /// Optional. Options specific to the Apache Arrow output format. #[prost(message, tag = "3")] @@ -819,7 +819,7 @@ pub struct ReadRowsRequest { } /// Information on if the current connection is being throttled. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ThrottleState { /// How much this connection is being throttled. Zero means no throttling, /// 100 means fully throttled. @@ -828,7 +828,7 @@ pub struct ThrottleState { } /// Estimated stream statistics for a given read Stream. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct StreamStats { /// Represents the progress of the current stream. #[prost(message, optional, tag = "2")] @@ -837,7 +837,7 @@ pub struct StreamStats { /// Nested message and enum types in `StreamStats`. pub mod stream_stats { #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Progress { /// The fraction of rows assigned to the stream that have been processed by /// the server so far, not including the rows in the current response @@ -1156,7 +1156,7 @@ pub struct AppendRowsResponse { pub mod append_rows_response { /// AppendResult is returned for successful append requests. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AppendResult { /// The row offset at which the last append occurred. The offset will not be /// set if appending using default streams. @@ -1246,7 +1246,7 @@ pub struct FinalizeWriteStreamRequest { } /// Response message for `FinalizeWriteStream`. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct FinalizeWriteStreamResponse { /// Number of rows in the finalized stream. #[prost(int64, tag = "1")] @@ -1266,7 +1266,7 @@ pub struct FlushRowsRequest { } /// Respond message for `FlushRows`. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct FlushRowsResponse { /// The rows before this offset (including this offset) are flushed. #[prost(int64, tag = "1")] diff --git a/googleapis/src/bytes/google.cloud.kms.v1.rs b/googleapis/src/bytes/google.cloud.kms.v1.rs index c617efeb..90abefb3 100644 --- a/googleapis/src/bytes/google.cloud.kms.v1.rs +++ b/googleapis/src/bytes/google.cloud.kms.v1.rs @@ -188,7 +188,7 @@ pub mod crypto_key { } /// Controls the rate of automatic rotation. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum RotationSchedule { /// [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] /// will be advanced by this period when the service automatically rotates a @@ -213,7 +213,7 @@ pub mod crypto_key { /// [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] /// or automatically as a result of auto-rotation. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CryptoKeyVersionTemplate { /// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating /// a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this @@ -2838,7 +2838,7 @@ pub mod digest { /// Cloud KMS metadata for the given /// [google.cloud.location.Location][google.cloud.location.Location]. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct LocationMetadata { /// Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with /// [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] @@ -4234,7 +4234,7 @@ pub struct VerifyConnectivityRequest { /// Response message for /// [EkmService.VerifyConnectivity][google.cloud.kms.v1.EkmService.VerifyConnectivity]. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct VerifyConnectivityResponse {} /// Generated client implementations. pub mod ekm_service_client { diff --git a/googleapis/src/bytes/google.devtools.artifactregistry.v1.rs b/googleapis/src/bytes/google.devtools.artifactregistry.v1.rs index c1d6941d..88ef37fc 100644 --- a/googleapis/src/bytes/google.devtools.artifactregistry.v1.rs +++ b/googleapis/src/bytes/google.devtools.artifactregistry.v1.rs @@ -426,7 +426,7 @@ pub struct ImportYumArtifactsResponse { } /// The operation metadata for importing artifacts. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ImportYumArtifactsMetadata {} /// The Artifact Registry VPC SC config that apply to a Project. #[allow(clippy::derive_partial_eq_without_eq)] @@ -654,7 +654,7 @@ pub struct ImportAptArtifactsResponse { } /// The operation metadata for importing artifacts. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ImportAptArtifactsMetadata {} /// A hash of file content. #[allow(clippy::derive_partial_eq_without_eq)] @@ -902,7 +902,7 @@ pub mod repository { /// Provides additional configuration details for repositories of the maven /// format type. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MavenRepositoryConfig { /// The repository with this flag will allow publishing /// the same snapshot versions. @@ -1021,7 +1021,7 @@ pub mod repository { } /// Repository-specific configurations. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum FormatConfig { /// Maven repository config contains repository level configuration /// for the repositories of maven type. @@ -1428,7 +1428,7 @@ impl VersionView { } /// Metadata type for longrunning-operations, currently empty. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OperationMetadata {} /// Generated client implementations. pub mod artifact_registry_client { diff --git a/googleapis/src/bytes/google.iam.v1.rs b/googleapis/src/bytes/google.iam.v1.rs index 92d20ad5..f9c60b84 100644 --- a/googleapis/src/bytes/google.iam.v1.rs +++ b/googleapis/src/bytes/google.iam.v1.rs @@ -1,7 +1,7 @@ // This file is @generated by prost-build. /// Encapsulates settings provided to GetIamPolicy. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetPolicyOptions { /// Optional. The maximum policy version that will be used to format the /// policy. diff --git a/googleapis/src/bytes/google.pubsub.v1.rs b/googleapis/src/bytes/google.pubsub.v1.rs index 703c7fd8..9dda09ba 100644 --- a/googleapis/src/bytes/google.pubsub.v1.rs +++ b/googleapis/src/bytes/google.pubsub.v1.rs @@ -227,7 +227,7 @@ pub struct ValidateSchemaRequest { /// Response for the `ValidateSchema` method. /// Empty for now. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ValidateSchemaResponse {} /// Request for the `ValidateMessage` method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -264,7 +264,7 @@ pub mod validate_message_request { /// Response for the `ValidateMessage` method. /// Empty for now. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ValidateMessageResponse {} /// View of Schema object fields to be returned by GetSchema and ListSchemas. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] @@ -844,7 +844,7 @@ pub struct DetachSubscriptionRequest { /// Response for the DetachSubscription method. /// Reserved for future use. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DetachSubscriptionResponse {} /// A subscription resource. If none of `push_config`, `bigquery_config`, or /// `cloud_storage_config` is set, then the subscriber will pull and ack messages @@ -1043,7 +1043,7 @@ pub mod subscription { /// between consecutive deliveries may not match the configuration. That is, /// delay can be more or less than configured backoff. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RetryPolicy { /// The minimum delay between consecutive deliveries of a given message. /// Value should be between 0 and 600 seconds. Defaults to 10 seconds. @@ -1092,7 +1092,7 @@ pub struct DeadLetterPolicy { /// A policy that specifies the conditions for resource expiration (i.e., /// automatic resource deletion). #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ExpirationPolicy { /// Specifies the "time-to-live" duration for an associated resource. The /// resource expires if it is not active for a period of `ttl`. The definition @@ -1174,11 +1174,11 @@ pub mod push_config { /// of a PubsubMessage /// (). #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PubsubWrapper {} /// Sets the `data` field as the HTTP body for delivery. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NoWrapper { /// When true, writes the Pub/Sub message metadata to /// `x-goog-pubsub-:` headers of the HTTP request. Writes the @@ -1202,7 +1202,7 @@ pub mod push_config { /// The format of the delivered message to the push endpoint is defined by /// the chosen wrapper. When unset, `PubsubWrapper` is used. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Wrapper { /// When set, the payload to the push endpoint is in the form of the JSON /// representation of a PubsubMessage @@ -1337,12 +1337,12 @@ pub mod cloud_storage_config { /// Message payloads will be written to files as raw text, separated by a /// newline. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TextConfig {} /// Configuration for writing message data in Avro format. /// Message payloads and metadata will be written to files as an Avro binary. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AvroConfig { /// When true, write the subscription name, message_id, publish_time, /// attributes, and ordering_key as additional fields in the output. The @@ -1393,7 +1393,7 @@ pub mod cloud_storage_config { } /// Defaults to text format. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum OutputFormat { /// If set, message data will be written to Cloud Storage in text format. #[prost(message, tag = "4")] @@ -1717,7 +1717,7 @@ pub mod streaming_pull_response { } /// Subscription properties sent as part of the response. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SubscriptionProperties { /// True iff exactly once delivery is enabled for this subscription. #[prost(bool, tag = "1")] @@ -1882,7 +1882,7 @@ pub mod seek_request { } /// Response for the `Seek` method (this response is empty). #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SeekResponse {} /// Generated client implementations. pub mod publisher_client { diff --git a/googleapis/src/bytes/google.r#type.rs b/googleapis/src/bytes/google.r#type.rs index ab630757..9eb064a3 100644 --- a/googleapis/src/bytes/google.r#type.rs +++ b/googleapis/src/bytes/google.r#type.rs @@ -65,7 +65,7 @@ pub struct Expr { /// Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and /// `google.protobuf.Timestamp`. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Date { /// Year of the date. Must be from 1 to 9999, or 0 to specify a date without /// a year. diff --git a/googleapis/src/bytes/google.spanner.admin.database.v1.rs b/googleapis/src/bytes/google.spanner.admin.database.v1.rs index 4e0c0c5e..4925ada8 100644 --- a/googleapis/src/bytes/google.spanner.admin.database.v1.rs +++ b/googleapis/src/bytes/google.spanner.admin.database.v1.rs @@ -2,7 +2,7 @@ /// Encapsulates progress related information for a Cloud Spanner long /// running operation. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OperationProgress { /// Percent completion of the operation. /// Values are between 0 and 100 inclusive. diff --git a/googleapis/src/bytes/google.spanner.admin.instance.v1.rs b/googleapis/src/bytes/google.spanner.admin.instance.v1.rs index 1da1d2b9..03c3742c 100644 --- a/googleapis/src/bytes/google.spanner.admin.instance.v1.rs +++ b/googleapis/src/bytes/google.spanner.admin.instance.v1.rs @@ -2,7 +2,7 @@ /// Encapsulates progress related information for a Cloud Spanner long /// running instance operations. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OperationProgress { /// Percent completion of the operation. /// Values are between 0 and 100 inclusive. diff --git a/googleapis/src/bytes/google.spanner.v1.rs b/googleapis/src/bytes/google.spanner.v1.rs index 2ed75a07..7c563072 100644 --- a/googleapis/src/bytes/google.spanner.v1.rs +++ b/googleapis/src/bytes/google.spanner.v1.rs @@ -1,7 +1,7 @@ // This file is @generated by prost-build. /// The response for [Commit][google.spanner.v1.Spanner.Commit]. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CommitResponse { /// The Cloud Spanner timestamp at which the transaction committed. #[prost(message, optional, tag = "1")] @@ -16,7 +16,7 @@ pub struct CommitResponse { pub mod commit_response { /// Additional statistics about a commit. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CommitStats { /// The total number of mutations for the transaction. Knowing the /// `mutation_count` value can help you maximize the number of mutations @@ -742,7 +742,7 @@ pub struct QueryPlan { /// operations that are idempotent, such as deleting old rows from a very large /// table. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TransactionOptions { /// Required. The type of transaction. #[prost(oneof = "transaction_options::Mode", tags = "1, 3, 2")] @@ -753,7 +753,7 @@ pub mod transaction_options { /// Message type to initiate a read-write transaction. Currently this /// transaction type has no options. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ReadWrite { /// Read lock mode for the transaction. #[prost(enumeration = "read_write::ReadLockMode", tag = "1")] @@ -816,11 +816,11 @@ pub mod transaction_options { } /// Message type to initiate a Partitioned DML transaction. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PartitionedDml {} /// Message type to initiate a read-only transaction. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ReadOnly { /// If true, the Cloud Spanner-selected read timestamp is included in /// the [Transaction][google.spanner.v1.Transaction] message that describes @@ -835,7 +835,7 @@ pub mod transaction_options { pub mod read_only { /// How to choose the timestamp for the read-only transaction. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum TimestampBound { /// Read at a timestamp where all previously committed transactions /// are visible. @@ -899,7 +899,7 @@ pub mod transaction_options { } /// Required. The type of transaction. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Mode { /// Transaction may write. /// @@ -1381,7 +1381,7 @@ pub struct ResultSetStats { pub mod result_set_stats { /// The number of rows modified by the DML statement. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum RowCount { /// Standard DML returns an exact count of rows that were modified. #[prost(int64, tag = "3")] @@ -1931,7 +1931,7 @@ pub struct ExecuteBatchDmlResponse { /// Options for a PartitionQueryRequest and /// PartitionReadRequest. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PartitionOptions { /// **Note:** This hint is currently ignored by PartitionQuery and /// PartitionRead requests. diff --git a/googleapis/src/bytes/google.storage.v2.rs b/googleapis/src/bytes/google.storage.v2.rs index 1343243f..6158a387 100644 --- a/googleapis/src/bytes/google.storage.v2.rs +++ b/googleapis/src/bytes/google.storage.v2.rs @@ -277,7 +277,7 @@ pub mod compose_object_request { pub mod source_object { /// Preconditions for a source object of a composition request. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ObjectPreconditions { /// Only perform the composition if the generation of the source object /// that would be used matches this value. If this value and a generation @@ -340,7 +340,7 @@ pub struct CancelResumableWriteRequest { /// Empty response message for canceling an in-progress resumable upload, will be /// extended as needed. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CancelResumableWriteResponse {} /// Request message for ReadObject. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1065,7 +1065,7 @@ pub struct CommonObjectRequestParams { } /// Shared constants. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ServiceConstants {} /// Nested message and enum types in `ServiceConstants`. pub mod service_constants { @@ -1370,7 +1370,7 @@ pub struct Bucket { pub mod bucket { /// Billing properties of a bucket. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Billing { /// When set to true, Requester Pays is enabled for this bucket. #[prost(bool, tag = "1")] @@ -1432,7 +1432,7 @@ pub mod bucket { /// Settings for Uniform Bucket level access. /// See #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct UniformBucketLevelAccess { /// If set, access checks only use bucket-level IAM policies or above. #[prost(bool, tag = "1")] @@ -1572,7 +1572,7 @@ pub mod bucket { } /// Retention policy properties of a bucket. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RetentionPolicy { /// Server-determined value that indicates the time from which policy was /// enforced and effective. @@ -1593,7 +1593,7 @@ pub mod bucket { /// For more on Cloud Storage versioning, see /// #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Versioning { /// While set to true, versioning is fully enabled for this bucket. #[prost(bool, tag = "1")] @@ -1631,7 +1631,7 @@ pub mod bucket { } /// Configuration for a bucket's Autoclass feature. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Autoclass { /// Enables Autoclass. #[prost(bool, tag = "1")] @@ -2078,7 +2078,7 @@ pub struct Owner { } /// Specifies a requested range of bytes to download. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ContentRange { /// The starting offset of the object data. #[prost(int64, tag = "1")] diff --git a/googleapis/src/google.api.rs b/googleapis/src/google.api.rs index 9759f4c8..c96f9f7a 100644 --- a/googleapis/src/google.api.rs +++ b/googleapis/src/google.api.rs @@ -716,7 +716,7 @@ pub mod method_settings { /// generators (e.g. /// [Java]()). #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct LongRunning { /// Initial delay after which the first poll request will be made. /// Default value: 5 seconds. diff --git a/googleapis/src/google.cloud.bigquery.storage.v1.rs b/googleapis/src/google.cloud.bigquery.storage.v1.rs index c006ab27..55181e7e 100644 --- a/googleapis/src/google.cloud.bigquery.storage.v1.rs +++ b/googleapis/src/google.cloud.bigquery.storage.v1.rs @@ -27,7 +27,7 @@ pub struct ArrowRecordBatch { } /// Contains options specific to Arrow Serialization. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ArrowSerializationOptions { /// The compression codec to use for Arrow buffers in serialized record /// batches. @@ -94,7 +94,7 @@ pub struct AvroRows { } /// Contains options specific to Avro Serialization. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AvroSerializationOptions { /// Enable displayName attribute in Avro schema. /// @@ -415,7 +415,7 @@ pub struct ReadSession { pub mod read_session { /// Additional attributes when reading a table. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TableModifiers { /// The snapshot time of the table. If not set, interpreted as now. #[prost(message, optional, tag = "1")] @@ -501,7 +501,7 @@ pub mod read_session { /// Nested message and enum types in `TableReadOptions`. pub mod table_read_options { #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum OutputFormatSerializationOptions { /// Optional. Options specific to the Apache Arrow output format. #[prost(message, tag = "3")] @@ -765,7 +765,7 @@ pub struct ReadRowsRequest { } /// Information on if the current connection is being throttled. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ThrottleState { /// How much this connection is being throttled. Zero means no throttling, /// 100 means fully throttled. @@ -774,7 +774,7 @@ pub struct ThrottleState { } /// Estimated stream statistics for a given read Stream. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct StreamStats { /// Represents the progress of the current stream. #[prost(message, optional, tag = "2")] @@ -783,7 +783,7 @@ pub struct StreamStats { /// Nested message and enum types in `StreamStats`. pub mod stream_stats { #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Progress { /// The fraction of rows assigned to the stream that have been processed by /// the server so far, not including the rows in the current response @@ -1087,7 +1087,7 @@ pub struct AppendRowsResponse { pub mod append_rows_response { /// AppendResult is returned for successful append requests. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AppendResult { /// The row offset at which the last append occurred. The offset will not be /// set if appending using default streams. @@ -1177,7 +1177,7 @@ pub struct FinalizeWriteStreamRequest { } /// Response message for `FinalizeWriteStream`. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct FinalizeWriteStreamResponse { /// Number of rows in the finalized stream. #[prost(int64, tag = "1")] @@ -1197,7 +1197,7 @@ pub struct FlushRowsRequest { } /// Respond message for `FlushRows`. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct FlushRowsResponse { /// The rows before this offset (including this offset) are flushed. #[prost(int64, tag = "1")] diff --git a/googleapis/src/google.cloud.kms.v1.rs b/googleapis/src/google.cloud.kms.v1.rs index 405eccca..d1082962 100644 --- a/googleapis/src/google.cloud.kms.v1.rs +++ b/googleapis/src/google.cloud.kms.v1.rs @@ -175,7 +175,7 @@ pub mod crypto_key { } /// Controls the rate of automatic rotation. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum RotationSchedule { /// [next_rotation_time][google.cloud.kms.v1.CryptoKey.next_rotation_time] /// will be advanced by this period when the service automatically rotates a @@ -200,7 +200,7 @@ pub mod crypto_key { /// [CreateCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion] /// or automatically as a result of auto-rotation. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CryptoKeyVersionTemplate { /// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when creating /// a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] based on this @@ -2703,7 +2703,7 @@ pub mod digest { /// Cloud KMS metadata for the given /// [google.cloud.location.Location][google.cloud.location.Location]. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct LocationMetadata { /// Indicates whether [CryptoKeys][google.cloud.kms.v1.CryptoKey] with /// [protection_level][google.cloud.kms.v1.CryptoKeyVersionTemplate.protection_level] @@ -3696,7 +3696,7 @@ pub struct VerifyConnectivityRequest { /// Response message for /// [EkmService.VerifyConnectivity][google.cloud.kms.v1.EkmService.VerifyConnectivity]. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct VerifyConnectivityResponse {} /// Generated client implementations. pub mod ekm_service_client { diff --git a/googleapis/src/google.devtools.artifactregistry.v1.rs b/googleapis/src/google.devtools.artifactregistry.v1.rs index afe8af56..215f2c81 100644 --- a/googleapis/src/google.devtools.artifactregistry.v1.rs +++ b/googleapis/src/google.devtools.artifactregistry.v1.rs @@ -416,7 +416,7 @@ pub struct ImportYumArtifactsResponse { } /// The operation metadata for importing artifacts. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ImportYumArtifactsMetadata {} /// The Artifact Registry VPC SC config that apply to a Project. #[allow(clippy::derive_partial_eq_without_eq)] @@ -624,7 +624,7 @@ pub struct ImportAptArtifactsResponse { } /// The operation metadata for importing artifacts. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ImportAptArtifactsMetadata {} /// A hash of file content. #[allow(clippy::derive_partial_eq_without_eq)] @@ -859,7 +859,7 @@ pub mod repository { /// Provides additional configuration details for repositories of the maven /// format type. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MavenRepositoryConfig { /// The repository with this flag will allow publishing /// the same snapshot versions. @@ -958,7 +958,7 @@ pub mod repository { } /// Repository-specific configurations. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum FormatConfig { /// Maven repository config contains repository level configuration /// for the repositories of maven type. @@ -1343,7 +1343,7 @@ impl VersionView { } /// Metadata type for longrunning-operations, currently empty. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OperationMetadata {} /// Generated client implementations. pub mod artifact_registry_client { diff --git a/googleapis/src/google.iam.v1.rs b/googleapis/src/google.iam.v1.rs index 400858f5..43f8cefc 100644 --- a/googleapis/src/google.iam.v1.rs +++ b/googleapis/src/google.iam.v1.rs @@ -1,7 +1,7 @@ // This file is @generated by prost-build. /// Encapsulates settings provided to GetIamPolicy. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct GetPolicyOptions { /// Optional. The maximum policy version that will be used to format the /// policy. diff --git a/googleapis/src/google.pubsub.v1.rs b/googleapis/src/google.pubsub.v1.rs index bb964265..00ea8019 100644 --- a/googleapis/src/google.pubsub.v1.rs +++ b/googleapis/src/google.pubsub.v1.rs @@ -227,7 +227,7 @@ pub struct ValidateSchemaRequest { /// Response for the `ValidateSchema` method. /// Empty for now. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ValidateSchemaResponse {} /// Request for the `ValidateMessage` method. #[allow(clippy::derive_partial_eq_without_eq)] @@ -264,7 +264,7 @@ pub mod validate_message_request { /// Response for the `ValidateMessage` method. /// Empty for now. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ValidateMessageResponse {} /// View of Schema object fields to be returned by GetSchema and ListSchemas. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] @@ -844,7 +844,7 @@ pub struct DetachSubscriptionRequest { /// Response for the DetachSubscription method. /// Reserved for future use. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DetachSubscriptionResponse {} /// A subscription resource. If none of `push_config`, `bigquery_config`, or /// `cloud_storage_config` is set, then the subscriber will pull and ack messages @@ -1043,7 +1043,7 @@ pub mod subscription { /// between consecutive deliveries may not match the configuration. That is, /// delay can be more or less than configured backoff. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RetryPolicy { /// The minimum delay between consecutive deliveries of a given message. /// Value should be between 0 and 600 seconds. Defaults to 10 seconds. @@ -1092,7 +1092,7 @@ pub struct DeadLetterPolicy { /// A policy that specifies the conditions for resource expiration (i.e., /// automatic resource deletion). #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ExpirationPolicy { /// Specifies the "time-to-live" duration for an associated resource. The /// resource expires if it is not active for a period of `ttl`. The definition @@ -1174,11 +1174,11 @@ pub mod push_config { /// of a PubsubMessage /// (). #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PubsubWrapper {} /// Sets the `data` field as the HTTP body for delivery. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct NoWrapper { /// When true, writes the Pub/Sub message metadata to /// `x-goog-pubsub-:` headers of the HTTP request. Writes the @@ -1202,7 +1202,7 @@ pub mod push_config { /// The format of the delivered message to the push endpoint is defined by /// the chosen wrapper. When unset, `PubsubWrapper` is used. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Wrapper { /// When set, the payload to the push endpoint is in the form of the JSON /// representation of a PubsubMessage @@ -1337,12 +1337,12 @@ pub mod cloud_storage_config { /// Message payloads will be written to files as raw text, separated by a /// newline. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TextConfig {} /// Configuration for writing message data in Avro format. /// Message payloads and metadata will be written to files as an Avro binary. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AvroConfig { /// When true, write the subscription name, message_id, publish_time, /// attributes, and ordering_key as additional fields in the output. The @@ -1393,7 +1393,7 @@ pub mod cloud_storage_config { } /// Defaults to text format. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum OutputFormat { /// If set, message data will be written to Cloud Storage in text format. #[prost(message, tag = "4")] @@ -1717,7 +1717,7 @@ pub mod streaming_pull_response { } /// Subscription properties sent as part of the response. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SubscriptionProperties { /// True iff exactly once delivery is enabled for this subscription. #[prost(bool, tag = "1")] @@ -1882,7 +1882,7 @@ pub mod seek_request { } /// Response for the `Seek` method (this response is empty). #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SeekResponse {} /// Generated client implementations. pub mod publisher_client { diff --git a/googleapis/src/google.r#type.rs b/googleapis/src/google.r#type.rs index ab630757..9eb064a3 100644 --- a/googleapis/src/google.r#type.rs +++ b/googleapis/src/google.r#type.rs @@ -65,7 +65,7 @@ pub struct Expr { /// Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and /// `google.protobuf.Timestamp`. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Date { /// Year of the date. Must be from 1 to 9999, or 0 to specify a date without /// a year. diff --git a/googleapis/src/google.spanner.admin.database.v1.rs b/googleapis/src/google.spanner.admin.database.v1.rs index 95c59af2..9cb02a0e 100644 --- a/googleapis/src/google.spanner.admin.database.v1.rs +++ b/googleapis/src/google.spanner.admin.database.v1.rs @@ -2,7 +2,7 @@ /// Encapsulates progress related information for a Cloud Spanner long /// running operation. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OperationProgress { /// Percent completion of the operation. /// Values are between 0 and 100 inclusive. diff --git a/googleapis/src/google.spanner.admin.instance.v1.rs b/googleapis/src/google.spanner.admin.instance.v1.rs index af8a7212..b1f06c06 100644 --- a/googleapis/src/google.spanner.admin.instance.v1.rs +++ b/googleapis/src/google.spanner.admin.instance.v1.rs @@ -2,7 +2,7 @@ /// Encapsulates progress related information for a Cloud Spanner long /// running instance operations. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct OperationProgress { /// Percent completion of the operation. /// Values are between 0 and 100 inclusive. diff --git a/googleapis/src/google.spanner.v1.rs b/googleapis/src/google.spanner.v1.rs index 34be29e6..dd37ca81 100644 --- a/googleapis/src/google.spanner.v1.rs +++ b/googleapis/src/google.spanner.v1.rs @@ -1,7 +1,7 @@ // This file is @generated by prost-build. /// The response for [Commit][google.spanner.v1.Spanner.Commit]. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CommitResponse { /// The Cloud Spanner timestamp at which the transaction committed. #[prost(message, optional, tag = "1")] @@ -16,7 +16,7 @@ pub struct CommitResponse { pub mod commit_response { /// Additional statistics about a commit. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CommitStats { /// The total number of mutations for the transaction. Knowing the /// `mutation_count` value can help you maximize the number of mutations @@ -732,7 +732,7 @@ pub struct QueryPlan { /// operations that are idempotent, such as deleting old rows from a very large /// table. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct TransactionOptions { /// Required. The type of transaction. #[prost(oneof = "transaction_options::Mode", tags = "1, 3, 2")] @@ -743,7 +743,7 @@ pub mod transaction_options { /// Message type to initiate a read-write transaction. Currently this /// transaction type has no options. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ReadWrite { /// Read lock mode for the transaction. #[prost(enumeration = "read_write::ReadLockMode", tag = "1")] @@ -796,11 +796,11 @@ pub mod transaction_options { } /// Message type to initiate a Partitioned DML transaction. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PartitionedDml {} /// Message type to initiate a read-only transaction. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ReadOnly { /// If true, the Cloud Spanner-selected read timestamp is included in /// the [Transaction][google.spanner.v1.Transaction] message that describes @@ -815,7 +815,7 @@ pub mod transaction_options { pub mod read_only { /// How to choose the timestamp for the read-only transaction. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum TimestampBound { /// Read at a timestamp where all previously committed transactions /// are visible. @@ -879,7 +879,7 @@ pub mod transaction_options { } /// Required. The type of transaction. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum Mode { /// Transaction may write. /// @@ -1361,7 +1361,7 @@ pub struct ResultSetStats { pub mod result_set_stats { /// The number of rows modified by the DML statement. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum RowCount { /// Standard DML returns an exact count of rows that were modified. #[prost(int64, tag = "3")] @@ -1885,7 +1885,7 @@ pub struct ExecuteBatchDmlResponse { /// Options for a PartitionQueryRequest and /// PartitionReadRequest. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PartitionOptions { /// **Note:** This hint is currently ignored by PartitionQuery and /// PartitionRead requests. diff --git a/googleapis/src/google.storage.v2.rs b/googleapis/src/google.storage.v2.rs index f21f30c7..eb12482e 100644 --- a/googleapis/src/google.storage.v2.rs +++ b/googleapis/src/google.storage.v2.rs @@ -275,7 +275,7 @@ pub mod compose_object_request { pub mod source_object { /// Preconditions for a source object of a composition request. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ObjectPreconditions { /// Only perform the composition if the generation of the source object /// that would be used matches this value. If this value and a generation @@ -338,7 +338,7 @@ pub struct CancelResumableWriteRequest { /// Empty response message for canceling an in-progress resumable upload, will be /// extended as needed. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CancelResumableWriteResponse {} /// Request message for ReadObject. #[allow(clippy::derive_partial_eq_without_eq)] @@ -1063,7 +1063,7 @@ pub struct CommonObjectRequestParams { } /// Shared constants. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ServiceConstants {} /// Nested message and enum types in `ServiceConstants`. pub mod service_constants { @@ -1323,7 +1323,7 @@ pub struct Bucket { pub mod bucket { /// Billing properties of a bucket. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Billing { /// When set to true, Requester Pays is enabled for this bucket. #[prost(bool, tag = "1")] @@ -1383,7 +1383,7 @@ pub mod bucket { /// Settings for Uniform Bucket level access. /// See #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct UniformBucketLevelAccess { /// If set, access checks only use bucket-level IAM policies or above. #[prost(bool, tag = "1")] @@ -1511,7 +1511,7 @@ pub mod bucket { } /// Retention policy properties of a bucket. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RetentionPolicy { /// Server-determined value that indicates the time from which policy was /// enforced and effective. @@ -1532,7 +1532,7 @@ pub mod bucket { /// For more on Cloud Storage versioning, see /// #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Versioning { /// While set to true, versioning is fully enabled for this bucket. #[prost(bool, tag = "1")] @@ -1570,7 +1570,7 @@ pub mod bucket { } /// Configuration for a bucket's Autoclass feature. #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Autoclass { /// Enables Autoclass. #[prost(bool, tag = "1")] @@ -2011,7 +2011,7 @@ pub struct Owner { } /// Specifies a requested range of bytes to download. #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ContentRange { /// The starting offset of the object data. #[prost(int64, tag = "1")] diff --git a/kms/Cargo.toml b/kms/Cargo.toml index bd36589b..0ff628c9 100644 --- a/kms/Cargo.toml +++ b/kms/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-cloud-kms" -version = "0.3.0" +version = "0.4.0" edition = "2021" authors = ["yoshidan "] repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/kms" @@ -13,13 +13,13 @@ documentation = "https://docs.rs/google-cloud-kms/latest/google_cloud_kms/" [dependencies] google-cloud-token = { version = "0.1.2", path = "../foundation/token" } google-cloud-auth = { optional = true, version = "0.16", path="../foundation/auth", default-features=false } -google-cloud-googleapis = { version="0.14.0", path = "../googleapis", features=["kms"]} -google-cloud-gax = { version = "0.18.0", path = "../foundation/gax"} +google-cloud-googleapis = { version="0.15.0", path = "../googleapis", features=["kms"]} +google-cloud-gax = { version = "0.19.0", path = "../foundation/gax"} tracing = "0.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" thiserror = "1.0" -prost-types = "0.12" +prost-types = "0.13" # ethereum ethers-core = { version = "2.0", optional = true} diff --git a/pubsub/Cargo.toml b/pubsub/Cargo.toml index c6fe051a..5f986314 100644 --- a/pubsub/Cargo.toml +++ b/pubsub/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-cloud-pubsub" -version = "0.27.0" +version = "0.28.0" authors = ["yoshidan "] edition = "2021" repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/pubsub" @@ -12,7 +12,7 @@ documentation = "https://docs.rs/google-cloud-pubsub/latest/google_cloud_pubsub/ [dependencies] tracing = "0.1" -prost-types = "0.12" +prost-types = "0.13" tokio = "1.32" async-channel = "1.9" async-stream = "0.3" @@ -20,8 +20,8 @@ thiserror = "1.0" tokio-util = "0.7" google-cloud-token = { version = "0.1.2", path = "../foundation/token" } -google-cloud-gax = { version = "0.18.0", path = "../foundation/gax" } -google-cloud-googleapis = { version = "0.14.0", path = "../googleapis", features = ["pubsub"]} +google-cloud-gax = { version = "0.19.0", path = "../foundation/gax" } +google-cloud-googleapis = { version = "0.15.0", path = "../googleapis", features = ["pubsub"]} google-cloud-auth = { optional = true, version = "0.16", path="../foundation/auth", default-features=false } diff --git a/spanner/Cargo.toml b/spanner/Cargo.toml index 406de6af..84425e74 100644 --- a/spanner/Cargo.toml +++ b/spanner/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-cloud-spanner" -version = "0.29.0" +version = "0.30.0" authors = ["yoshidan "] edition = "2021" repository = "https://github.com/yoshidan/google-cloud-rust/tree/main/spanner" @@ -12,7 +12,7 @@ documentation = "https://docs.rs/google-cloud-spanner/latest/google_cloud_spanne [dependencies] tracing = "0.1" -prost-types = "0.12" +prost-types = "0.13" tokio = "1.32" time = { version="0.3", features = ["std", "macros", "formatting", "parsing"] } thiserror = "1.0" @@ -23,9 +23,9 @@ tokio-util = "0.7" bigdecimal = { version="0.4", features=["serde"] } google-cloud-token = { version = "0.1.2", path = "../foundation/token" } -google-cloud-longrunning = { version = "0.19.0", path = "../foundation/longrunning" } -google-cloud-gax = { version = "0.18.0", path = "../foundation/gax" } -google-cloud-googleapis = { version = "0.14.0", path = "../googleapis", features = ["spanner"]} +google-cloud-longrunning = { version = "0.20.0", path = "../foundation/longrunning" } +google-cloud-gax = { version = "0.19.0", path = "../foundation/gax" } +google-cloud-googleapis = { version = "0.15.0", path = "../googleapis", features = ["spanner"]} google-cloud-auth = { optional = true, version = "0.16", path="../foundation/auth", default-features=false }