Skip to content

Commit 65b0e77

Browse files
Automated Protos Update (#135)
Co-authored-by: viambot <viambot@users.noreply.github.com>
1 parent ad8e9ef commit 65b0e77

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

src/gen/google.api.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,16 @@ pub struct GoSettings {
692692
/// Some settings.
693693
#[prost(message, optional, tag="1")]
694694
pub common: ::core::option::Option<CommonLanguageSettings>,
695+
/// Map of service names to renamed services. Keys are the package relative
696+
/// service names and values are the name to be used for the service client
697+
/// and call options.
698+
///
699+
/// publishing:
700+
/// go_settings:
701+
/// renamed_services:
702+
/// Publisher: TopicAdmin
703+
#[prost(map="string, string", tag="2")]
704+
pub renamed_services: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
695705
}
696706
/// Describes the generator configuration for a method.
697707
#[allow(clippy::derive_partial_eq_without_eq)]

src/gen/google.rpc.context.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ pub mod attribute_context {
296296
/// may be set by external tools to store and retrieve arbitrary metadata.
297297
/// They are not queryable and should be preserved when modifying objects.
298298
///
299-
/// More info: <https://kubernetes.io/docs/user-guide/annotations>
299+
/// More info:
300+
/// <https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/>
300301
#[prost(map="string, string", tag="6")]
301302
pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
302303
/// Mutable. The display name set by clients. Must be <= 63 characters.

src/gen/google.rpc.rs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,12 @@ pub struct ErrorInfo {
266266
pub domain: ::prost::alloc::string::String,
267267
/// Additional structured details about this error.
268268
///
269-
/// Keys should match /\[a-zA-Z0-9-_\]/ and be limited to 64 characters in
269+
/// Keys must match a regular expression of `\[a-z][a-zA-Z0-9-_\]+` but should
270+
/// ideally be lowerCamelCase. Also, they must be limited to 64 characters in
270271
/// length. When identifying the current value of an exceeded limit, the units
271272
/// should be contained in the key, not the value. For example, rather than
272-
/// {"instanceLimit": "100/request"}, should be returned as,
273-
/// {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
273+
/// `{"instanceLimit": "100/request"}`, should be returned as,
274+
/// `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
274275
/// instances that can be created in a single (batch) request.
275276
#[prost(map="string, string", tag="3")]
276277
pub metadata: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
@@ -440,6 +441,18 @@ pub mod bad_request {
440441
/// A description of why the request element is bad.
441442
#[prost(string, tag="2")]
442443
pub description: ::prost::alloc::string::String,
444+
/// The reason of the field-level error. This is a constant value that
445+
/// identifies the proximate cause of the field-level error. It should
446+
/// uniquely identify the type of the FieldViolation within the scope of the
447+
/// google.rpc.ErrorInfo.domain. This should be at most 63
448+
/// characters and match a regular expression of `\[A-Z][A-Z0-9_]+[A-Z0-9\]`,
449+
/// which represents UPPER_SNAKE_CASE.
450+
#[prost(string, tag="3")]
451+
pub reason: ::prost::alloc::string::String,
452+
/// Provides a localized error message for field-level errors that is safe to
453+
/// return to the API consumer.
454+
#[prost(message, optional, tag="4")]
455+
pub localized_message: ::core::option::Option<super::LocalizedMessage>,
443456
}
444457
}
445458
/// Contains metadata about the request that clients can attach when filing a bug

0 commit comments

Comments
 (0)