Documentation ¶
Index ¶
- Variables
- type SourceContext
- func (*SourceContext) Descriptor() ([]byte, []int)deprecated
- func (x *SourceContext) GetFileName() string
- func (*SourceContext) ProtoMessage()
- func (x *SourceContext) ProtoReflect() protoreflect.Message
- func (x *SourceContext) Reset()
- func (x *SourceContext) String() string
- func (m *SourceContext) Validate() error
- func (m *SourceContext) ValidateAll() error
- type SourceContextMultiError
- type SourceContextValidationError
- func (e SourceContextValidationError) Cause() error
- func (e SourceContextValidationError) Error() string
- func (e SourceContextValidationError) ErrorName() string
- func (e SourceContextValidationError) Field() string
- func (e SourceContextValidationError) Key() bool
- func (e SourceContextValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_source_context_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SourceContext ¶
type SourceContext struct { // The path-qualified name of the .proto file that contained the associated // protobuf element. For example: `"google/protobuf/source_context.proto"`. FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // contains filtered or unexported fields }
`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.
func (*SourceContext) Descriptor
deprecated
func (*SourceContext) Descriptor() ([]byte, []int)
Deprecated: Use SourceContext.ProtoReflect.Descriptor instead.
func (*SourceContext) GetFileName ¶
func (x *SourceContext) GetFileName() string
func (*SourceContext) ProtoMessage ¶
func (*SourceContext) ProtoMessage()
func (*SourceContext) ProtoReflect ¶
func (x *SourceContext) ProtoReflect() protoreflect.Message
func (*SourceContext) Reset ¶
func (x *SourceContext) Reset()
func (*SourceContext) String ¶
func (x *SourceContext) String() string
func (*SourceContext) Validate ¶
func (m *SourceContext) Validate() error
Validate checks the field values on SourceContext 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 (*SourceContext) ValidateAll ¶
func (m *SourceContext) ValidateAll() error
ValidateAll checks the field values on SourceContext 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 SourceContextMultiError, or nil if none found.
type SourceContextMultiError ¶
type SourceContextMultiError []error
SourceContextMultiError is an error wrapping multiple validation errors returned by SourceContext.ValidateAll() if the designated constraints aren't met.
func (SourceContextMultiError) AllErrors ¶
func (m SourceContextMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SourceContextMultiError) Error ¶
func (m SourceContextMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SourceContextValidationError ¶
type SourceContextValidationError struct {
// contains filtered or unexported fields
}
SourceContextValidationError is the validation error returned by SourceContext.Validate if the designated constraints aren't met.
func (SourceContextValidationError) Cause ¶
func (e SourceContextValidationError) Cause() error
Cause function returns cause value.
func (SourceContextValidationError) Error ¶
func (e SourceContextValidationError) Error() string
Error satisfies the builtin error interface
func (SourceContextValidationError) ErrorName ¶
func (e SourceContextValidationError) ErrorName() string
ErrorName returns error name.
func (SourceContextValidationError) Field ¶
func (e SourceContextValidationError) Field() string
Field function returns field value.
func (SourceContextValidationError) Key ¶
func (e SourceContextValidationError) Key() bool
Key function returns key value.
func (SourceContextValidationError) Reason ¶
func (e SourceContextValidationError) Reason() string
Reason function returns reason value.