Documentation ¶
Index ¶
- Variables
- type ExampleType
- func (ExampleType) Descriptor() protoreflect.EnumDescriptor
- func (x ExampleType) Enum() *ExampleType
- func (ExampleType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExampleType) Number() protoreflect.EnumNumber
- func (x ExampleType) String() string
- func (ExampleType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ExampleType_name = map[int32]string{ 0: "EXAMPLE_TYPE_UNSPECIFIED", 1: "EXAMPLE_TYPE_ONE", 2: "EXAMPLE_TYPE_TOW", } ExampleType_value = map[string]int32{ "EXAMPLE_TYPE_UNSPECIFIED": 0, "EXAMPLE_TYPE_ONE": 1, "EXAMPLE_TYPE_TOW": 2, } )
Enum value maps for ExampleType.
View Source
var File_enumeration_example_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ExampleType ¶
type ExampleType int32
ExampleType 示例类型
const ( // 未指定 ExampleType_EXAMPLE_TYPE_UNSPECIFIED ExampleType = 0 // 类型1 ExampleType_EXAMPLE_TYPE_ONE ExampleType = 1 // 类型2 ExampleType_EXAMPLE_TYPE_TOW ExampleType = 2 )
func (ExampleType) Descriptor ¶
func (ExampleType) Descriptor() protoreflect.EnumDescriptor
func (ExampleType) Enum ¶
func (x ExampleType) Enum() *ExampleType
func (ExampleType) EnumDescriptor
deprecated
func (ExampleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExampleType.Descriptor instead.
func (ExampleType) Number ¶
func (x ExampleType) Number() protoreflect.EnumNumber
func (ExampleType) String ¶
func (x ExampleType) String() string
func (ExampleType) Type ¶
func (ExampleType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.