Documentation ¶
Index ¶
- Variables
- type IntMap
- type IntMaps
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAnything() *any.Any
- func (x *Message) GetChildren() []*Message
- func (x *Message) GetData() []byte
- func (x *Message) GetHeightInCm() uint32
- func (x *Message) GetHilarity() Message_Humour
- func (x *Message) GetKey() []uint64
- func (x *Message) GetManyThings() []*any.Any
- func (x *Message) GetName() string
- func (x *Message) GetNested() *Nested
- func (x *Message) GetProto2Field() *proto2_proto.SubDefaults
- func (x *Message) GetProto2Value() map[string]*proto2_proto.SubDefaults
- func (x *Message) GetRFunny() []Message_Humour
- func (x *Message) GetResultCount() int64
- func (x *Message) GetScore() float32
- func (x *Message) GetShortKey() []int32
- func (x *Message) GetStringMap() map[string]string
- func (x *Message) GetSubmessage() *Message
- func (x *Message) GetTerrain() map[string]*Nested
- func (x *Message) GetTrueScotsman() bool
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageWithMap
- type Message_Humour
- func (Message_Humour) Descriptor() protoreflect.EnumDescriptor
- func (x Message_Humour) Enum() *Message_Humour
- func (Message_Humour) EnumDescriptor() ([]byte, []int)deprecated
- func (x Message_Humour) Number() protoreflect.EnumNumber
- func (x Message_Humour) String() string
- func (Message_Humour) Type() protoreflect.EnumType
- type Nested
- type TestUTF8
- func (*TestUTF8) Descriptor() ([]byte, []int)deprecated
- func (x *TestUTF8) GetField() string
- func (x *TestUTF8) GetMapKey() map[string]int64
- func (x *TestUTF8) GetMapValue() map[int64]string
- func (m *TestUTF8) GetOneof() isTestUTF8_Oneof
- func (x *TestUTF8) GetScalar() string
- func (x *TestUTF8) GetVector() []string
- func (*TestUTF8) ProtoMessage()
- func (x *TestUTF8) ProtoReflect() protoreflect.Message
- func (x *TestUTF8) Reset()
- func (x *TestUTF8) String() string
- type TestUTF8_Field
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Message_Humour_name = map[int32]string{ 0: "UNKNOWN", 1: "PUNS", 2: "SLAPSTICK", 3: "BILL_BAILEY", } Message_Humour_value = map[string]int32{ "UNKNOWN": 0, "PUNS": 1, "SLAPSTICK": 2, "BILL_BAILEY": 3, } )
Enum value maps for Message_Humour.
View Source
var File_proto3_proto_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IntMap ¶
type IntMap struct { Rtt map[int32]int32 `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
func (*IntMap) Descriptor
deprecated
func (*IntMap) ProtoMessage ¶
func (*IntMap) ProtoMessage()
func (*IntMap) ProtoReflect ¶
func (x *IntMap) ProtoReflect() protoreflect.Message
type IntMaps ¶
type IntMaps struct { Maps []*IntMap `protobuf:"bytes,1,rep,name=maps,proto3" json:"maps,omitempty"` // contains filtered or unexported fields }
func (*IntMaps) Descriptor
deprecated
func (*IntMaps) ProtoMessage ¶
func (*IntMaps) ProtoMessage()
func (*IntMaps) ProtoReflect ¶
func (x *IntMaps) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Hilarity Message_Humour `protobuf:"varint,2,opt,name=hilarity,proto3,enum=proto3_test.Message_Humour" json:"hilarity,omitempty"` HeightInCm uint32 `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm,proto3" json:"height_in_cm,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` ResultCount int64 `protobuf:"varint,7,opt,name=result_count,json=resultCount,proto3" json:"result_count,omitempty"` TrueScotsman bool `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman,proto3" json:"true_scotsman,omitempty"` Score float32 `protobuf:"fixed32,9,opt,name=score,proto3" json:"score,omitempty"` Key []uint64 `protobuf:"varint,5,rep,packed,name=key,proto3" json:"key,omitempty"` ShortKey []int32 `protobuf:"varint,19,rep,packed,name=short_key,json=shortKey,proto3" json:"short_key,omitempty"` Nested *Nested `protobuf:"bytes,6,opt,name=nested,proto3" json:"nested,omitempty"` RFunny []Message_Humour `protobuf:"varint,16,rep,packed,name=r_funny,json=rFunny,proto3,enum=proto3_test.Message_Humour" json:"r_funny,omitempty"` Terrain map[string]*Nested `` /* 156-byte string literal not displayed */ Proto2Field *proto2_proto.SubDefaults `protobuf:"bytes,11,opt,name=proto2_field,json=proto2Field,proto3" json:"proto2_field,omitempty"` Proto2Value map[string]*proto2_proto.SubDefaults `` /* 183-byte string literal not displayed */ Anything *any.Any `protobuf:"bytes,14,opt,name=anything,proto3" json:"anything,omitempty"` ManyThings []*any.Any `protobuf:"bytes,15,rep,name=many_things,json=manyThings,proto3" json:"many_things,omitempty"` Submessage *Message `protobuf:"bytes,17,opt,name=submessage,proto3" json:"submessage,omitempty"` Children []*Message `protobuf:"bytes,18,rep,name=children,proto3" json:"children,omitempty"` StringMap map[string]string `` /* 177-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetAnything ¶
func (*Message) GetChildren ¶
func (*Message) GetHeightInCm ¶
func (*Message) GetHilarity ¶
func (x *Message) GetHilarity() Message_Humour
func (*Message) GetManyThings ¶
func (*Message) GetProto2Field ¶
func (x *Message) GetProto2Field() *proto2_proto.SubDefaults
func (*Message) GetProto2Value ¶
func (x *Message) GetProto2Value() map[string]*proto2_proto.SubDefaults
func (*Message) GetRFunny ¶
func (x *Message) GetRFunny() []Message_Humour
func (*Message) GetResultCount ¶
func (*Message) GetShortKey ¶
func (*Message) GetStringMap ¶
func (*Message) GetSubmessage ¶
func (*Message) GetTerrain ¶
func (*Message) GetTrueScotsman ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageWithMap ¶
type MessageWithMap struct { ByteMapping map[bool][]byte `` /* 183-byte string literal not displayed */ // contains filtered or unexported fields }
func (*MessageWithMap) Descriptor
deprecated
func (*MessageWithMap) Descriptor() ([]byte, []int)
Deprecated: Use MessageWithMap.ProtoReflect.Descriptor instead.
func (*MessageWithMap) GetByteMapping ¶
func (x *MessageWithMap) GetByteMapping() map[bool][]byte
func (*MessageWithMap) ProtoMessage ¶
func (*MessageWithMap) ProtoMessage()
func (*MessageWithMap) ProtoReflect ¶
func (x *MessageWithMap) ProtoReflect() protoreflect.Message
func (*MessageWithMap) Reset ¶
func (x *MessageWithMap) Reset()
func (*MessageWithMap) String ¶
func (x *MessageWithMap) String() string
type Message_Humour ¶
type Message_Humour int32
const ( Message_UNKNOWN Message_Humour = 0 Message_PUNS Message_Humour = 1 Message_SLAPSTICK Message_Humour = 2 Message_BILL_BAILEY Message_Humour = 3 )
func (Message_Humour) Descriptor ¶
func (Message_Humour) Descriptor() protoreflect.EnumDescriptor
func (Message_Humour) Enum ¶
func (x Message_Humour) Enum() *Message_Humour
func (Message_Humour) EnumDescriptor
deprecated
func (Message_Humour) EnumDescriptor() ([]byte, []int)
Deprecated: Use Message_Humour.Descriptor instead.
func (Message_Humour) Number ¶
func (x Message_Humour) Number() protoreflect.EnumNumber
func (Message_Humour) String ¶
func (x Message_Humour) String() string
func (Message_Humour) Type ¶
func (Message_Humour) Type() protoreflect.EnumType
type Nested ¶
type Nested struct { Bunny string `protobuf:"bytes,1,opt,name=bunny,proto3" json:"bunny,omitempty"` Cute bool `protobuf:"varint,2,opt,name=cute,proto3" json:"cute,omitempty"` // contains filtered or unexported fields }
func (*Nested) Descriptor
deprecated
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
func (*Nested) ProtoReflect ¶
func (x *Nested) ProtoReflect() protoreflect.Message
type TestUTF8 ¶
type TestUTF8 struct { Scalar string `protobuf:"bytes,1,opt,name=scalar,proto3" json:"scalar,omitempty"` Vector []string `protobuf:"bytes,2,rep,name=vector,proto3" json:"vector,omitempty"` // Types that are assignable to Oneof: // *TestUTF8_Field Oneof isTestUTF8_Oneof `protobuf_oneof:"oneof"` MapKey map[string]int64 `` /* 168-byte string literal not displayed */ MapValue map[int64]string `` /* 174-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TestUTF8) Descriptor
deprecated
func (*TestUTF8) GetMapValue ¶
func (*TestUTF8) ProtoMessage ¶
func (*TestUTF8) ProtoMessage()
func (*TestUTF8) ProtoReflect ¶
func (x *TestUTF8) ProtoReflect() protoreflect.Message
type TestUTF8_Field ¶
type TestUTF8_Field struct {
Field string `protobuf:"bytes,3,opt,name=field,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.