Documentation ¶
Overview ¶
Package proto3_proto is a generated protocol buffer package.
It is generated from these files:
proto3_proto/proto3.proto
It has these top-level messages:
Message Nested MessageWithMap IntMap IntMaps
Index ¶
- Variables
- type IntMap
- type IntMaps
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetAnything() *google_protobuf.Any
- func (m *Message) GetChildren() []*Message
- func (m *Message) GetData() []byte
- func (m *Message) GetHeightInCm() uint32
- func (m *Message) GetHilarity() Message_Humour
- func (m *Message) GetKey() []uint64
- func (m *Message) GetManyThings() []*google_protobuf.Any
- func (m *Message) GetName() string
- func (m *Message) GetNested() *Nested
- func (m *Message) GetProto2Field() *testdata.SubDefaults
- func (m *Message) GetProto2Value() map[string]*testdata.SubDefaults
- func (m *Message) GetRFunny() []Message_Humour
- func (m *Message) GetResultCount() int64
- func (m *Message) GetScore() float32
- func (m *Message) GetShortKey() []int32
- func (m *Message) GetSubmessage() *Message
- func (m *Message) GetTerrain() map[string]*Nested
- func (m *Message) GetTrueScotsman() bool
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- type MessageWithMap
- type Message_Humour
- type Nested
Constants ¶
This section is empty.
Variables ¶
View Source
var Message_Humour_name = map[int32]string{
0: "UNKNOWN",
1: "PUNS",
2: "SLAPSTICK",
3: "BILL_BAILEY",
}
View Source
var Message_Humour_value = map[string]int32{
"UNKNOWN": 0,
"PUNS": 1,
"SLAPSTICK": 2,
"BILL_BAILEY": 3,
}
Functions ¶
This section is empty.
Types ¶
type IntMap ¶
func (*IntMap) Descriptor ¶
func (*IntMap) ProtoMessage ¶
func (*IntMap) ProtoMessage()
type IntMaps ¶
type IntMaps struct {
Maps []*IntMap `protobuf:"bytes,1,rep,name=maps" json:"maps,omitempty"`
}
func (*IntMaps) Descriptor ¶
func (*IntMaps) ProtoMessage ¶
func (*IntMaps) ProtoMessage()
type Message ¶
type Message struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Hilarity Message_Humour `protobuf:"varint,2,opt,name=hilarity,enum=proto3_proto.Message_Humour" json:"hilarity,omitempty"` HeightInCm uint32 `protobuf:"varint,3,opt,name=height_in_cm,json=heightInCm" 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" json:"result_count,omitempty"` TrueScotsman bool `protobuf:"varint,8,opt,name=true_scotsman,json=trueScotsman" json:"true_scotsman,omitempty"` Score float32 `protobuf:"fixed32,9,opt,name=score" json:"score,omitempty"` Key []uint64 `protobuf:"varint,5,rep,packed,name=key" json:"key,omitempty"` ShortKey []int32 `protobuf:"varint,19,rep,packed,name=short_key,json=shortKey" json:"short_key,omitempty"` Nested *Nested `protobuf:"bytes,6,opt,name=nested" json:"nested,omitempty"` RFunny []Message_Humour `protobuf:"varint,16,rep,packed,name=r_funny,json=rFunny,enum=proto3_proto.Message_Humour" json:"r_funny,omitempty"` Terrain map[string]*Nested `` /* 135-byte string literal not displayed */ Proto2Field *testdata.SubDefaults `protobuf:"bytes,11,opt,name=proto2_field,json=proto2Field" json:"proto2_field,omitempty"` Proto2Value map[string]*testdata.SubDefaults `` /* 162-byte string literal not displayed */ Anything *google_protobuf.Any `protobuf:"bytes,14,opt,name=anything" json:"anything,omitempty"` ManyThings []*google_protobuf.Any `protobuf:"bytes,15,rep,name=many_things,json=manyThings" json:"many_things,omitempty"` Submessage *Message `protobuf:"bytes,17,opt,name=submessage" json:"submessage,omitempty"` Children []*Message `protobuf:"bytes,18,rep,name=children" json:"children,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) GetAnything ¶
func (m *Message) GetAnything() *google_protobuf.Any
func (*Message) GetChildren ¶
func (*Message) GetHeightInCm ¶
func (*Message) GetHilarity ¶
func (m *Message) GetHilarity() Message_Humour
func (*Message) GetManyThings ¶
func (m *Message) GetManyThings() []*google_protobuf.Any
func (*Message) GetProto2Field ¶
func (m *Message) GetProto2Field() *testdata.SubDefaults
func (*Message) GetProto2Value ¶
func (m *Message) GetProto2Value() map[string]*testdata.SubDefaults
func (*Message) GetRFunny ¶
func (m *Message) GetRFunny() []Message_Humour
func (*Message) GetResultCount ¶
func (*Message) GetShortKey ¶
func (*Message) GetSubmessage ¶
func (*Message) GetTerrain ¶
func (*Message) GetTrueScotsman ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type MessageWithMap ¶
type MessageWithMap struct {
ByteMapping map[bool][]byte `` /* 169-byte string literal not displayed */
}
func (*MessageWithMap) Descriptor ¶
func (*MessageWithMap) Descriptor() ([]byte, []int)
func (*MessageWithMap) GetByteMapping ¶
func (m *MessageWithMap) GetByteMapping() map[bool][]byte
func (*MessageWithMap) ProtoMessage ¶
func (*MessageWithMap) ProtoMessage()
func (*MessageWithMap) Reset ¶
func (m *MessageWithMap) Reset()
func (*MessageWithMap) String ¶
func (m *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) EnumDescriptor ¶
func (Message_Humour) EnumDescriptor() ([]byte, []int)
func (Message_Humour) String ¶
func (x Message_Humour) String() string
type Nested ¶
type Nested struct { Bunny string `protobuf:"bytes,1,opt,name=bunny" json:"bunny,omitempty"` Cute bool `protobuf:"varint,2,opt,name=cute" json:"cute,omitempty"` }
func (*Nested) Descriptor ¶
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.