Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldViolations ¶
func FieldViolations(err *protovalidate.ValidationError) []*errdetails.BadRequest_FieldViolation
FieldViolations reports the violations protovalidate collected as the detail AIP-193 asks an InvalidArgument to carry.
func Masked ¶
func Masked( validator protovalidate.Validator, msg proto.Message, mask fieldmask.Mask, field string, ) error
Masked runs the rules the resource declares against the fields the mask selects, which an Update handler owns because IGNORE_ALWAYS on the resource stops the interceptor. Violations are reported under the request field the resource nests in, so the path matches what the client sent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.