Documentation

Overview

    Package proto3_20160519_a4ab9ec5 is a generated protocol buffer package.

    It is generated from these files:

    proto3_20160519_a4ab9ec5/test.proto
    

    It has these top-level messages:

    SiblingMessage
    Message
    

    Index

    Constants

    This section is empty.

    Variables

    View Source
    var Message_ChildEnum_name = map[int32]string{
    	0: "ALPHA",
    	1: "BRAVO",
    	2: "CHARLIE",
    }
    View Source
    var Message_ChildEnum_value = map[string]int32{
    	"ALPHA":   0,
    	"BRAVO":   1,
    	"CHARLIE": 2,
    }
    View Source
    var SiblingEnum_name = map[int32]string{
    	0:   "ALPHA",
    	10:  "BRAVO",
    	200: "CHARLIE",
    }
    View Source
    var SiblingEnum_value = map[string]int32{
    	"ALPHA":   0,
    	"BRAVO":   10,
    	"CHARLIE": 200,
    }

    Functions

    This section is empty.

    Types

    type Message

    type Message struct {
    	// Optional fields.
    	OptionalBool           bool                  `protobuf:"varint,100,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
    	OptionalInt32          int32                 `protobuf:"varint,101,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
    	OptionalSint32         int32                 `protobuf:"zigzag32,102,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty"`
    	OptionalUint32         uint32                `protobuf:"varint,103,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"`
    	OptionalInt64          int64                 `protobuf:"varint,104,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
    	OptionalSint64         int64                 `protobuf:"zigzag64,105,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty"`
    	OptionalUint64         uint64                `protobuf:"varint,106,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty"`
    	OptionalFixed32        uint32                `protobuf:"fixed32,107,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty"`
    	OptionalSfixed32       int32                 `protobuf:"fixed32,108,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty"`
    	OptionalFloat          float32               `protobuf:"fixed32,109,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty"`
    	OptionalFixed64        uint64                `protobuf:"fixed64,110,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty"`
    	OptionalSfixed64       int64                 `protobuf:"fixed64,111,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty"`
    	OptionalDouble         float64               `protobuf:"fixed64,112,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty"`
    	OptionalString         string                `protobuf:"bytes,113,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
    	OptionalBytes          []byte                `protobuf:"bytes,114,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"`
    	OptionalChildEnum      Message_ChildEnum     `` /* 167-byte string literal not displayed */
    	OptionalChildMessage   *Message_ChildMessage `protobuf:"bytes,116,opt,name=optional_child_message,json=optionalChildMessage" json:"optional_child_message,omitempty"`
    	OptionalSiblingEnum    SiblingEnum           `` /* 167-byte string literal not displayed */
    	OptionalSiblingMessage *SiblingMessage       `protobuf:"bytes,118,opt,name=optional_sibling_message,json=optionalSiblingMessage" json:"optional_sibling_message,omitempty"`
    	// Repeated fields.
    	RepeatedBool           []bool                  `protobuf:"varint,200,rep,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"`
    	RepeatedInt32          []int32                 `protobuf:"varint,201,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
    	RepeatedSint32         []int32                 `protobuf:"zigzag32,202,rep,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"`
    	RepeatedUint32         []uint32                `protobuf:"varint,203,rep,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"`
    	RepeatedInt64          []int64                 `protobuf:"varint,204,rep,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"`
    	RepeatedSint64         []int64                 `protobuf:"zigzag64,205,rep,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"`
    	RepeatedUint64         []uint64                `protobuf:"varint,206,rep,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"`
    	RepeatedFixed32        []uint32                `protobuf:"fixed32,207,rep,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"`
    	RepeatedSfixed32       []int32                 `protobuf:"fixed32,208,rep,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"`
    	RepeatedFloat          []float32               `protobuf:"fixed32,209,rep,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"`
    	RepeatedFixed64        []uint64                `protobuf:"fixed64,210,rep,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"`
    	RepeatedSfixed64       []int64                 `protobuf:"fixed64,211,rep,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"`
    	RepeatedDouble         []float64               `protobuf:"fixed64,212,rep,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"`
    	RepeatedString         []string                `protobuf:"bytes,213,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"`
    	RepeatedBytes          [][]byte                `protobuf:"bytes,214,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"`
    	RepeatedChildEnum      []Message_ChildEnum     `` /* 167-byte string literal not displayed */
    	RepeatedChildMessage   []*Message_ChildMessage `protobuf:"bytes,216,rep,name=repeated_child_message,json=repeatedChildMessage" json:"repeated_child_message,omitempty"`
    	RepeatedSiblingEnum    []SiblingEnum           `` /* 167-byte string literal not displayed */
    	RepeatedSiblingMessage []*SiblingMessage       `protobuf:"bytes,218,rep,name=repeated_sibling_message,json=repeatedSiblingMessage" json:"repeated_sibling_message,omitempty"`
    	// Map fields.
    	MapBoolBool           map[bool]bool                  `` /* 167-byte string literal not displayed */
    	MapBoolInt32          map[bool]int32                 `` /* 170-byte string literal not displayed */
    	MapBoolSint32         map[bool]int32                 `` /* 175-byte string literal not displayed */
    	MapBoolUint32         map[bool]uint32                `` /* 173-byte string literal not displayed */
    	MapBoolInt64          map[bool]int64                 `` /* 170-byte string literal not displayed */
    	MapBoolSint64         map[bool]int64                 `` /* 175-byte string literal not displayed */
    	MapBoolUint64         map[bool]uint64                `` /* 173-byte string literal not displayed */
    	MapBoolFixed32        map[bool]uint32                `` /* 177-byte string literal not displayed */
    	MapBoolSfixed32       map[bool]int32                 `` /* 180-byte string literal not displayed */
    	MapBoolFloat          map[bool]float32               `` /* 171-byte string literal not displayed */
    	MapBoolFixed64        map[bool]uint64                `` /* 177-byte string literal not displayed */
    	MapBoolSfixed64       map[bool]int64                 `` /* 180-byte string literal not displayed */
    	MapBoolDouble         map[bool]float64               `` /* 174-byte string literal not displayed */
    	MapBoolString         map[bool]string                `` /* 172-byte string literal not displayed */
    	MapBoolBytes          map[bool][]byte                `` /* 176-byte string literal not displayed */
    	MapBoolChildEnum      map[bool]Message_ChildEnum     `` /* 241-byte string literal not displayed */
    	MapBoolChildMessage   map[bool]*Message_ChildMessage `` /* 192-byte string literal not displayed */
    	MapBoolSiblingEnum    map[bool]SiblingEnum           `` /* 241-byte string literal not displayed */
    	MapBoolSiblingMessage map[bool]*SiblingMessage       `` /* 198-byte string literal not displayed */
    	MapInt32Bool          map[int32]bool                 `` /* 170-byte string literal not displayed */
    	MapSint32Bool         map[int32]bool                 `` /* 175-byte string literal not displayed */
    	MapUint32Bool         map[uint32]bool                `` /* 173-byte string literal not displayed */
    	MapInt64Bool          map[int64]bool                 `` /* 170-byte string literal not displayed */
    	MapSint64Bool         map[int64]bool                 `` /* 175-byte string literal not displayed */
    	MapUint64Bool         map[uint64]bool                `` /* 173-byte string literal not displayed */
    	MapFixed32Bool        map[uint32]bool                `` /* 177-byte string literal not displayed */
    	MapStringBool         map[string]bool                `` /* 172-byte string literal not displayed */
    	// Oneof fields.
    	//
    	// Types that are valid to be assigned to OneofUnion:
    	//	*Message_OneofBool
    	//	*Message_OneofInt32
    	//	*Message_OneofSint32
    	//	*Message_OneofUint32
    	//	*Message_OneofInt64
    	//	*Message_OneofSint64
    	//	*Message_OneofUint64
    	//	*Message_OneofFixed32
    	//	*Message_OneofSfixed32
    	//	*Message_OneofFloat
    	//	*Message_OneofFixed64
    	//	*Message_OneofSfixed64
    	//	*Message_OneofDouble
    	//	*Message_OneofString
    	//	*Message_OneofBytes
    	//	*Message_OneofChildEnum
    	//	*Message_OneofChildMessage
    	//	*Message_OneofSiblingEnum
    	//	*Message_OneofSiblingMessage
    	//	*Message_OneofString1
    	//	*Message_OneofString2
    	//	*Message_OneofString3
    	OneofUnion isMessage_OneofUnion `protobuf_oneof:"oneof_union"`
    }

    func (*Message) Descriptor

    func (*Message) Descriptor() ([]byte, []int)

    func (*Message) GetMapBoolBool

    func (m *Message) GetMapBoolBool() map[bool]bool

    func (*Message) GetMapBoolBytes

    func (m *Message) GetMapBoolBytes() map[bool][]byte

    func (*Message) GetMapBoolChildEnum

    func (m *Message) GetMapBoolChildEnum() map[bool]Message_ChildEnum

    func (*Message) GetMapBoolChildMessage

    func (m *Message) GetMapBoolChildMessage() map[bool]*Message_ChildMessage

    func (*Message) GetMapBoolDouble

    func (m *Message) GetMapBoolDouble() map[bool]float64

    func (*Message) GetMapBoolFixed32

    func (m *Message) GetMapBoolFixed32() map[bool]uint32

    func (*Message) GetMapBoolFixed64

    func (m *Message) GetMapBoolFixed64() map[bool]uint64

    func (*Message) GetMapBoolFloat

    func (m *Message) GetMapBoolFloat() map[bool]float32

    func (*Message) GetMapBoolInt32

    func (m *Message) GetMapBoolInt32() map[bool]int32

    func (*Message) GetMapBoolInt64

    func (m *Message) GetMapBoolInt64() map[bool]int64

    func (*Message) GetMapBoolSfixed32

    func (m *Message) GetMapBoolSfixed32() map[bool]int32

    func (*Message) GetMapBoolSfixed64

    func (m *Message) GetMapBoolSfixed64() map[bool]int64

    func (*Message) GetMapBoolSiblingEnum

    func (m *Message) GetMapBoolSiblingEnum() map[bool]SiblingEnum

    func (*Message) GetMapBoolSiblingMessage

    func (m *Message) GetMapBoolSiblingMessage() map[bool]*SiblingMessage

    func (*Message) GetMapBoolSint32

    func (m *Message) GetMapBoolSint32() map[bool]int32

    func (*Message) GetMapBoolSint64

    func (m *Message) GetMapBoolSint64() map[bool]int64

    func (*Message) GetMapBoolString

    func (m *Message) GetMapBoolString() map[bool]string

    func (*Message) GetMapBoolUint32

    func (m *Message) GetMapBoolUint32() map[bool]uint32

    func (*Message) GetMapBoolUint64

    func (m *Message) GetMapBoolUint64() map[bool]uint64

    func (*Message) GetMapFixed32Bool

    func (m *Message) GetMapFixed32Bool() map[uint32]bool

    func (*Message) GetMapInt32Bool

    func (m *Message) GetMapInt32Bool() map[int32]bool

    func (*Message) GetMapInt64Bool

    func (m *Message) GetMapInt64Bool() map[int64]bool

    func (*Message) GetMapSint32Bool

    func (m *Message) GetMapSint32Bool() map[int32]bool

    func (*Message) GetMapSint64Bool

    func (m *Message) GetMapSint64Bool() map[int64]bool

    func (*Message) GetMapStringBool

    func (m *Message) GetMapStringBool() map[string]bool

    func (*Message) GetMapUint32Bool

    func (m *Message) GetMapUint32Bool() map[uint32]bool

    func (*Message) GetMapUint64Bool

    func (m *Message) GetMapUint64Bool() map[uint64]bool

    func (*Message) GetOneofBool

    func (m *Message) GetOneofBool() bool

    func (*Message) GetOneofBytes

    func (m *Message) GetOneofBytes() []byte

    func (*Message) GetOneofChildEnum

    func (m *Message) GetOneofChildEnum() Message_ChildEnum

    func (*Message) GetOneofChildMessage

    func (m *Message) GetOneofChildMessage() *Message_ChildMessage

    func (*Message) GetOneofDouble

    func (m *Message) GetOneofDouble() float64

    func (*Message) GetOneofFixed32

    func (m *Message) GetOneofFixed32() uint32

    func (*Message) GetOneofFixed64

    func (m *Message) GetOneofFixed64() uint64

    func (*Message) GetOneofFloat

    func (m *Message) GetOneofFloat() float32

    func (*Message) GetOneofInt32

    func (m *Message) GetOneofInt32() int32

    func (*Message) GetOneofInt64

    func (m *Message) GetOneofInt64() int64

    func (*Message) GetOneofSfixed32

    func (m *Message) GetOneofSfixed32() int32

    func (*Message) GetOneofSfixed64

    func (m *Message) GetOneofSfixed64() int64

    func (*Message) GetOneofSiblingEnum

    func (m *Message) GetOneofSiblingEnum() SiblingEnum

    func (*Message) GetOneofSiblingMessage

    func (m *Message) GetOneofSiblingMessage() *SiblingMessage

    func (*Message) GetOneofSint32

    func (m *Message) GetOneofSint32() int32

    func (*Message) GetOneofSint64

    func (m *Message) GetOneofSint64() int64

    func (*Message) GetOneofString

    func (m *Message) GetOneofString() string

    func (*Message) GetOneofString1

    func (m *Message) GetOneofString1() string

    func (*Message) GetOneofString2

    func (m *Message) GetOneofString2() string

    func (*Message) GetOneofString3

    func (m *Message) GetOneofString3() string

    func (*Message) GetOneofUint32

    func (m *Message) GetOneofUint32() uint32

    func (*Message) GetOneofUint64

    func (m *Message) GetOneofUint64() uint64

    func (*Message) GetOneofUnion

    func (m *Message) GetOneofUnion() isMessage_OneofUnion

    func (*Message) GetOptionalChildMessage

    func (m *Message) GetOptionalChildMessage() *Message_ChildMessage

    func (*Message) GetOptionalSiblingMessage

    func (m *Message) GetOptionalSiblingMessage() *SiblingMessage

    func (*Message) GetRepeatedChildMessage

    func (m *Message) GetRepeatedChildMessage() []*Message_ChildMessage

    func (*Message) GetRepeatedSiblingMessage

    func (m *Message) GetRepeatedSiblingMessage() []*SiblingMessage

    func (*Message) ProtoMessage

    func (*Message) ProtoMessage()

    func (*Message) Reset

    func (m *Message) Reset()

    func (*Message) String

    func (m *Message) String() string

    func (*Message) XXX_OneofFuncs

    func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

      XXX_OneofFuncs is for the internal use of the proto package.

      type Message_ChildEnum

      type Message_ChildEnum int32
      const (
      	Message_ALPHA   Message_ChildEnum = 0
      	Message_BRAVO   Message_ChildEnum = 1
      	Message_CHARLIE Message_ChildEnum = 2
      )

      func (Message_ChildEnum) EnumDescriptor

      func (Message_ChildEnum) EnumDescriptor() ([]byte, []int)

      func (Message_ChildEnum) String

      func (x Message_ChildEnum) String() string

      type Message_ChildMessage

      type Message_ChildMessage struct {
      	F1 string   `protobuf:"bytes,1,opt,name=f1" json:"f1,omitempty"`
      	F2 []string `protobuf:"bytes,2,rep,name=f2" json:"f2,omitempty"`
      	F3 *Message `protobuf:"bytes,3,opt,name=f3" json:"f3,omitempty"`
      }

      func (*Message_ChildMessage) Descriptor

      func (*Message_ChildMessage) Descriptor() ([]byte, []int)

      func (*Message_ChildMessage) GetF3

      func (m *Message_ChildMessage) GetF3() *Message

      func (*Message_ChildMessage) ProtoMessage

      func (*Message_ChildMessage) ProtoMessage()

      func (*Message_ChildMessage) Reset

      func (m *Message_ChildMessage) Reset()

      func (*Message_ChildMessage) String

      func (m *Message_ChildMessage) String() string

      type Message_OneofBool

      type Message_OneofBool struct {
      	OneofBool bool `protobuf:"varint,400,opt,name=oneof_bool,json=oneofBool,oneof"`
      }

      type Message_OneofBytes

      type Message_OneofBytes struct {
      	OneofBytes []byte `protobuf:"bytes,414,opt,name=oneof_bytes,json=oneofBytes,proto3,oneof"`
      }

      type Message_OneofChildEnum

      type Message_OneofChildEnum struct {
      	OneofChildEnum Message_ChildEnum `` /* 130-byte string literal not displayed */
      }

      type Message_OneofChildMessage

      type Message_OneofChildMessage struct {
      	OneofChildMessage *Message_ChildMessage `protobuf:"bytes,416,opt,name=oneof_child_message,json=oneofChildMessage,oneof"`
      }

      type Message_OneofDouble

      type Message_OneofDouble struct {
      	OneofDouble float64 `protobuf:"fixed64,412,opt,name=oneof_double,json=oneofDouble,oneof"`
      }

      type Message_OneofFixed32

      type Message_OneofFixed32 struct {
      	OneofFixed32 uint32 `protobuf:"fixed32,407,opt,name=oneof_fixed32,json=oneofFixed32,oneof"`
      }

      type Message_OneofFixed64

      type Message_OneofFixed64 struct {
      	OneofFixed64 uint64 `protobuf:"fixed64,410,opt,name=oneof_fixed64,json=oneofFixed64,oneof"`
      }

      type Message_OneofFloat

      type Message_OneofFloat struct {
      	OneofFloat float32 `protobuf:"fixed32,409,opt,name=oneof_float,json=oneofFloat,oneof"`
      }

      type Message_OneofInt32

      type Message_OneofInt32 struct {
      	OneofInt32 int32 `protobuf:"varint,401,opt,name=oneof_int32,json=oneofInt32,oneof"`
      }

      type Message_OneofInt64

      type Message_OneofInt64 struct {
      	OneofInt64 int64 `protobuf:"varint,404,opt,name=oneof_int64,json=oneofInt64,oneof"`
      }

      type Message_OneofSfixed32

      type Message_OneofSfixed32 struct {
      	OneofSfixed32 int32 `protobuf:"fixed32,408,opt,name=oneof_sfixed32,json=oneofSfixed32,oneof"`
      }

      type Message_OneofSfixed64

      type Message_OneofSfixed64 struct {
      	OneofSfixed64 int64 `protobuf:"fixed64,411,opt,name=oneof_sfixed64,json=oneofSfixed64,oneof"`
      }

      type Message_OneofSiblingEnum

      type Message_OneofSiblingEnum struct {
      	OneofSiblingEnum SiblingEnum `` /* 128-byte string literal not displayed */
      }

      type Message_OneofSiblingMessage

      type Message_OneofSiblingMessage struct {
      	OneofSiblingMessage *SiblingMessage `protobuf:"bytes,418,opt,name=oneof_sibling_message,json=oneofSiblingMessage,oneof"`
      }

      type Message_OneofSint32

      type Message_OneofSint32 struct {
      	OneofSint32 int32 `protobuf:"zigzag32,402,opt,name=oneof_sint32,json=oneofSint32,oneof"`
      }

      type Message_OneofSint64

      type Message_OneofSint64 struct {
      	OneofSint64 int64 `protobuf:"zigzag64,405,opt,name=oneof_sint64,json=oneofSint64,oneof"`
      }

      type Message_OneofString

      type Message_OneofString struct {
      	OneofString string `protobuf:"bytes,413,opt,name=oneof_string,json=oneofString,oneof"`
      }

      type Message_OneofString1

      type Message_OneofString1 struct {
      	OneofString1 string `protobuf:"bytes,419,opt,name=oneof_string1,json=oneofString1,oneof"`
      }

      type Message_OneofString2

      type Message_OneofString2 struct {
      	OneofString2 string `protobuf:"bytes,420,opt,name=oneof_string2,json=oneofString2,oneof"`
      }

      type Message_OneofString3

      type Message_OneofString3 struct {
      	OneofString3 string `protobuf:"bytes,421,opt,name=oneof_string3,json=oneofString3,oneof"`
      }

      type Message_OneofUint32

      type Message_OneofUint32 struct {
      	OneofUint32 uint32 `protobuf:"varint,403,opt,name=oneof_uint32,json=oneofUint32,oneof"`
      }

      type Message_OneofUint64

      type Message_OneofUint64 struct {
      	OneofUint64 uint64 `protobuf:"varint,406,opt,name=oneof_uint64,json=oneofUint64,oneof"`
      }

      type SiblingEnum

      type SiblingEnum int32
      const (
      	SiblingEnum_ALPHA   SiblingEnum = 0
      	SiblingEnum_BRAVO   SiblingEnum = 10
      	SiblingEnum_CHARLIE SiblingEnum = 200
      )

      func (SiblingEnum) EnumDescriptor

      func (SiblingEnum) EnumDescriptor() ([]byte, []int)

      func (SiblingEnum) String

      func (x SiblingEnum) String() string

      type SiblingMessage

      type SiblingMessage struct {
      	F1 string   `protobuf:"bytes,1,opt,name=f1" json:"f1,omitempty"`
      	F2 []string `protobuf:"bytes,2,rep,name=f2" json:"f2,omitempty"`
      	F3 *Message `protobuf:"bytes,3,opt,name=f3" json:"f3,omitempty"`
      }

      func (*SiblingMessage) Descriptor

      func (*SiblingMessage) Descriptor() ([]byte, []int)

      func (*SiblingMessage) GetF3

      func (m *SiblingMessage) GetF3() *Message

      func (*SiblingMessage) ProtoMessage

      func (*SiblingMessage) ProtoMessage()

      func (*SiblingMessage) Reset

      func (m *SiblingMessage) Reset()

      func (*SiblingMessage) String

      func (m *SiblingMessage) String() string

      Source Files