Skip to content

Commit

Permalink
Update crate verison: prost 0.12 and tonic 0.10 (#98)
Browse files Browse the repository at this point in the history
* Generate gRPC used by openapi-generator and tonic-build

* Update versions

* Update versions and Delete description not required

* Delete line
  • Loading branch information
1uf3 authored Oct 1, 2023
1 parent 746df0e commit c9ee140
Show file tree
Hide file tree
Showing 407 changed files with 85,530 additions and 513,949 deletions.
6 changes: 3 additions & 3 deletions examples/bigquery-storage-write-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"

[dependencies]
gcloud-sdk = { path = "./../../gcloud-sdk", default-features = false, features = ["google-cloud-bigquery-storage-v1"] }
tonic = { version = "0.9", features = ["tls"] }
tonic = { version = "0.10", features = ["tls"] }
tower = "0.4"
prost = "0.11"
prost-types = "0.11"
prost = "0.12"
prost-types = "0.12"
chrono = { version = "0.4", default-features = false }
tokio = { version = "1.20", features = ["full"] }
tracing = "0.1"
Expand Down
2 changes: 0 additions & 2 deletions examples/bigquery-storage-write-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
),
offset: None,
trace_id: "test".to_string(),
missing_value_interpretations: Default::default(),
rows: Some(append_rows_request::Rows::ProtoRows(ProtoData {
writer_schema: Some(rows_schema),
rows: Some(ProtoRows {
Expand All @@ -84,7 +83,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
],
}),
})),
..Default::default()
}]);

let response = client.get().append_rows(rows_stream).await?;
Expand Down
6 changes: 3 additions & 3 deletions examples/firestore-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"

[dependencies]
gcloud-sdk = { path = "./../../gcloud-sdk", default-features = false, features = ["google-firestore-v1"] }
tonic = { version = "0.9", features = ["tls"] }
tonic = { version = "0.10", features = ["tls"] }
tower = "0.4"
prost = "0.11"
prost-types = "0.11"
prost = "0.12"
prost-types = "0.12"
chrono = { version = "0.4", default-features = false }
tokio = { version = "1.20", features = ["full"] }
tracing = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions examples/gcs-rest-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"

[dependencies]
gcloud-sdk = { path = "./../../gcloud-sdk", default-features = false, features = ["rest", "google-rest-storage-v1"] }
tonic = { version = "0.9", features = ["tls"] }
tonic = { version = "0.10", features = ["tls"] }
tower = "0.4"
prost = "0.11"
prost-types = "0.11"
prost = "0.12"
prost-types = "0.12"
chrono = { version = "0.4", default-features = false }
tokio = { version = "1.20", features = ["full"] }
tracing = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions examples/id-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"

[dependencies]
gcloud-sdk = { path = "./../../gcloud-sdk", default-features = false, features = ["google-iam-credentials-v1"] }
tonic = { version = "0.9", features = ["tls"] }
tonic = { version = "0.10", features = ["tls"] }
tower = "0.4"
prost = "0.11"
prost-types = "0.11"
prost = "0.12"
prost-types = "0.12"
chrono = { version = "0.4", default-features = false }
tokio = { version = "1.20", features = ["full"] }
tracing = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions examples/secrets-manager-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"

[dependencies]
gcloud-sdk = { path = "./../../gcloud-sdk", default-features = false, features = ["google-cloud-secretmanager-v1"] }
tonic = { version = "0.9", features = ["tls"] }
tonic = { version = "0.10", features = ["tls"] }
tower = "0.4"
prost = "0.11"
prost-types = "0.11"
prost = "0.12"
prost-types = "0.12"
chrono = { version = "0.4", default-features = false }
tokio = { version = "1.20", features = ["full"] }
tracing = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions examples/simple-api-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"

[dependencies]
gcloud-sdk = { path = "./../../gcloud-sdk", default-features = false, features = ["google-logging-v2"] }
tonic = { version = "0.9", features = ["tls"] }
tonic = { version = "0.10", features = ["tls"] }
tower = "0.4"
prost = "0.11"
prost-types = "0.11"
prost = "0.12"
prost-types = "0.12"
chrono = { version = "0.4", default-features = false }
tokio = { version = "1.20", features = ["full"] }
tracing = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions examples/text-to-speech-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"

[dependencies]
gcloud-sdk = { path = "./../../gcloud-sdk", default-features = false, features = ["google-cloud-texttospeech-v1", "google-longrunning"] }
tonic = { version = "0.9", features = ["tls"] }
tonic = { version = "0.10", features = ["tls"] }
tower = "0.4"
prost = "0.11"
prost-types = "0.11"
prost = "0.12"
prost-types = "0.12"
chrono = { version = "0.4", default-features = false }
tokio = { version = "1.20", features = ["full"] }
tracing = "0.1"
Expand Down
1 change: 0 additions & 1 deletion examples/text-to-speech-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.get()
.list_voices(tonic::Request::new(ListVoicesRequest {
language_code: "en-US".to_string(),
..Default::default()
}))
.await?;
println!("Response: {:?}", response);
Expand Down
4 changes: 2 additions & 2 deletions gcloud-protos-generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["mechiru <[email protected]>", "[email protected]"]
edition = "2021"

[dependencies]
tonic-build = { version = "0.9", features = ["prost-build"] }
prost-build = "0.11"
tonic-build = { version = "0.10", features = ["prost-build"] }
prost-build = "0.12"
prettyplease = "0.2"
syn = { version = "2", default-features = false, features = ["full", "parsing"] }
2 changes: 1 addition & 1 deletion gcloud-protos-generator/openapi/generate-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SCRIPT_LOCATION=$( dirname -- "$0"; );
SPEC_LOCATIONS="$SCRIPT_LOCATION/google"
GENERATOR_LOCATION="$SCRIPT_LOCATION/generator/openapi-generator-cli-6.2.0.jar"
GENERATOR_LOCATION="$SCRIPT_LOCATION/generator/openapi-generator-cli-6.6.0.jar"
GCLOUD_SDK_DIR="$SCRIPT_LOCATION/../../gcloud-sdk"
TEMPLATES_DIR="$SCRIPT_LOCATION/templates"

Expand Down
6 changes: 3 additions & 3 deletions gcloud-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,13 @@ google-rest-storage-v1 = ["rest"]
google-rest-sqladmin-v1 = ["rest"]

[dependencies]
tonic = { version = "0.9", features = ["tls"] }
tonic = { version = "0.10", features = ["tls"] }
tower = "0.4"
tower-layer = "0.3"
tower-util = "0.3"
futures = "0.3"
prost = "0.11"
prost-types = "0.11"
prost = "0.12"
prost-types = "0.12"
gcemeta = { version = "0.2" }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" }
Expand Down
8 changes: 4 additions & 4 deletions gcloud-sdk/genproto/google.actions.r#type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// * A range beginning in a year, e.g. the Common Era
/// * A range ending on a specific date, e.g. the period of time before an event
///
/// While \[google.type.Date][google.type.Date\] allows zero years, DateRange does not. Year must
/// While [google.type.Date][google.type.Date] allows zero years, DateRange does not. Year must
/// always be non-zero.
///
/// End cannot be chronologically before start. For example, if start has year
Expand Down Expand Up @@ -41,7 +41,7 @@
/// December 31, 2000. And the date December 31, 2001 is within the date range
/// with start equal to the year 2000 and end equal to the year 2001.
///
/// The semantics of start and end are the same as those of \[google.type.Date][google.type.Date\],
/// The semantics of start and end are the same as those of [google.type.Date][google.type.Date],
/// except that year must always be non-zero in DateRange.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
Expand Down Expand Up @@ -71,7 +71,7 @@ pub struct DateRange {
/// When considering whether a DateTime falls within a DateTimeRange, the start
/// of the range is inclusive and the end is exclusive.
///
/// While \[google.type.DateTime][google.type.DateTime\] allows zero years, DateTimeRange does not.
/// While [google.type.DateTime][google.type.DateTime] allows zero years, DateTimeRange does not.
/// Year must always be non-zero.
///
/// When both start and end are set, either both or neither must have a
Expand All @@ -84,7 +84,7 @@ pub struct DateRange {
/// equal to end. When start and end are equal, the range is empty.
///
/// The semantics of start and end are the same as those of
/// \[google.type.DateTime][google.type.DateTime\].
/// [google.type.DateTime][google.type.DateTime].
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DateTimeRange {
Expand Down
22 changes: 11 additions & 11 deletions gcloud-sdk/genproto/google.ads.admob.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ pub struct PublisherAccount {
/// 'start_date': {'year': 2018, 'month': 9, 'day': 1},
/// 'end_date': {'year': 2018, 'month': 9, 'day': 30}
/// },
/// 'dimensions': ['DATE', 'APP', 'COUNTRY'],
/// 'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'],
/// 'dimensions': \['DATE', 'APP', 'COUNTRY'\],
/// 'metrics': \['CLICKS', 'ESTIMATED_EARNINGS'\],
/// 'dimension_filters': [
/// {
/// 'dimension': 'COUNTRY',
/// 'matches_any': {'values': [{'value': 'US', 'value': 'CN'}]}
/// 'matches_any': {'values': \[{'value': 'US', 'value': 'CN'}\]}
/// }
/// ],
/// 'sort_conditions': [
Expand Down Expand Up @@ -188,9 +188,9 @@ pub mod network_report_spec {
/// dimension.
///
/// **Warning:** The dimension is incompatible with
/// \[AD_REQUESTS\](#Metric.ENUM_VALUES.AD_REQUESTS),
/// \[MATCH_RATE\](#Metric.ENUM_VALUES.MATCH_RATE) and
/// \[IMPRESSION_RPM\](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics.
/// [AD_REQUESTS](#Metric.ENUM_VALUES.AD_REQUESTS),
/// [MATCH_RATE](#Metric.ENUM_VALUES.MATCH_RATE) and
/// [IMPRESSION_RPM](#Metric.ENUM_VALUES.IMPRESSION_RPM) metrics.
AdType = 6,
/// CLDR country code of the place where the ad views/clicks occur (for
/// example, "US" or "FR"). This is a geography dimension.
Expand Down Expand Up @@ -259,7 +259,7 @@ pub mod network_report_spec {
/// The number of ad requests. The value is an integer.
///
/// **Warning:** The metric is incompatible with
/// \[AD_TYPE\](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
/// [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
AdRequests = 1,
/// The number of times a user clicks an ad. The value is an integer.
Clicks = 2,
Expand All @@ -277,7 +277,7 @@ pub mod network_report_spec {
/// micros. For example, $1.03 would be represented as 1030000.
///
/// **Warning:** The metric is incompatible with
/// \[AD_TYPE\](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
/// [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
ImpressionRpm = 6,
/// The number of times ads are returned in response to a request. The value
/// is an integer.
Expand All @@ -286,7 +286,7 @@ pub mod network_report_spec {
/// a double precision (approximate) decimal value.
///
/// **Warning:** The metric is incompatible with
/// \[AD_TYPE\](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
/// [AD_TYPE](#Dimension.ENUM_VALUES.AD_TYPE) dimension.
MatchRate = 8,
/// The ratio of ads that are displayed over ads that are returned, defined
/// as impressions / matched requests. The value is a double precision
Expand Down Expand Up @@ -339,12 +339,12 @@ pub mod network_report_spec {
/// "start_date": {"year": 2018, "month": 9, "day": 1},
/// "end_date": {"year": 2018, "month": 9, "day": 30}
/// },
/// "dimensions": ["AD_SOURCE", "APP", "COUNTRY"],
/// "dimensions": \["AD_SOURCE", "APP", "COUNTRY"\],
/// "metrics": \["OBSERVED_ECPM"\],
/// "dimension_filters": [
/// {
/// "dimension": "COUNTRY",
/// "matches_any": {"values": [{"value": "US", "value": "CN"}]}
/// "matches_any": {"values": \[{"value": "US", "value": "CN"}\]}
/// }
/// ],
/// "sort_conditions": [
Expand Down
4 changes: 2 additions & 2 deletions gcloud-sdk/genproto/google.ads.googleads.v10.common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4200,7 +4200,7 @@ pub struct KeywordPlanHistoricalMetrics {
tag = "2"
)]
pub competition: i32,
/// The competition index for the query in the range [0, 100].
/// The competition index for the query in the range \[0, 100\].
/// Shows how competitive ad placement is for a keyword.
/// The level of competition from 0-100 is determined by the number of ad slots
/// filled divided by the total number of ad slots available. If not enough
Expand Down Expand Up @@ -6391,7 +6391,7 @@ pub mod target_restriction_operation {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextLabel {
/// Background color of the label in RGB format. This string must match the
/// regular expression '^\#(\[a-fA-F0-9]{6}|[a-fA-F0-9\]{3})$'.
/// regular expression '^\#(\[a-fA-F0-9\]{6}|\[a-fA-F0-9\]{3})$'.
/// Note: The background color may not be visible for manager accounts.
#[prost(string, optional, tag = "3")]
pub background_color: ::core::option::Option<::prost::alloc::string::String>,
Expand Down
6 changes: 3 additions & 3 deletions gcloud-sdk/genproto/google.ads.googleads.v10.enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4719,11 +4719,11 @@ pub mod keyword_plan_competition_level_enum {
Unspecified = 0,
/// The value is unknown in this version.
Unknown = 1,
/// Low competition. The Competition Index range for this is [0, 33].
/// Low competition. The Competition Index range for this is \[0, 33\].
Low = 2,
/// Medium competition. The Competition Index range for this is [34, 66].
/// Medium competition. The Competition Index range for this is \[34, 66\].
Medium = 3,
/// High competition. The Competition Index range for this is [67, 100].
/// High competition. The Competition Index range for this is \[67, 100\].
High = 4,
}
impl KeywordPlanCompetitionLevel {
Expand Down
8 changes: 4 additions & 4 deletions gcloud-sdk/genproto/google.ads.googleads.v10.errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7717,7 +7717,7 @@ pub mod custom_audience_error_enum {
CannotRemoveWhileInUse = 3,
/// Cannot update or remove a custom audience that is already removed.
ResourceAlreadyRemoved = 4,
/// The pair of [type, value] already exists in members.
/// The pair of \[type, value\] already exists in members.
MemberTypeAndParameterAlreadyExisted = 5,
/// Member type is invalid.
InvalidMemberType = 6,
Expand Down Expand Up @@ -7884,11 +7884,11 @@ pub mod custom_interest_error_enum {
/// Duplicate custom interest name ignoring case.
NameAlreadyUsed = 2,
/// In the remove custom interest member operation, both member ID and
/// pair [type, parameter] are not present.
/// pair \[type, parameter\] are not present.
CustomInterestMemberIdAndTypeParameterNotPresentInRemove = 3,
/// The pair of [type, parameter] does not exist.
/// The pair of \[type, parameter\] does not exist.
TypeAndParameterNotFound = 4,
/// The pair of [type, parameter] already exists.
/// The pair of \[type, parameter\] already exists.
TypeAndParameterAlreadyExisted = 5,
/// Unsupported custom interest member type.
InvalidCustomInterestMemberType = 6,
Expand Down
2 changes: 1 addition & 1 deletion gcloud-sdk/genproto/google.ads.googleads.v10.resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9015,7 +9015,7 @@ pub mod smart_campaign_setting {
/// The location ID can be fetched by Business Profile API with its form:
/// accounts/{accountId}/locations/{locationId}. The last {locationId}
/// component from the Business Profile API represents the
/// business_location_id. See the [Business Profile API]
/// business_location_id. See the \[Business Profile API\]
/// (<https://developers.google.com/my-business/reference/rest/v4/accounts.locations>)
#[prost(int64, tag = "6")]
BusinessLocationId(i64),
Expand Down
Loading

0 comments on commit c9ee140

Please sign in to comment.