Documentation ¶
Index ¶
- Variables
- type TypedStruct
- func (*TypedStruct) Descriptor() ([]byte, []int)deprecated
- func (x *TypedStruct) GetTypeUrl() string
- func (x *TypedStruct) GetValue() *structpb.Struct
- func (*TypedStruct) ProtoMessage()
- func (x *TypedStruct) ProtoReflect() protoreflect.Message
- func (x *TypedStruct) Reset()
- func (x *TypedStruct) String() string
- func (m *TypedStruct) Validate() error
- func (m *TypedStruct) ValidateAll() error
- type TypedStructMultiError
- type TypedStructValidationError
- func (e TypedStructValidationError) Cause() error
- func (e TypedStructValidationError) Error() string
- func (e TypedStructValidationError) ErrorName() string
- func (e TypedStructValidationError) Field() string
- func (e TypedStructValidationError) Key() bool
- func (e TypedStructValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_udpa_type_v1_typed_struct_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TypedStruct ¶
type TypedStruct struct { TypeUrl string `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"` Value *structpb.Struct `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TypedStruct) Descriptor
deprecated
func (*TypedStruct) Descriptor() ([]byte, []int)
Deprecated: Use TypedStruct.ProtoReflect.Descriptor instead.
func (*TypedStruct) GetTypeUrl ¶
func (x *TypedStruct) GetTypeUrl() string
func (*TypedStruct) GetValue ¶
func (x *TypedStruct) GetValue() *structpb.Struct
func (*TypedStruct) ProtoMessage ¶
func (*TypedStruct) ProtoMessage()
func (*TypedStruct) ProtoReflect ¶
func (x *TypedStruct) ProtoReflect() protoreflect.Message
func (*TypedStruct) Reset ¶
func (x *TypedStruct) Reset()
func (*TypedStruct) String ¶
func (x *TypedStruct) String() string
func (*TypedStruct) Validate ¶
func (m *TypedStruct) Validate() error
Validate checks the field values on TypedStruct with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*TypedStruct) ValidateAll ¶
func (m *TypedStruct) ValidateAll() error
ValidateAll checks the field values on TypedStruct with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TypedStructMultiError, or nil if none found.
type TypedStructMultiError ¶
type TypedStructMultiError []error
TypedStructMultiError is an error wrapping multiple validation errors returned by TypedStruct.ValidateAll() if the designated constraints aren't met.
func (TypedStructMultiError) AllErrors ¶
func (m TypedStructMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TypedStructMultiError) Error ¶
func (m TypedStructMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TypedStructValidationError ¶
type TypedStructValidationError struct {
// contains filtered or unexported fields
}
TypedStructValidationError is the validation error returned by TypedStruct.Validate if the designated constraints aren't met.
func (TypedStructValidationError) Cause ¶
func (e TypedStructValidationError) Cause() error
Cause function returns cause value.
func (TypedStructValidationError) Error ¶
func (e TypedStructValidationError) Error() string
Error satisfies the builtin error interface
func (TypedStructValidationError) ErrorName ¶
func (e TypedStructValidationError) ErrorName() string
ErrorName returns error name.
func (TypedStructValidationError) Field ¶
func (e TypedStructValidationError) Field() string
Field function returns field value.
func (TypedStructValidationError) Key ¶
func (e TypedStructValidationError) Key() bool
Key function returns key value.
func (TypedStructValidationError) Reason ¶
func (e TypedStructValidationError) Reason() string
Reason function returns reason value.