proto3pb

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalEnum_name = map[int32]string{
	0: "GOO",
	1: "GAR",
	2: "GAZ",
}
View Source
var GlobalEnum_value = map[string]int32{
	"GOO": 0,
	"GAR": 1,
	"GAZ": 2,
}
View Source
var TestAllTypes_NestedEnum_name = map[int32]string{
	0: "FOO",
	1: "BAR",
	2: "BAZ",
}
View Source
var TestAllTypes_NestedEnum_value = map[string]int32{
	"FOO": 0,
	"BAR": 1,
	"BAZ": 2,
}

Functions

This section is empty.

Types

type GlobalEnum

type GlobalEnum int32
const (
	GlobalEnum_GOO GlobalEnum = 0
	GlobalEnum_GAR GlobalEnum = 1
	GlobalEnum_GAZ GlobalEnum = 2
)

func (GlobalEnum) EnumDescriptor

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

func (GlobalEnum) String

func (x GlobalEnum) String() string

type NestedTestAllTypes

type NestedTestAllTypes struct {
	Child                *NestedTestAllTypes `protobuf:"bytes,1,opt,name=child,proto3" json:"child,omitempty"`
	Payload              *TestAllTypes       `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*NestedTestAllTypes) Descriptor

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

func (*NestedTestAllTypes) GetChild

func (m *NestedTestAllTypes) GetChild() *NestedTestAllTypes

func (*NestedTestAllTypes) GetPayload

func (m *NestedTestAllTypes) GetPayload() *TestAllTypes

func (*NestedTestAllTypes) ProtoMessage

func (*NestedTestAllTypes) ProtoMessage()

func (*NestedTestAllTypes) Reset

func (m *NestedTestAllTypes) Reset()

func (*NestedTestAllTypes) String

func (m *NestedTestAllTypes) String() string

func (*NestedTestAllTypes) XXX_DiscardUnknown

func (m *NestedTestAllTypes) XXX_DiscardUnknown()

func (*NestedTestAllTypes) XXX_Marshal

func (m *NestedTestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NestedTestAllTypes) XXX_Merge

func (dst *NestedTestAllTypes) XXX_Merge(src proto.Message)

func (*NestedTestAllTypes) XXX_Size

func (m *NestedTestAllTypes) XXX_Size() int

func (*NestedTestAllTypes) XXX_Unmarshal

func (m *NestedTestAllTypes) XXX_Unmarshal(b []byte) error

type TestAllTypes

type TestAllTypes struct {
	SingleInt32         int32                 `protobuf:"varint,1,opt,name=single_int32,json=singleInt32,proto3" json:"single_int32,omitempty"`
	SingleInt64         int64                 `protobuf:"varint,2,opt,name=single_int64,json=singleInt64,proto3" json:"single_int64,omitempty"`
	SingleUint32        uint32                `protobuf:"varint,3,opt,name=single_uint32,json=singleUint32,proto3" json:"single_uint32,omitempty"`
	SingleUint64        uint64                `protobuf:"varint,4,opt,name=single_uint64,json=singleUint64,proto3" json:"single_uint64,omitempty"`
	SingleSint32        int32                 `protobuf:"zigzag32,5,opt,name=single_sint32,json=singleSint32,proto3" json:"single_sint32,omitempty"`
	SingleSint64        int64                 `protobuf:"zigzag64,6,opt,name=single_sint64,json=singleSint64,proto3" json:"single_sint64,omitempty"`
	SingleFixed32       uint32                `protobuf:"fixed32,7,opt,name=single_fixed32,json=singleFixed32,proto3" json:"single_fixed32,omitempty"`
	SingleFixed64       uint64                `protobuf:"fixed64,8,opt,name=single_fixed64,json=singleFixed64,proto3" json:"single_fixed64,omitempty"`
	SingleSfixed32      int32                 `protobuf:"fixed32,9,opt,name=single_sfixed32,json=singleSfixed32,proto3" json:"single_sfixed32,omitempty"`
	SingleSfixed64      int64                 `protobuf:"fixed64,10,opt,name=single_sfixed64,json=singleSfixed64,proto3" json:"single_sfixed64,omitempty"`
	SingleFloat         float32               `protobuf:"fixed32,11,opt,name=single_float,json=singleFloat,proto3" json:"single_float,omitempty"`
	SingleDouble        float64               `protobuf:"fixed64,12,opt,name=single_double,json=singleDouble,proto3" json:"single_double,omitempty"`
	SingleBool          bool                  `protobuf:"varint,13,opt,name=single_bool,json=singleBool,proto3" json:"single_bool,omitempty"`
	SingleString        string                `protobuf:"bytes,14,opt,name=single_string,json=singleString,proto3" json:"single_string,omitempty"`
	SingleBytes         []byte                `protobuf:"bytes,15,opt,name=single_bytes,json=singleBytes,proto3" json:"single_bytes,omitempty"`
	SingleAny           *any.Any              `protobuf:"bytes,100,opt,name=single_any,json=singleAny,proto3" json:"single_any,omitempty"`
	SingleDuration      *duration.Duration    `protobuf:"bytes,101,opt,name=single_duration,json=singleDuration,proto3" json:"single_duration,omitempty"`
	SingleTimestamp     *timestamp.Timestamp  `protobuf:"bytes,102,opt,name=single_timestamp,json=singleTimestamp,proto3" json:"single_timestamp,omitempty"`
	SingleStruct        *_struct.Struct       `protobuf:"bytes,103,opt,name=single_struct,json=singleStruct,proto3" json:"single_struct,omitempty"`
	SingleValue         *_struct.Value        `protobuf:"bytes,104,opt,name=single_value,json=singleValue,proto3" json:"single_value,omitempty"`
	SingleInt64Wrapper  *wrappers.Int64Value  `protobuf:"bytes,105,opt,name=single_int64_wrapper,json=singleInt64Wrapper,proto3" json:"single_int64_wrapper,omitempty"`
	SingleInt32Wrapper  *wrappers.Int32Value  `protobuf:"bytes,106,opt,name=single_int32_wrapper,json=singleInt32Wrapper,proto3" json:"single_int32_wrapper,omitempty"`
	SingleDoubleWrapper *wrappers.DoubleValue `protobuf:"bytes,107,opt,name=single_double_wrapper,json=singleDoubleWrapper,proto3" json:"single_double_wrapper,omitempty"`
	SingleFloatWrapper  *wrappers.FloatValue  `protobuf:"bytes,108,opt,name=single_float_wrapper,json=singleFloatWrapper,proto3" json:"single_float_wrapper,omitempty"`
	SingleUint64Wrapper *wrappers.UInt64Value `protobuf:"bytes,109,opt,name=single_uint64_wrapper,json=singleUint64Wrapper,proto3" json:"single_uint64_wrapper,omitempty"`
	SingleUint32Wrapper *wrappers.UInt32Value `protobuf:"bytes,110,opt,name=single_uint32_wrapper,json=singleUint32Wrapper,proto3" json:"single_uint32_wrapper,omitempty"`
	SingleStringWrapper *wrappers.StringValue `protobuf:"bytes,111,opt,name=single_string_wrapper,json=singleStringWrapper,proto3" json:"single_string_wrapper,omitempty"`
	SingleBoolWrapper   *wrappers.BoolValue   `protobuf:"bytes,112,opt,name=single_bool_wrapper,json=singleBoolWrapper,proto3" json:"single_bool_wrapper,omitempty"`
	SingleBytesWrapper  *wrappers.BytesValue  `protobuf:"bytes,113,opt,name=single_bytes_wrapper,json=singleBytesWrapper,proto3" json:"single_bytes_wrapper,omitempty"`
	// Types that are valid to be assigned to NestedType:
	//	*TestAllTypes_SingleNestedMessage
	//	*TestAllTypes_SingleNestedEnum
	NestedType            isTestAllTypes_NestedType     `protobuf_oneof:"nested_type"`
	RepeatedInt32         []int32                       `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32,proto3" json:"repeated_int32,omitempty"`
	RepeatedInt64         []int64                       `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64,proto3" json:"repeated_int64,omitempty"`
	RepeatedUint32        []uint32                      `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32,proto3" json:"repeated_uint32,omitempty"`
	RepeatedUint64        []uint64                      `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64,proto3" json:"repeated_uint64,omitempty"`
	RepeatedSint32        []int32                       `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32,proto3" json:"repeated_sint32,omitempty"`
	RepeatedSint64        []int64                       `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64,proto3" json:"repeated_sint64,omitempty"`
	RepeatedFixed32       []uint32                      `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32,proto3" json:"repeated_fixed32,omitempty"`
	RepeatedFixed64       []uint64                      `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64,proto3" json:"repeated_fixed64,omitempty"`
	RepeatedSfixed32      []int32                       `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32,proto3" json:"repeated_sfixed32,omitempty"`
	RepeatedSfixed64      []int64                       `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64,proto3" json:"repeated_sfixed64,omitempty"`
	RepeatedFloat         []float32                     `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat,proto3" json:"repeated_float,omitempty"`
	RepeatedDouble        []float64                     `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble,proto3" json:"repeated_double,omitempty"`
	RepeatedBool          []bool                        `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool,proto3" json:"repeated_bool,omitempty"`
	RepeatedString        []string                      `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"`
	RepeatedBytes         [][]byte                      `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"`
	RepeatedNestedMessage []*TestAllTypes_NestedMessage `` /* 127-byte string literal not displayed */
	RepeatedNestedEnum    []TestAllTypes_NestedEnum     `` /* 179-byte string literal not displayed */
	RepeatedStringPiece   []string                      `protobuf:"bytes,54,rep,name=repeated_string_piece,json=repeatedStringPiece,proto3" json:"repeated_string_piece,omitempty"`
	RepeatedCord          []string                      `protobuf:"bytes,55,rep,name=repeated_cord,json=repeatedCord,proto3" json:"repeated_cord,omitempty"`
	RepeatedLazyMessage   []*TestAllTypes_NestedMessage `protobuf:"bytes,57,rep,name=repeated_lazy_message,json=repeatedLazyMessage,proto3" json:"repeated_lazy_message,omitempty"`
	MapStringString       map[string]string             `` /* 197-byte string literal not displayed */
	MapInt64NestedType    map[int64]*NestedTestAllTypes `` /* 209-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}                      `json:"-"`
	XXX_unrecognized      []byte                        `json:"-"`
	XXX_sizecache         int32                         `json:"-"`
}

func (*TestAllTypes) Descriptor

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

func (*TestAllTypes) GetMapInt64NestedType

func (m *TestAllTypes) GetMapInt64NestedType() map[int64]*NestedTestAllTypes

func (*TestAllTypes) GetMapStringString

func (m *TestAllTypes) GetMapStringString() map[string]string

func (*TestAllTypes) GetNestedType

func (m *TestAllTypes) GetNestedType() isTestAllTypes_NestedType

func (*TestAllTypes) GetRepeatedBool

func (m *TestAllTypes) GetRepeatedBool() []bool

func (*TestAllTypes) GetRepeatedBytes

func (m *TestAllTypes) GetRepeatedBytes() [][]byte

func (*TestAllTypes) GetRepeatedCord

func (m *TestAllTypes) GetRepeatedCord() []string

func (*TestAllTypes) GetRepeatedDouble

func (m *TestAllTypes) GetRepeatedDouble() []float64

func (*TestAllTypes) GetRepeatedFixed32

func (m *TestAllTypes) GetRepeatedFixed32() []uint32

func (*TestAllTypes) GetRepeatedFixed64

func (m *TestAllTypes) GetRepeatedFixed64() []uint64

func (*TestAllTypes) GetRepeatedFloat

func (m *TestAllTypes) GetRepeatedFloat() []float32

func (*TestAllTypes) GetRepeatedInt32

func (m *TestAllTypes) GetRepeatedInt32() []int32

func (*TestAllTypes) GetRepeatedInt64

func (m *TestAllTypes) GetRepeatedInt64() []int64

func (*TestAllTypes) GetRepeatedLazyMessage

func (m *TestAllTypes) GetRepeatedLazyMessage() []*TestAllTypes_NestedMessage

func (*TestAllTypes) GetRepeatedNestedEnum

func (m *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum

func (*TestAllTypes) GetRepeatedNestedMessage

func (m *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage

func (*TestAllTypes) GetRepeatedSfixed32

func (m *TestAllTypes) GetRepeatedSfixed32() []int32

func (*TestAllTypes) GetRepeatedSfixed64

func (m *TestAllTypes) GetRepeatedSfixed64() []int64

func (*TestAllTypes) GetRepeatedSint32

func (m *TestAllTypes) GetRepeatedSint32() []int32

func (*TestAllTypes) GetRepeatedSint64

func (m *TestAllTypes) GetRepeatedSint64() []int64

func (*TestAllTypes) GetRepeatedString

func (m *TestAllTypes) GetRepeatedString() []string

func (*TestAllTypes) GetRepeatedStringPiece

func (m *TestAllTypes) GetRepeatedStringPiece() []string

func (*TestAllTypes) GetRepeatedUint32

func (m *TestAllTypes) GetRepeatedUint32() []uint32

func (*TestAllTypes) GetRepeatedUint64

func (m *TestAllTypes) GetRepeatedUint64() []uint64

func (*TestAllTypes) GetSingleAny

func (m *TestAllTypes) GetSingleAny() *any.Any

func (*TestAllTypes) GetSingleBool

func (m *TestAllTypes) GetSingleBool() bool

func (*TestAllTypes) GetSingleBoolWrapper

func (m *TestAllTypes) GetSingleBoolWrapper() *wrappers.BoolValue

func (*TestAllTypes) GetSingleBytes

func (m *TestAllTypes) GetSingleBytes() []byte

func (*TestAllTypes) GetSingleBytesWrapper

func (m *TestAllTypes) GetSingleBytesWrapper() *wrappers.BytesValue

func (*TestAllTypes) GetSingleDouble

func (m *TestAllTypes) GetSingleDouble() float64

func (*TestAllTypes) GetSingleDoubleWrapper

func (m *TestAllTypes) GetSingleDoubleWrapper() *wrappers.DoubleValue

func (*TestAllTypes) GetSingleDuration

func (m *TestAllTypes) GetSingleDuration() *duration.Duration

func (*TestAllTypes) GetSingleFixed32

func (m *TestAllTypes) GetSingleFixed32() uint32

func (*TestAllTypes) GetSingleFixed64

func (m *TestAllTypes) GetSingleFixed64() uint64

func (*TestAllTypes) GetSingleFloat

func (m *TestAllTypes) GetSingleFloat() float32

func (*TestAllTypes) GetSingleFloatWrapper

func (m *TestAllTypes) GetSingleFloatWrapper() *wrappers.FloatValue

func (*TestAllTypes) GetSingleInt32

func (m *TestAllTypes) GetSingleInt32() int32

func (*TestAllTypes) GetSingleInt32Wrapper

func (m *TestAllTypes) GetSingleInt32Wrapper() *wrappers.Int32Value

func (*TestAllTypes) GetSingleInt64

func (m *TestAllTypes) GetSingleInt64() int64

func (*TestAllTypes) GetSingleInt64Wrapper

func (m *TestAllTypes) GetSingleInt64Wrapper() *wrappers.Int64Value

func (*TestAllTypes) GetSingleNestedEnum

func (m *TestAllTypes) GetSingleNestedEnum() TestAllTypes_NestedEnum

func (*TestAllTypes) GetSingleNestedMessage

func (m *TestAllTypes) GetSingleNestedMessage() *TestAllTypes_NestedMessage

func (*TestAllTypes) GetSingleSfixed32

func (m *TestAllTypes) GetSingleSfixed32() int32

func (*TestAllTypes) GetSingleSfixed64

func (m *TestAllTypes) GetSingleSfixed64() int64

func (*TestAllTypes) GetSingleSint32

func (m *TestAllTypes) GetSingleSint32() int32

func (*TestAllTypes) GetSingleSint64

func (m *TestAllTypes) GetSingleSint64() int64

func (*TestAllTypes) GetSingleString

func (m *TestAllTypes) GetSingleString() string

func (*TestAllTypes) GetSingleStringWrapper

func (m *TestAllTypes) GetSingleStringWrapper() *wrappers.StringValue

func (*TestAllTypes) GetSingleStruct

func (m *TestAllTypes) GetSingleStruct() *_struct.Struct

func (*TestAllTypes) GetSingleTimestamp

func (m *TestAllTypes) GetSingleTimestamp() *timestamp.Timestamp

func (*TestAllTypes) GetSingleUint32

func (m *TestAllTypes) GetSingleUint32() uint32

func (*TestAllTypes) GetSingleUint32Wrapper

func (m *TestAllTypes) GetSingleUint32Wrapper() *wrappers.UInt32Value

func (*TestAllTypes) GetSingleUint64

func (m *TestAllTypes) GetSingleUint64() uint64

func (*TestAllTypes) GetSingleUint64Wrapper

func (m *TestAllTypes) GetSingleUint64Wrapper() *wrappers.UInt64Value

func (*TestAllTypes) GetSingleValue

func (m *TestAllTypes) GetSingleValue() *_struct.Value

func (*TestAllTypes) ProtoMessage

func (*TestAllTypes) ProtoMessage()

func (*TestAllTypes) Reset

func (m *TestAllTypes) Reset()

func (*TestAllTypes) String

func (m *TestAllTypes) String() string

func (*TestAllTypes) XXX_DiscardUnknown

func (m *TestAllTypes) XXX_DiscardUnknown()

func (*TestAllTypes) XXX_Marshal

func (m *TestAllTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestAllTypes) XXX_Merge

func (dst *TestAllTypes) XXX_Merge(src proto.Message)

func (*TestAllTypes) XXX_OneofFuncs added in v0.6.0

func (*TestAllTypes) 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.

func (*TestAllTypes) XXX_Size

func (m *TestAllTypes) XXX_Size() int

func (*TestAllTypes) XXX_Unmarshal

func (m *TestAllTypes) XXX_Unmarshal(b []byte) error

type TestAllTypes_NestedEnum

type TestAllTypes_NestedEnum int32
const (
	TestAllTypes_FOO TestAllTypes_NestedEnum = 0
	TestAllTypes_BAR TestAllTypes_NestedEnum = 1
	TestAllTypes_BAZ TestAllTypes_NestedEnum = 2
)

func (TestAllTypes_NestedEnum) EnumDescriptor

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

func (TestAllTypes_NestedEnum) String

func (x TestAllTypes_NestedEnum) String() string

type TestAllTypes_NestedMessage

type TestAllTypes_NestedMessage struct {
	Bb                   int32    `protobuf:"varint,1,opt,name=bb,proto3" json:"bb,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TestAllTypes_NestedMessage) Descriptor

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

func (*TestAllTypes_NestedMessage) GetBb

func (m *TestAllTypes_NestedMessage) GetBb() int32

func (*TestAllTypes_NestedMessage) ProtoMessage

func (*TestAllTypes_NestedMessage) ProtoMessage()

func (*TestAllTypes_NestedMessage) Reset

func (m *TestAllTypes_NestedMessage) Reset()

func (*TestAllTypes_NestedMessage) String

func (m *TestAllTypes_NestedMessage) String() string

func (*TestAllTypes_NestedMessage) XXX_DiscardUnknown

func (m *TestAllTypes_NestedMessage) XXX_DiscardUnknown()

func (*TestAllTypes_NestedMessage) XXX_Marshal

func (m *TestAllTypes_NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestAllTypes_NestedMessage) XXX_Merge

func (dst *TestAllTypes_NestedMessage) XXX_Merge(src proto.Message)

func (*TestAllTypes_NestedMessage) XXX_Size

func (m *TestAllTypes_NestedMessage) XXX_Size() int

func (*TestAllTypes_NestedMessage) XXX_Unmarshal

func (m *TestAllTypes_NestedMessage) XXX_Unmarshal(b []byte) error

type TestAllTypes_SingleNestedEnum

type TestAllTypes_SingleNestedEnum struct {
	SingleNestedEnum TestAllTypes_NestedEnum `` /* 136-byte string literal not displayed */
}

type TestAllTypes_SingleNestedMessage

type TestAllTypes_SingleNestedMessage struct {
	SingleNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=single_nested_message,json=singleNestedMessage,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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