Default values for Message fields.
const ( Default_Message_EnumField = Enum_ZERO )
Enum value maps for Enum.
var ( Enum_name = map[int32]string{ 0: "ZERO", } Enum_value = map[string]int32{ "ZERO": 0, } )
var File_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto protoreflect.FileDescriptor
type Enum int32
const ( Enum_ZERO Enum = 0 )
func (Enum) Descriptor() protoreflect.EnumDescriptor
func (x Enum) Enum() *Enum
func (Enum) EnumDescriptor() ([]byte, []int)
Deprecated: Use Enum.Descriptor instead.
func (x Enum) Number() protoreflect.EnumNumber
func (x Enum) String() string
func (Enum) Type() protoreflect.EnumType
func (x *Enum) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Message struct { StringField *string `protobuf:"bytes,1,opt,name=string_field,json=stringField" json:"string_field,omitempty"` EnumField *Enum `protobuf:"varint,2,opt,name=enum_field,json=enumField,enum=Enum,def=0" json:"enum_field,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor() ([]byte, []int)
Deprecated: Use Message.ProtoReflect.Descriptor instead.
func (x *Message) GetEnumField() Enum
func (x *Message) GetStringField() string
func (*Message) ProtoMessage()
func (x *Message) ProtoReflect() protoreflect.Message
func (x *Message) Reset()
func (x *Message) String() string