Documentation ¶
Index ¶
- Variables
- type TestdataInitEnum
- func (*TestdataInitEnum) Descriptor() ([]byte, []int)deprecated
- func (*TestdataInitEnum) ProtoMessage()
- func (x *TestdataInitEnum) ProtoReflect() protoreflect.Message
- func (x *TestdataInitEnum) Reset()
- func (x *TestdataInitEnum) String() string
- func (m *TestdataInitEnum) Validate() error
- func (m *TestdataInitEnum) ValidateAll() error
- type TestdataInitEnumMultiError
- type TestdataInitEnumValidationError
- func (e TestdataInitEnumValidationError) Cause() error
- func (e TestdataInitEnumValidationError) Error() string
- func (e TestdataInitEnumValidationError) ErrorName() string
- func (e TestdataInitEnumValidationError) Field() string
- func (e TestdataInitEnumValidationError) Key() bool
- func (e TestdataInitEnumValidationError) Reason() string
- type TestdataInitEnum_TestdataInit
- func (TestdataInitEnum_TestdataInit) Descriptor() protoreflect.EnumDescriptor
- func (x TestdataInitEnum_TestdataInit) Enum() *TestdataInitEnum_TestdataInit
- func (TestdataInitEnum_TestdataInit) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestdataInitEnum_TestdataInit) Number() protoreflect.EnumNumber
- func (x TestdataInitEnum_TestdataInit) String() string
- func (TestdataInitEnum_TestdataInit) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( TestdataInitEnum_TestdataInit_name = map[int32]string{ 0: "UNSPECIFIED", } TestdataInitEnum_TestdataInit_value = map[string]int32{ "UNSPECIFIED": 0, } )
Enum value maps for TestdataInitEnum_TestdataInit.
var File_api_testdata_service_v1_enums_testdata_enum_v1_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TestdataInitEnum ¶
type TestdataInitEnum struct {
// contains filtered or unexported fields
}
TestdataInitEnum TestdataInitEnum enum
func (*TestdataInitEnum) Descriptor
deprecated
func (*TestdataInitEnum) Descriptor() ([]byte, []int)
Deprecated: Use TestdataInitEnum.ProtoReflect.Descriptor instead.
func (*TestdataInitEnum) ProtoMessage ¶
func (*TestdataInitEnum) ProtoMessage()
func (*TestdataInitEnum) ProtoReflect ¶
func (x *TestdataInitEnum) ProtoReflect() protoreflect.Message
func (*TestdataInitEnum) Reset ¶
func (x *TestdataInitEnum) Reset()
func (*TestdataInitEnum) String ¶
func (x *TestdataInitEnum) String() string
func (*TestdataInitEnum) Validate ¶
func (m *TestdataInitEnum) Validate() error
Validate checks the field values on TestdataInitEnum 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 (*TestdataInitEnum) ValidateAll ¶
func (m *TestdataInitEnum) ValidateAll() error
ValidateAll checks the field values on TestdataInitEnum 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 TestdataInitEnumMultiError, or nil if none found.
type TestdataInitEnumMultiError ¶
type TestdataInitEnumMultiError []error
TestdataInitEnumMultiError is an error wrapping multiple validation errors returned by TestdataInitEnum.ValidateAll() if the designated constraints aren't met.
func (TestdataInitEnumMultiError) AllErrors ¶
func (m TestdataInitEnumMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TestdataInitEnumMultiError) Error ¶
func (m TestdataInitEnumMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TestdataInitEnumValidationError ¶
type TestdataInitEnumValidationError struct {
// contains filtered or unexported fields
}
TestdataInitEnumValidationError is the validation error returned by TestdataInitEnum.Validate if the designated constraints aren't met.
func (TestdataInitEnumValidationError) Cause ¶
func (e TestdataInitEnumValidationError) Cause() error
Cause function returns cause value.
func (TestdataInitEnumValidationError) Error ¶
func (e TestdataInitEnumValidationError) Error() string
Error satisfies the builtin error interface
func (TestdataInitEnumValidationError) ErrorName ¶
func (e TestdataInitEnumValidationError) ErrorName() string
ErrorName returns error name.
func (TestdataInitEnumValidationError) Field ¶
func (e TestdataInitEnumValidationError) Field() string
Field function returns field value.
func (TestdataInitEnumValidationError) Key ¶
func (e TestdataInitEnumValidationError) Key() bool
Key function returns key value.
func (TestdataInitEnumValidationError) Reason ¶
func (e TestdataInitEnumValidationError) Reason() string
Reason function returns reason value.
type TestdataInitEnum_TestdataInit ¶
type TestdataInitEnum_TestdataInit int32
TestdataInit TestdataInit enum
const ( // UNSPECIFIED 未指定 TestdataInitEnum_UNSPECIFIED TestdataInitEnum_TestdataInit = 0 )
func (TestdataInitEnum_TestdataInit) Descriptor ¶
func (TestdataInitEnum_TestdataInit) Descriptor() protoreflect.EnumDescriptor
func (TestdataInitEnum_TestdataInit) Enum ¶
func (x TestdataInitEnum_TestdataInit) Enum() *TestdataInitEnum_TestdataInit
func (TestdataInitEnum_TestdataInit) EnumDescriptor
deprecated
func (TestdataInitEnum_TestdataInit) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestdataInitEnum_TestdataInit.Descriptor instead.
func (TestdataInitEnum_TestdataInit) Number ¶
func (x TestdataInitEnum_TestdataInit) Number() protoreflect.EnumNumber
func (TestdataInitEnum_TestdataInit) String ¶
func (x TestdataInitEnum_TestdataInit) String() string
func (TestdataInitEnum_TestdataInit) Type ¶
func (TestdataInitEnum_TestdataInit) Type() protoreflect.EnumType