Skip to content

Commit

Permalink
Automated Protos Update (#135)
Browse files Browse the repository at this point in the history
Co-authored-by: viambot <[email protected]>
  • Loading branch information
github-actions[bot] and viambot authored Dec 23, 2024
1 parent ad8e9ef commit 65b0e77
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
10 changes: 10 additions & 0 deletions src/gen/google.api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,16 @@ pub struct GoSettings {
/// Some settings.
#[prost(message, optional, tag="1")]
pub common: ::core::option::Option<CommonLanguageSettings>,
/// Map of service names to renamed services. Keys are the package relative
/// service names and values are the name to be used for the service client
/// and call options.
///
/// publishing:
/// go_settings:
/// renamed_services:
/// Publisher: TopicAdmin
#[prost(map="string, string", tag="2")]
pub renamed_services: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
}
/// Describes the generator configuration for a method.
#[allow(clippy::derive_partial_eq_without_eq)]
Expand Down
3 changes: 2 additions & 1 deletion src/gen/google.rpc.context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ pub mod attribute_context {
/// may be set by external tools to store and retrieve arbitrary metadata.
/// They are not queryable and should be preserved when modifying objects.
///
/// More info: <https://kubernetes.io/docs/user-guide/annotations>
/// More info:
/// <https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/>
#[prost(map="string, string", tag="6")]
pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
/// Mutable. The display name set by clients. Must be <= 63 characters.
Expand Down
19 changes: 16 additions & 3 deletions src/gen/google.rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,12 @@ pub struct ErrorInfo {
pub domain: ::prost::alloc::string::String,
/// Additional structured details about this error.
///
/// Keys should match /\[a-zA-Z0-9-_\]/ and be limited to 64 characters in
/// Keys must match a regular expression of `\[a-z][a-zA-Z0-9-_\]+` but should
/// ideally be lowerCamelCase. Also, they must be limited to 64 characters in
/// length. When identifying the current value of an exceeded limit, the units
/// should be contained in the key, not the value. For example, rather than
/// {"instanceLimit": "100/request"}, should be returned as,
/// {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
/// `{"instanceLimit": "100/request"}`, should be returned as,
/// `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
/// instances that can be created in a single (batch) request.
#[prost(map="string, string", tag="3")]
pub metadata: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
Expand Down Expand Up @@ -440,6 +441,18 @@ pub mod bad_request {
/// A description of why the request element is bad.
#[prost(string, tag="2")]
pub description: ::prost::alloc::string::String,
/// The reason of the field-level error. This is a constant value that
/// identifies the proximate cause of the field-level error. It should
/// uniquely identify the type of the FieldViolation within the scope of the
/// google.rpc.ErrorInfo.domain. This should be at most 63
/// characters and match a regular expression of `\[A-Z][A-Z0-9_]+[A-Z0-9\]`,
/// which represents UPPER_SNAKE_CASE.
#[prost(string, tag="3")]
pub reason: ::prost::alloc::string::String,
/// Provides a localized error message for field-level errors that is safe to
/// return to the API consumer.
#[prost(message, optional, tag="4")]
pub localized_message: ::core::option::Option<super::LocalizedMessage>,
}
}
/// Contains metadata about the request that clients can attach when filing a bug
Expand Down

0 comments on commit 65b0e77

Please sign in to comment.