Documentation ¶
Overview ¶
Package theproto3 is a generated protocol buffer package.
It is generated from these files:
combos/marshaler/theproto3.proto
It has these top-level messages:
Message Nested AllMaps MessageWithMap FloatingPoint
Index ¶
- Variables
- func Theproto3Description() (desc *google_protobuf.FileDescriptorSet)
- type AllMaps
- func (this *AllMaps) Description() (desc *google_protobuf.FileDescriptorSet)
- func (this *AllMaps) Equal(that interface{}) bool
- func (this *AllMaps) GetBoolMap() map[bool]bool
- func (this *AllMaps) GetFixed32Map() map[uint32]uint32
- func (this *AllMaps) GetFixed64Map() map[uint64]uint64
- func (this *AllMaps) GetInt32Map() map[int32]int32
- func (this *AllMaps) GetInt64Map() map[int64]int64
- func (this *AllMaps) GetSfixed32Map() map[int32]int32
- func (this *AllMaps) GetSfixed64Map() map[int64]int64
- func (this *AllMaps) GetSint32Map() map[int32]int32
- func (this *AllMaps) GetSint64Map() map[int64]int64
- func (this *AllMaps) GetStringMap() map[string]string
- func (this *AllMaps) GetStringToBytesMap() map[string][]byte
- func (this *AllMaps) GetStringToDoubleMap() map[string]float64
- func (this *AllMaps) GetStringToEnumMap() map[string]MapEnum
- func (this *AllMaps) GetStringToFloatMap() map[string]float32
- func (this *AllMaps) GetStringToMsgMap() map[string]*FloatingPoint
- func (this *AllMaps) GetUint32Map() map[uint32]uint32
- func (this *AllMaps) GetUint64Map() map[uint64]uint64
- func (this *AllMaps) GoString() string
- func (m *AllMaps) Marshal() (data []byte, err error)
- func (m *AllMaps) MarshalTo(data []byte) (int, error)
- func (this *AllMaps) Proto() github_com_gogo_protobuf_proto.Message
- func (*AllMaps) ProtoMessage()
- func (m *AllMaps) Reset()
- func (m *AllMaps) Size() (n int)
- func (this *AllMaps) String() string
- func (this *AllMaps) TestProto() github_com_gogo_protobuf_proto.Message
- func (this *AllMaps) VerboseEqual(that interface{}) error
- type AllMapsFace
- type FloatingPoint
- func (this *FloatingPoint) Description() (desc *google_protobuf.FileDescriptorSet)
- func (this *FloatingPoint) Equal(that interface{}) bool
- func (this *FloatingPoint) GetF() float64
- func (this *FloatingPoint) GoString() string
- func (m *FloatingPoint) Marshal() (data []byte, err error)
- func (m *FloatingPoint) MarshalTo(data []byte) (int, error)
- func (this *FloatingPoint) Proto() github_com_gogo_protobuf_proto.Message
- func (*FloatingPoint) ProtoMessage()
- func (m *FloatingPoint) Reset()
- func (m *FloatingPoint) Size() (n int)
- func (this *FloatingPoint) String() string
- func (this *FloatingPoint) TestProto() github_com_gogo_protobuf_proto.Message
- func (this *FloatingPoint) VerboseEqual(that interface{}) error
- type FloatingPointFace
- type MapEnum
- type Message
- func (this *Message) Description() (desc *google_protobuf.FileDescriptorSet)
- func (this *Message) Equal(that interface{}) bool
- func (this *Message) GetData() []byte
- func (this *Message) GetHeightInCm() uint32
- func (this *Message) GetHilarity() Message_Humour
- func (this *Message) GetKey() []uint64
- func (this *Message) GetName() string
- func (this *Message) GetNested() *Nested
- func (this *Message) GetProto2Field() *test.NinOptNative
- func (this *Message) GetProto2Value() map[int64]*test.NinOptEnum
- func (this *Message) GetResultCount() int64
- func (this *Message) GetScore() float32
- func (this *Message) GetTerrain() map[int64]*Nested
- func (this *Message) GetTrueScotsman() bool
- func (this *Message) GoString() string
- func (m *Message) Marshal() (data []byte, err error)
- func (m *Message) MarshalTo(data []byte) (int, error)
- func (this *Message) Proto() github_com_gogo_protobuf_proto.Message
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (this *Message) String() string
- func (this *Message) TestProto() github_com_gogo_protobuf_proto.Message
- func (this *Message) VerboseEqual(that interface{}) error
- type MessageFace
- type MessageWithMap
- func (this *MessageWithMap) Description() (desc *google_protobuf.FileDescriptorSet)
- func (this *MessageWithMap) Equal(that interface{}) bool
- func (this *MessageWithMap) GetByteMapping() map[bool][]byte
- func (this *MessageWithMap) GetMsgMapping() map[int64]*FloatingPoint
- func (this *MessageWithMap) GetNameMapping() map[int32]string
- func (this *MessageWithMap) GoString() string
- func (m *MessageWithMap) Marshal() (data []byte, err error)
- func (m *MessageWithMap) MarshalTo(data []byte) (int, error)
- func (this *MessageWithMap) Proto() github_com_gogo_protobuf_proto.Message
- func (*MessageWithMap) ProtoMessage()
- func (m *MessageWithMap) Reset()
- func (m *MessageWithMap) Size() (n int)
- func (this *MessageWithMap) String() string
- func (this *MessageWithMap) TestProto() github_com_gogo_protobuf_proto.Message
- func (this *MessageWithMap) VerboseEqual(that interface{}) error
- type MessageWithMapFace
- type Message_Humour
- type Nested
- func (this *Nested) Description() (desc *google_protobuf.FileDescriptorSet)
- func (this *Nested) Equal(that interface{}) bool
- func (this *Nested) GetBunny() string
- func (this *Nested) GoString() string
- func (m *Nested) Marshal() (data []byte, err error)
- func (m *Nested) MarshalTo(data []byte) (int, error)
- func (this *Nested) Proto() github_com_gogo_protobuf_proto.Message
- func (*Nested) ProtoMessage()
- func (m *Nested) Reset()
- func (m *Nested) Size() (n int)
- func (this *Nested) String() string
- func (this *Nested) TestProto() github_com_gogo_protobuf_proto.Message
- func (this *Nested) VerboseEqual(that interface{}) error
- type NestedFace
Constants ¶
This section is empty.
Variables ¶
View Source
var MapEnum_name = map[int32]string{
0: "MA",
1: "MB",
2: "MC",
}
View Source
var MapEnum_value = map[string]int32{
"MA": 0,
"MB": 1,
"MC": 2,
}
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 ¶
func Theproto3Description ¶
func Theproto3Description() (desc *google_protobuf.FileDescriptorSet)
Types ¶
type AllMaps ¶
type AllMaps struct { StringToDoubleMap map[string]float64 `` /* 147-byte string literal not displayed */ StringToFloatMap map[string]float32 `` /* 146-byte string literal not displayed */ Int32Map map[int32]int32 `` /* 138-byte string literal not displayed */ Int64Map map[int64]int64 `` /* 138-byte string literal not displayed */ Uint32Map map[uint32]uint32 `` /* 139-byte string literal not displayed */ Uint64Map map[uint64]uint64 `` /* 139-byte string literal not displayed */ Sint32Map map[int32]int32 `` /* 143-byte string literal not displayed */ Sint64Map map[int64]int64 `` /* 143-byte string literal not displayed */ Fixed32Map map[uint32]uint32 `` /* 142-byte string literal not displayed */ Sfixed32Map map[int32]int32 `` /* 144-byte string literal not displayed */ Fixed64Map map[uint64]uint64 `` /* 143-byte string literal not displayed */ Sfixed64Map map[int64]int64 `` /* 144-byte string literal not displayed */ BoolMap map[bool]bool `` /* 138-byte string literal not displayed */ StringMap map[string]string `` /* 138-byte string literal not displayed */ StringToBytesMap map[string][]byte `` /* 145-byte string literal not displayed */ StringToEnumMap map[string]MapEnum `` /* 168-byte string literal not displayed */ StringToMsgMap map[string]*FloatingPoint `` /* 136-byte string literal not displayed */ }
func NewAllMapsFromFace ¶
func NewAllMapsFromFace(that AllMapsFace) *AllMaps
func NewPopulatedAllMaps ¶
func (*AllMaps) Description ¶
func (this *AllMaps) Description() (desc *google_protobuf.FileDescriptorSet)
func (*AllMaps) GetBoolMap ¶
func (*AllMaps) GetFixed32Map ¶
func (*AllMaps) GetFixed64Map ¶
func (*AllMaps) GetInt32Map ¶
func (*AllMaps) GetInt64Map ¶
func (*AllMaps) GetSfixed32Map ¶
func (*AllMaps) GetSfixed64Map ¶
func (*AllMaps) GetSint32Map ¶
func (*AllMaps) GetSint64Map ¶
func (*AllMaps) GetStringMap ¶
func (*AllMaps) GetStringToBytesMap ¶
func (*AllMaps) GetStringToDoubleMap ¶
func (*AllMaps) GetStringToEnumMap ¶
func (*AllMaps) GetStringToFloatMap ¶
func (*AllMaps) GetStringToMsgMap ¶
func (this *AllMaps) GetStringToMsgMap() map[string]*FloatingPoint
func (*AllMaps) GetUint32Map ¶
func (*AllMaps) GetUint64Map ¶
func (*AllMaps) Proto ¶
func (this *AllMaps) Proto() github_com_gogo_protobuf_proto.Message
func (*AllMaps) ProtoMessage ¶
func (*AllMaps) ProtoMessage()
func (*AllMaps) TestProto ¶
func (this *AllMaps) TestProto() github_com_gogo_protobuf_proto.Message
func (*AllMaps) VerboseEqual ¶
type AllMapsFace ¶
type AllMapsFace interface { Proto() github_com_gogo_protobuf_proto.Message GetStringToDoubleMap() map[string]float64 GetStringToFloatMap() map[string]float32 GetInt32Map() map[int32]int32 GetInt64Map() map[int64]int64 GetUint32Map() map[uint32]uint32 GetUint64Map() map[uint64]uint64 GetSint32Map() map[int32]int32 GetSint64Map() map[int64]int64 GetFixed32Map() map[uint32]uint32 GetSfixed32Map() map[int32]int32 GetFixed64Map() map[uint64]uint64 GetSfixed64Map() map[int64]int64 GetBoolMap() map[bool]bool GetStringMap() map[string]string GetStringToBytesMap() map[string][]byte GetStringToEnumMap() map[string]MapEnum GetStringToMsgMap() map[string]*FloatingPoint }
type FloatingPoint ¶
type FloatingPoint struct {
F float64 `protobuf:"fixed64,1,opt,name=f,proto3" json:"f,omitempty"`
}
func NewFloatingPointFromFace ¶
func NewFloatingPointFromFace(that FloatingPointFace) *FloatingPoint
func NewPopulatedFloatingPoint ¶
func NewPopulatedFloatingPoint(r randyTheproto3, easy bool) *FloatingPoint
func (*FloatingPoint) Description ¶
func (this *FloatingPoint) Description() (desc *google_protobuf.FileDescriptorSet)
func (*FloatingPoint) Equal ¶
func (this *FloatingPoint) Equal(that interface{}) bool
func (*FloatingPoint) GetF ¶
func (this *FloatingPoint) GetF() float64
func (*FloatingPoint) GoString ¶
func (this *FloatingPoint) GoString() string
func (*FloatingPoint) Marshal ¶
func (m *FloatingPoint) Marshal() (data []byte, err error)
func (*FloatingPoint) Proto ¶
func (this *FloatingPoint) Proto() github_com_gogo_protobuf_proto.Message
func (*FloatingPoint) ProtoMessage ¶
func (*FloatingPoint) ProtoMessage()
func (*FloatingPoint) Reset ¶
func (m *FloatingPoint) Reset()
func (*FloatingPoint) Size ¶
func (m *FloatingPoint) Size() (n int)
func (*FloatingPoint) String ¶
func (this *FloatingPoint) String() string
func (*FloatingPoint) TestProto ¶
func (this *FloatingPoint) TestProto() github_com_gogo_protobuf_proto.Message
func (*FloatingPoint) VerboseEqual ¶
func (this *FloatingPoint) VerboseEqual(that interface{}) error
type FloatingPointFace ¶
type FloatingPointFace interface { Proto() github_com_gogo_protobuf_proto.Message GetF() float64 }
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=theproto3.Message_Humour" json:"hilarity,omitempty"` HeightInCm uint32 `protobuf:"varint,3,opt,name=height_in_cm,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,proto3" json:"result_count,omitempty"` TrueScotsman bool `protobuf:"varint,8,opt,name=true_scotsman,proto3" json:"true_scotsman,omitempty"` Score float32 `protobuf:"fixed32,9,opt,name=score,proto3" json:"score,omitempty"` Key []uint64 `protobuf:"varint,5,rep,name=key" json:"key,omitempty"` Nested *Nested `protobuf:"bytes,6,opt,name=nested" json:"nested,omitempty"` Terrain map[int64]*Nested `` /* 143-byte string literal not displayed */ Proto2Field *test.NinOptNative `protobuf:"bytes,11,opt,name=proto2_field" json:"proto2_field,omitempty"` Proto2Value map[int64]*test.NinOptEnum `` /* 153-byte string literal not displayed */ }
func NewMessageFromFace ¶
func NewMessageFromFace(that MessageFace) *Message
func NewPopulatedMessage ¶
func (*Message) Description ¶
func (this *Message) Description() (desc *google_protobuf.FileDescriptorSet)
func (*Message) GetHeightInCm ¶
func (*Message) GetHilarity ¶
func (this *Message) GetHilarity() Message_Humour
func (*Message) GetProto2Field ¶
func (this *Message) GetProto2Field() *test.NinOptNative
func (*Message) GetProto2Value ¶
func (this *Message) GetProto2Value() map[int64]*test.NinOptEnum
func (*Message) GetResultCount ¶
func (*Message) GetTerrain ¶
func (*Message) GetTrueScotsman ¶
func (*Message) Proto ¶
func (this *Message) Proto() github_com_gogo_protobuf_proto.Message
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) TestProto ¶
func (this *Message) TestProto() github_com_gogo_protobuf_proto.Message
func (*Message) VerboseEqual ¶
type MessageFace ¶
type MessageFace interface { Proto() github_com_gogo_protobuf_proto.Message GetName() string GetHilarity() Message_Humour GetHeightInCm() uint32 GetData() []byte GetResultCount() int64 GetTrueScotsman() bool GetScore() float32 GetKey() []uint64 GetNested() *Nested GetTerrain() map[int64]*Nested GetProto2Field() *test.NinOptNative GetProto2Value() map[int64]*test.NinOptEnum }
type MessageWithMap ¶
type MessageWithMap struct { NameMapping map[int32]string `` /* 159-byte string literal not displayed */ MsgMapping map[int64]*FloatingPoint `` /* 152-byte string literal not displayed */ ByteMapping map[bool][]byte `` /* 159-byte string literal not displayed */ }
func NewMessageWithMapFromFace ¶
func NewMessageWithMapFromFace(that MessageWithMapFace) *MessageWithMap
func NewPopulatedMessageWithMap ¶
func NewPopulatedMessageWithMap(r randyTheproto3, easy bool) *MessageWithMap
func (*MessageWithMap) Description ¶
func (this *MessageWithMap) Description() (desc *google_protobuf.FileDescriptorSet)
func (*MessageWithMap) Equal ¶
func (this *MessageWithMap) Equal(that interface{}) bool
func (*MessageWithMap) GetByteMapping ¶
func (this *MessageWithMap) GetByteMapping() map[bool][]byte
func (*MessageWithMap) GetMsgMapping ¶
func (this *MessageWithMap) GetMsgMapping() map[int64]*FloatingPoint
func (*MessageWithMap) GetNameMapping ¶
func (this *MessageWithMap) GetNameMapping() map[int32]string
func (*MessageWithMap) GoString ¶
func (this *MessageWithMap) GoString() string
func (*MessageWithMap) Marshal ¶
func (m *MessageWithMap) Marshal() (data []byte, err error)
func (*MessageWithMap) Proto ¶
func (this *MessageWithMap) Proto() github_com_gogo_protobuf_proto.Message
func (*MessageWithMap) ProtoMessage ¶
func (*MessageWithMap) ProtoMessage()
func (*MessageWithMap) Reset ¶
func (m *MessageWithMap) Reset()
func (*MessageWithMap) Size ¶
func (m *MessageWithMap) Size() (n int)
func (*MessageWithMap) String ¶
func (this *MessageWithMap) String() string
func (*MessageWithMap) TestProto ¶
func (this *MessageWithMap) TestProto() github_com_gogo_protobuf_proto.Message
func (*MessageWithMap) VerboseEqual ¶
func (this *MessageWithMap) VerboseEqual(that interface{}) error
type MessageWithMapFace ¶
type MessageWithMapFace interface { Proto() github_com_gogo_protobuf_proto.Message GetNameMapping() map[int32]string GetMsgMapping() map[int64]*FloatingPoint GetByteMapping() map[bool][]byte }
type Message_Humour ¶
type Message_Humour int32
const ( UNKNOWN Message_Humour = 0 PUNS Message_Humour = 1 SLAPSTICK Message_Humour = 2 BILL_BAILEY Message_Humour = 3 )
func (Message_Humour) String ¶
func (x Message_Humour) String() string
type Nested ¶
type Nested struct {
Bunny string `protobuf:"bytes,1,opt,name=bunny,proto3" json:"bunny,omitempty"`
}
func NewNestedFromFace ¶
func NewNestedFromFace(that NestedFace) *Nested
func NewPopulatedNested ¶
func (*Nested) Description ¶
func (this *Nested) Description() (desc *google_protobuf.FileDescriptorSet)
func (*Nested) Proto ¶
func (this *Nested) Proto() github_com_gogo_protobuf_proto.Message
func (*Nested) ProtoMessage ¶
func (*Nested) ProtoMessage()
func (*Nested) TestProto ¶
func (this *Nested) TestProto() github_com_gogo_protobuf_proto.Message
func (*Nested) VerboseEqual ¶
type NestedFace ¶
type NestedFace interface { Proto() github_com_gogo_protobuf_proto.Message GetBunny() string }
Click to show internal directories.
Click to hide internal directories.