@@ -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