Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Apple_Size_name = map[int32]string{ 0: "SIZE_UNDEFINED", 4: "BIG", 5: "MID", 6: "SMALL", } Apple_Size_value = map[string]int32{ "SIZE_UNDEFINED": 0, "BIG": 4, "MID": 5, "SMALL": 6, } )
Enum value maps for Apple_Size.
View Source
var File_api_apple_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Apple ¶
type Apple struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Size Apple_Size `protobuf:"varint,3,opt,name=size,proto3,enum=api.Apple_Size" json:"size,omitempty"` // contains filtered or unexported fields }
func (*Apple) Descriptor
deprecated
func (*Apple) GetSize ¶
func (x *Apple) GetSize() Apple_Size
func (*Apple) ProtoMessage ¶
func (*Apple) ProtoMessage()
func (*Apple) ProtoReflect ¶
func (x *Apple) ProtoReflect() protoreflect.Message
type Apple_Size ¶
type Apple_Size int32
const ( Apple_SIZE_UNDEFINED Apple_Size = 0 Apple_BIG Apple_Size = 4 Apple_MID Apple_Size = 5 Apple_SMALL Apple_Size = 6 )
func (Apple_Size) Descriptor ¶
func (Apple_Size) Descriptor() protoreflect.EnumDescriptor
func (Apple_Size) Enum ¶
func (x Apple_Size) Enum() *Apple_Size
func (Apple_Size) EnumDescriptor
deprecated
func (Apple_Size) EnumDescriptor() ([]byte, []int)
Deprecated: Use Apple_Size.Descriptor instead.
func (Apple_Size) Number ¶
func (x Apple_Size) Number() protoreflect.EnumNumber
func (Apple_Size) String ¶
func (x Apple_Size) String() string
func (Apple_Size) Type ¶
func (Apple_Size) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.