theproto3

package
v0.0.0-...-146d3ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2015 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package theproto3 is a generated protocol buffer package.

It is generated from these files:

combos/unsafeboth/theproto3.proto

It has these top-level messages:

Message
Nested
AllMaps
MessageWithMap
FloatingPoint

Index

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 NewPopulatedAllMaps(r randyTheproto3, easy bool) *AllMaps

func (*AllMaps) Description

func (this *AllMaps) Description() (desc *google_protobuf.FileDescriptorSet)

func (*AllMaps) Equal

func (this *AllMaps) Equal(that interface{}) bool

func (*AllMaps) GetBoolMap

func (this *AllMaps) GetBoolMap() map[bool]bool

func (*AllMaps) GetFixed32Map

func (this *AllMaps) GetFixed32Map() map[uint32]uint32

func (*AllMaps) GetFixed64Map

func (this *AllMaps) GetFixed64Map() map[uint64]uint64

func (*AllMaps) GetInt32Map

func (this *AllMaps) GetInt32Map() map[int32]int32

func (*AllMaps) GetInt64Map

func (this *AllMaps) GetInt64Map() map[int64]int64

func (*AllMaps) GetSfixed32Map

func (this *AllMaps) GetSfixed32Map() map[int32]int32

func (*AllMaps) GetSfixed64Map

func (this *AllMaps) GetSfixed64Map() map[int64]int64

func (*AllMaps) GetSint32Map

func (this *AllMaps) GetSint32Map() map[int32]int32

func (*AllMaps) GetSint64Map

func (this *AllMaps) GetSint64Map() map[int64]int64

func (*AllMaps) GetStringMap

func (this *AllMaps) GetStringMap() map[string]string

func (*AllMaps) GetStringToBytesMap

func (this *AllMaps) GetStringToBytesMap() map[string][]byte

func (*AllMaps) GetStringToDoubleMap

func (this *AllMaps) GetStringToDoubleMap() map[string]float64

func (*AllMaps) GetStringToEnumMap

func (this *AllMaps) GetStringToEnumMap() map[string]MapEnum

func (*AllMaps) GetStringToFloatMap

func (this *AllMaps) GetStringToFloatMap() map[string]float32

func (*AllMaps) GetStringToMsgMap

func (this *AllMaps) GetStringToMsgMap() map[string]*FloatingPoint

func (*AllMaps) GetUint32Map

func (this *AllMaps) GetUint32Map() map[uint32]uint32

func (*AllMaps) GetUint64Map

func (this *AllMaps) GetUint64Map() map[uint64]uint64

func (*AllMaps) GoString

func (this *AllMaps) GoString() string

func (*AllMaps) Marshal

func (m *AllMaps) Marshal() (data []byte, err error)

func (*AllMaps) MarshalTo

func (m *AllMaps) MarshalTo(data []byte) (n int, err error)

func (*AllMaps) Proto

func (*AllMaps) ProtoMessage

func (*AllMaps) ProtoMessage()

func (*AllMaps) Reset

func (m *AllMaps) Reset()

func (*AllMaps) Size

func (m *AllMaps) Size() (n int)

func (*AllMaps) String

func (this *AllMaps) String() string

func (*AllMaps) TestProto

func (*AllMaps) Unmarshal

func (m *AllMaps) Unmarshal(data []byte) error

func (*AllMaps) VerboseEqual

func (this *AllMaps) VerboseEqual(that interface{}) error

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) MarshalTo

func (m *FloatingPoint) MarshalTo(data []byte) (n int, err error)

func (*FloatingPoint) Proto

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 (*FloatingPoint) Unmarshal

func (m *FloatingPoint) Unmarshal(data []byte) error

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 MapEnum

type MapEnum int32
const (
	MA MapEnum = 0
	MB MapEnum = 1
	MC MapEnum = 2
)

func (MapEnum) String

func (x MapEnum) String() string

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 NewPopulatedMessage(r randyTheproto3, easy bool) *Message

func (*Message) Description

func (this *Message) Description() (desc *google_protobuf.FileDescriptorSet)

func (*Message) Equal

func (this *Message) Equal(that interface{}) bool

func (*Message) GetData

func (this *Message) GetData() []byte

func (*Message) GetHeightInCm

func (this *Message) GetHeightInCm() uint32

func (*Message) GetHilarity

func (this *Message) GetHilarity() Message_Humour

func (*Message) GetKey

func (this *Message) GetKey() []uint64

func (*Message) GetName

func (this *Message) GetName() string

func (*Message) GetNested

func (this *Message) GetNested() *Nested

func (*Message) GetProto2Field

func (this *Message) GetProto2Field() *test.NinOptNative

func (*Message) GetProto2Value

func (this *Message) GetProto2Value() map[int64]*test.NinOptEnum

func (*Message) GetResultCount

func (this *Message) GetResultCount() int64

func (*Message) GetScore

func (this *Message) GetScore() float32

func (*Message) GetTerrain

func (this *Message) GetTerrain() map[int64]*Nested

func (*Message) GetTrueScotsman

func (this *Message) GetTrueScotsman() bool

func (*Message) GoString

func (this *Message) GoString() string

func (*Message) Marshal

func (m *Message) Marshal() (data []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(data []byte) (n int, err error)

func (*Message) Proto

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (this *Message) String() string

func (*Message) TestProto

func (*Message) Unmarshal

func (m *Message) Unmarshal(data []byte) error

func (*Message) VerboseEqual

func (this *Message) VerboseEqual(that interface{}) error

type MessageFace

type MessageFace interface {
	Proto() github_com_gogo_protobuf_proto.Message
	GetName() string
	GetHilarity() Message_Humour
	GetHeightInCm() uint32
	GetData() []byte
	GetKey() []uint64
	GetNested() *Nested
	GetResultCount() int64
	GetTrueScotsman() bool
	GetScore() float32
	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) MarshalTo

func (m *MessageWithMap) MarshalTo(data []byte) (n int, err error)

func (*MessageWithMap) Proto

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 (*MessageWithMap) Unmarshal

func (m *MessageWithMap) Unmarshal(data []byte) error

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 NewPopulatedNested(r randyTheproto3, easy bool) *Nested

func (*Nested) Description

func (this *Nested) Description() (desc *google_protobuf.FileDescriptorSet)

func (*Nested) Equal

func (this *Nested) Equal(that interface{}) bool

func (*Nested) GetBunny

func (this *Nested) GetBunny() string

func (*Nested) GoString

func (this *Nested) GoString() string

func (*Nested) Marshal

func (m *Nested) Marshal() (data []byte, err error)

func (*Nested) MarshalTo

func (m *Nested) MarshalTo(data []byte) (n int, err error)

func (*Nested) Proto

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) Reset

func (m *Nested) Reset()

func (*Nested) Size

func (m *Nested) Size() (n int)

func (*Nested) String

func (this *Nested) String() string

func (*Nested) TestProto

func (this *Nested) TestProto() github_com_gogo_protobuf_proto.Message

func (*Nested) Unmarshal

func (m *Nested) Unmarshal(data []byte) error

func (*Nested) VerboseEqual

func (this *Nested) VerboseEqual(that interface{}) error

type NestedFace

type NestedFace interface {
	Proto() github_com_gogo_protobuf_proto.Message
	GetBunny() string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL