Documentation ¶
Overview ¶
Code generated by protoc-gen-stringer. DO NOT EDIT. source: tests/simple/simple.proto
Index ¶
- Variables
- type Example
- func (Example) Descriptor() protoreflect.EnumDescriptor
- func (x Example) Enum() *Example
- func (Example) EnumDescriptor() ([]byte, []int)deprecated
- func (x Example) Number() protoreflect.EnumNumber
- func (x Example) String() string
- func (i Example) StringVal() string
- func (Example) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Example_name = map[int32]string{ 0: "exampleBar1", 2: "exampleBar2", 3: "exampleBar3", 4: "exampleBar4", 5: "exampleBar5", 6: "exampleBar6", 7: "exampleBar7", 8: "exampleBar8", 9: "exampleBar9", 10: "exampleBar10", } Example_value = map[string]int32{ "exampleBar1": 0, "exampleBar2": 2, "exampleBar3": 3, "exampleBar4": 4, "exampleBar5": 5, "exampleBar6": 6, "exampleBar7": 7, "exampleBar8": 8, "exampleBar9": 9, "exampleBar10": 10, } )
Enum value maps for Example.
View Source
var File_tests_simple_simple_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example int32
const ( Example_exampleBar1 Example = 0 Example_exampleBar2 Example = 2 Example_exampleBar3 Example = 3 Example_exampleBar4 Example = 4 Example_exampleBar5 Example = 5 Example_exampleBar6 Example = 6 Example_exampleBar7 Example = 7 Example_exampleBar8 Example = 8 Example_exampleBar9 Example = 9 Example_exampleBar10 Example = 10 )
func StringToExample ¶
func (Example) Descriptor ¶
func (Example) Descriptor() protoreflect.EnumDescriptor
func (Example) EnumDescriptor
deprecated
func (Example) Number ¶
func (x Example) Number() protoreflect.EnumNumber
func (Example) Type ¶
func (Example) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.