Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Foo_name = map[int32]string{ 0: "ABC", 1: "DEF", 2: "GHI", 3: "JKL", 4: "MNO", 5: "PQR", 6: "STU", 7: "VWX", 8: "Y_Z", } Foo_value = map[string]int32{ "ABC": 0, "DEF": 1, "GHI": 2, "JKL": 3, "MNO": 4, "PQR": 5, "STU": 6, "VWX": 7, "Y_Z": 8, } )
Enum value maps for Foo.
View Source
var File_pkg_desc_test_pkg_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bar ¶
type Bar struct { Baz []Foo `protobuf:"varint,1,rep,name=baz,enum=jhump.protoreflect.desc.Foo" json:"baz,omitempty"` // contains filtered or unexported fields }
func (*Bar) Descriptor
deprecated
func (*Bar) ProtoMessage ¶
func (*Bar) ProtoMessage()
func (*Bar) ProtoReflect ¶ added in v1.8.0
func (x *Bar) ProtoReflect() protoreflect.Message
type Foo ¶
type Foo int32
func (Foo) Descriptor ¶ added in v1.8.0
func (Foo) Descriptor() protoreflect.EnumDescriptor
func (Foo) EnumDescriptor
deprecated
func (Foo) Number ¶ added in v1.8.0
func (x Foo) Number() protoreflect.EnumNumber
func (Foo) Type ¶ added in v1.8.0
func (Foo) Type() protoreflect.EnumType
func (*Foo) UnmarshalJSON
deprecated
Click to show internal directories.
Click to hide internal directories.