Documentation ¶
Index ¶
- Variables
- type CityList
- type ComplexMessage
- func (*ComplexMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ComplexMessage) GetMultiple() []*SampleMessage
- func (x *ComplexMessage) GetSingle() *SampleMessage
- func (*ComplexMessage) ProtoMessage()
- func (x *ComplexMessage) ProtoReflect() protoreflect.Message
- func (x *ComplexMessage) Reset()
- func (x *ComplexMessage) String() string
- type Country
- type EyeColor
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetId() uint32
- func (x *Result) GetMessage() string
- func (m *Result) GetResult() isResult_Result
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Result_Id
- type Result_Message
- type SampleMessage
- func (*SampleMessage) Descriptor() ([]byte, []int)deprecated
- func (x *SampleMessage) GetAltNames() []string
- func (x *SampleMessage) GetId() uint32
- func (x *SampleMessage) GetIsActive() bool
- func (x *SampleMessage) GetName() string
- func (*SampleMessage) ProtoMessage()
- func (x *SampleMessage) ProtoReflect() protoreflect.Message
- func (x *SampleMessage) Reset()
- func (x *SampleMessage) String() string
- type SampleMessage2
- func (*SampleMessage2) Descriptor() ([]byte, []int)deprecated
- func (x *SampleMessage2) GetEyeColor() EyeColor
- func (x *SampleMessage2) GetId() uint32
- func (*SampleMessage2) ProtoMessage()
- func (x *SampleMessage2) ProtoReflect() protoreflect.Message
- func (x *SampleMessage2) Reset()
- func (x *SampleMessage2) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EyeColor_name = map[int32]string{ 0: "EYECOLOR_UNIDENTIFIED", 1: "EYECOLOR_BLUE", 2: "EYECOLOR_GREEN", 3: "EYECOLOR_BLACK", } EyeColor_value = map[string]int32{ "EYECOLOR_UNIDENTIFIED": 0, "EYECOLOR_BLUE": 1, "EYECOLOR_GREEN": 2, "EYECOLOR_BLACK": 3, } )
Enum value maps for EyeColor.
View Source
var File_sample1_proto protoreflect.FileDescriptor
View Source
var File_sample2_proto protoreflect.FileDescriptor
View Source
var File_sampleMap_proto protoreflect.FileDescriptor
View Source
var File_sampleOneOf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CityList ¶
type CityList struct { Cities []string `protobuf:"bytes,1,rep,name=cities,proto3" json:"cities,omitempty"` // contains filtered or unexported fields }
func (*CityList) Descriptor
deprecated
func (*CityList) ProtoMessage ¶
func (*CityList) ProtoMessage()
func (*CityList) ProtoReflect ¶
func (x *CityList) ProtoReflect() protoreflect.Message
type ComplexMessage ¶
type ComplexMessage struct { Single *SampleMessage `protobuf:"bytes,1,opt,name=single,proto3" json:"single,omitempty"` Multiple []*SampleMessage `protobuf:"bytes,2,rep,name=multiple,proto3" json:"multiple,omitempty"` // contains filtered or unexported fields }
func (*ComplexMessage) Descriptor
deprecated
func (*ComplexMessage) Descriptor() ([]byte, []int)
Deprecated: Use ComplexMessage.ProtoReflect.Descriptor instead.
func (*ComplexMessage) GetMultiple ¶
func (x *ComplexMessage) GetMultiple() []*SampleMessage
func (*ComplexMessage) GetSingle ¶
func (x *ComplexMessage) GetSingle() *SampleMessage
func (*ComplexMessage) ProtoMessage ¶
func (*ComplexMessage) ProtoMessage()
func (*ComplexMessage) ProtoReflect ¶
func (x *ComplexMessage) ProtoReflect() protoreflect.Message
func (*ComplexMessage) Reset ¶
func (x *ComplexMessage) Reset()
func (*ComplexMessage) String ¶
func (x *ComplexMessage) String() string
type Country ¶
type Country struct { StateWiseCityList map[string]*CityList `` /* 175-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Country) Descriptor
deprecated
func (*Country) GetStateWiseCityList ¶
func (*Country) ProtoMessage ¶
func (*Country) ProtoMessage()
func (*Country) ProtoReflect ¶
func (x *Country) ProtoReflect() protoreflect.Message
type EyeColor ¶
type EyeColor int32
func (EyeColor) Descriptor ¶
func (EyeColor) Descriptor() protoreflect.EnumDescriptor
func (EyeColor) EnumDescriptor
deprecated
func (EyeColor) Number ¶
func (x EyeColor) Number() protoreflect.EnumNumber
func (EyeColor) Type ¶
func (EyeColor) Type() protoreflect.EnumType
type Result ¶
type Result struct { // Types that are assignable to Result: // *Result_Message // *Result_Id Result isResult_Result `protobuf_oneof:"result"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetMessage ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Result_Message ¶
type Result_Message struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3,oneof"`
}
type SampleMessage ¶
type SampleMessage struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` IsActive bool `protobuf:"varint,2,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` AltNames []string `protobuf:"bytes,4,rep,name=alt_names,json=altNames,proto3" json:"alt_names,omitempty"` // contains filtered or unexported fields }
func (*SampleMessage) Descriptor
deprecated
func (*SampleMessage) Descriptor() ([]byte, []int)
Deprecated: Use SampleMessage.ProtoReflect.Descriptor instead.
func (*SampleMessage) GetAltNames ¶
func (x *SampleMessage) GetAltNames() []string
func (*SampleMessage) GetId ¶
func (x *SampleMessage) GetId() uint32
func (*SampleMessage) GetIsActive ¶
func (x *SampleMessage) GetIsActive() bool
func (*SampleMessage) GetName ¶
func (x *SampleMessage) GetName() string
func (*SampleMessage) ProtoMessage ¶
func (*SampleMessage) ProtoMessage()
func (*SampleMessage) ProtoReflect ¶
func (x *SampleMessage) ProtoReflect() protoreflect.Message
func (*SampleMessage) Reset ¶
func (x *SampleMessage) Reset()
func (*SampleMessage) String ¶
func (x *SampleMessage) String() string
type SampleMessage2 ¶
type SampleMessage2 struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` EyeColor EyeColor `protobuf:"varint,2,opt,name=eyeColor,proto3,enum=greet.practice.level3.EyeColor" json:"eyeColor,omitempty"` // contains filtered or unexported fields }
func (*SampleMessage2) Descriptor
deprecated
func (*SampleMessage2) Descriptor() ([]byte, []int)
Deprecated: Use SampleMessage2.ProtoReflect.Descriptor instead.
func (*SampleMessage2) GetEyeColor ¶
func (x *SampleMessage2) GetEyeColor() EyeColor
func (*SampleMessage2) GetId ¶
func (x *SampleMessage2) GetId() uint32
func (*SampleMessage2) ProtoMessage ¶
func (*SampleMessage2) ProtoMessage()
func (*SampleMessage2) ProtoReflect ¶
func (x *SampleMessage2) ProtoReflect() protoreflect.Message
func (*SampleMessage2) Reset ¶
func (x *SampleMessage2) Reset()
func (*SampleMessage2) String ¶
func (x *SampleMessage2) String() string
Click to show internal directories.
Click to hide internal directories.