testprotos

package
v0.0.0-...-a0a3655 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Complex_InnerEnum_name = map[int32]string{
	0: "UNKNOWN",
	1: "ENUM_VAL_1",
}
View Source
var Complex_InnerEnum_value = map[string]int32{
	"UNKNOWN":    0,
	"ENUM_VAL_1": 1,
}
View Source
var Enum_name = map[int32]string{
	0: "ENUM_DEFAULT",
	1: "ENUM_VAL_1",
}
View Source
var Enum_value = map[string]int32{
	"ENUM_DEFAULT": 0,
	"ENUM_VAL_1":   1,
}

Functions

This section is empty.

Types

type AnotherMessage

type AnotherMessage struct {
	I                    int64    `protobuf:"varint,1,opt,name=i,proto3" json:"i,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AnotherMessage) Descriptor

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

func (*AnotherMessage) GetI

func (m *AnotherMessage) GetI() int64

func (*AnotherMessage) ProtoMessage

func (*AnotherMessage) ProtoMessage()

func (*AnotherMessage) Reset

func (m *AnotherMessage) Reset()

func (*AnotherMessage) String

func (m *AnotherMessage) String() string

func (*AnotherMessage) XXX_DiscardUnknown

func (m *AnotherMessage) XXX_DiscardUnknown()

func (*AnotherMessage) XXX_Marshal

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

func (*AnotherMessage) XXX_Merge

func (m *AnotherMessage) XXX_Merge(src proto.Message)

func (*AnotherMessage) XXX_Size

func (m *AnotherMessage) XXX_Size() int

func (*AnotherMessage) XXX_Unmarshal

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

type AnotherSimple

type AnotherSimple struct {
	J                    int64    `protobuf:"varint,1,opt,name=j,proto3" json:"j,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AnotherSimple) Descriptor

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

func (*AnotherSimple) GetJ

func (m *AnotherSimple) GetJ() int64

func (*AnotherSimple) ProtoMessage

func (*AnotherSimple) ProtoMessage()

func (*AnotherSimple) Reset

func (m *AnotherSimple) Reset()

func (*AnotherSimple) String

func (m *AnotherSimple) String() string

func (*AnotherSimple) XXX_DiscardUnknown

func (m *AnotherSimple) XXX_DiscardUnknown()

func (*AnotherSimple) XXX_Marshal

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

func (*AnotherSimple) XXX_Merge

func (m *AnotherSimple) XXX_Merge(src proto.Message)

func (*AnotherSimple) XXX_Size

func (m *AnotherSimple) XXX_Size() int

func (*AnotherSimple) XXX_Unmarshal

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

type Complex

type Complex struct {
	I64       int64                   `protobuf:"varint,1,opt,name=i64,proto3" json:"i64,omitempty"`
	I64Rep    []int64                 `protobuf:"varint,2,rep,packed,name=i64_rep,json=i64Rep,proto3" json:"i64_rep,omitempty"`
	EnumVal   Complex_InnerEnum       `protobuf:"varint,3,opt,name=enum_val,json=enumVal,proto3,enum=testprotos.Complex_InnerEnum" json:"enum_val,omitempty"`
	MsgVal    *Complex_InnerMessage   `protobuf:"bytes,4,opt,name=msg_val,json=msgVal,proto3" json:"msg_val,omitempty"`
	MsgValRep []*Complex_InnerMessage `protobuf:"bytes,5,rep,name=msg_val_rep,json=msgValRep,proto3" json:"msg_val_rep,omitempty"`
	// Types that are valid to be assigned to OneofVal:
	//	*Complex_Simple
	//	*Complex_AnotherSimple
	OneofVal             isComplex_OneofVal `protobuf_oneof:"oneof_val"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Complex) Descriptor

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

func (*Complex) GetAnotherSimple

func (m *Complex) GetAnotherSimple() *AnotherSimple

func (*Complex) GetEnumVal

func (m *Complex) GetEnumVal() Complex_InnerEnum

func (*Complex) GetI64

func (m *Complex) GetI64() int64

func (*Complex) GetI64Rep

func (m *Complex) GetI64Rep() []int64

func (*Complex) GetMsgVal

func (m *Complex) GetMsgVal() *Complex_InnerMessage

func (*Complex) GetMsgValRep

func (m *Complex) GetMsgValRep() []*Complex_InnerMessage

func (*Complex) GetOneofVal

func (m *Complex) GetOneofVal() isComplex_OneofVal

func (*Complex) GetSimple

func (m *Complex) GetSimple() *Simple

func (*Complex) ProtoMessage

func (*Complex) ProtoMessage()

func (*Complex) Reset

func (m *Complex) Reset()

func (*Complex) String

func (m *Complex) String() string

func (*Complex) XXX_DiscardUnknown

func (m *Complex) XXX_DiscardUnknown()

func (*Complex) XXX_Marshal

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

func (*Complex) XXX_Merge

func (m *Complex) XXX_Merge(src proto.Message)

func (*Complex) XXX_OneofWrappers

func (*Complex) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Complex) XXX_Size

func (m *Complex) XXX_Size() int

func (*Complex) XXX_Unmarshal

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

type Complex_AnotherSimple

type Complex_AnotherSimple struct {
	AnotherSimple *AnotherSimple `protobuf:"bytes,7,opt,name=another_simple,json=anotherSimple,proto3,oneof"`
}

type Complex_InnerEnum

type Complex_InnerEnum int32
const (
	Complex_UNKNOWN    Complex_InnerEnum = 0
	Complex_ENUM_VAL_1 Complex_InnerEnum = 1
)

func (Complex_InnerEnum) EnumDescriptor

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

func (Complex_InnerEnum) String

func (x Complex_InnerEnum) String() string

type Complex_InnerMessage

type Complex_InnerMessage struct {
	I                    int64    `protobuf:"varint,1,opt,name=i,proto3" json:"i,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Complex_InnerMessage) Descriptor

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

func (*Complex_InnerMessage) GetI

func (m *Complex_InnerMessage) GetI() int64

func (*Complex_InnerMessage) ProtoMessage

func (*Complex_InnerMessage) ProtoMessage()

func (*Complex_InnerMessage) Reset

func (m *Complex_InnerMessage) Reset()

func (*Complex_InnerMessage) String

func (m *Complex_InnerMessage) String() string

func (*Complex_InnerMessage) XXX_DiscardUnknown

func (m *Complex_InnerMessage) XXX_DiscardUnknown()

func (*Complex_InnerMessage) XXX_Marshal

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

func (*Complex_InnerMessage) XXX_Merge

func (m *Complex_InnerMessage) XXX_Merge(src proto.Message)

func (*Complex_InnerMessage) XXX_Size

func (m *Complex_InnerMessage) XXX_Size() int

func (*Complex_InnerMessage) XXX_Unmarshal

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

type Complex_Simple

type Complex_Simple struct {
	Simple *Simple `protobuf:"bytes,6,opt,name=simple,proto3,oneof"`
}

type Enum

type Enum int32
const (
	Enum_ENUM_DEFAULT Enum = 0
	Enum_ENUM_VAL_1   Enum = 1
)

func (Enum) EnumDescriptor

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

func (Enum) String

func (x Enum) String() string

type MapWithMessageType

type MapWithMessageType struct {
	M                    map[string]*Simple `` /* 143-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*MapWithMessageType) Descriptor

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

func (*MapWithMessageType) GetM

func (m *MapWithMessageType) GetM() map[string]*Simple

func (*MapWithMessageType) ProtoMessage

func (*MapWithMessageType) ProtoMessage()

func (*MapWithMessageType) Reset

func (m *MapWithMessageType) Reset()

func (*MapWithMessageType) String

func (m *MapWithMessageType) String() string

func (*MapWithMessageType) XXX_DiscardUnknown

func (m *MapWithMessageType) XXX_DiscardUnknown()

func (*MapWithMessageType) XXX_Marshal

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

func (*MapWithMessageType) XXX_Merge

func (m *MapWithMessageType) XXX_Merge(src proto.Message)

func (*MapWithMessageType) XXX_Size

func (m *MapWithMessageType) XXX_Size() int

func (*MapWithMessageType) XXX_Unmarshal

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

type MapWithPrimitiveType

type MapWithPrimitiveType struct {
	M                    map[string]int64 `` /* 144-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*MapWithPrimitiveType) Descriptor

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

func (*MapWithPrimitiveType) GetM

func (m *MapWithPrimitiveType) GetM() map[string]int64

func (*MapWithPrimitiveType) ProtoMessage

func (*MapWithPrimitiveType) ProtoMessage()

func (*MapWithPrimitiveType) Reset

func (m *MapWithPrimitiveType) Reset()

func (*MapWithPrimitiveType) String

func (m *MapWithPrimitiveType) String() string

func (*MapWithPrimitiveType) XXX_DiscardUnknown

func (m *MapWithPrimitiveType) XXX_DiscardUnknown()

func (*MapWithPrimitiveType) XXX_Marshal

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

func (*MapWithPrimitiveType) XXX_Merge

func (m *MapWithPrimitiveType) XXX_Merge(src proto.Message)

func (*MapWithPrimitiveType) XXX_Size

func (m *MapWithPrimitiveType) XXX_Size() int

func (*MapWithPrimitiveType) XXX_Unmarshal

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

type MessageFields

type MessageFields struct {
	Single               *Simple   `protobuf:"bytes,1,opt,name=single,proto3" json:"single,omitempty"`
	Rep                  []*Simple `protobuf:"bytes,2,rep,name=rep,proto3" json:"rep,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*MessageFields) Descriptor

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

func (*MessageFields) GetRep

func (m *MessageFields) GetRep() []*Simple

func (*MessageFields) GetSingle

func (m *MessageFields) GetSingle() *Simple

func (*MessageFields) ProtoMessage

func (*MessageFields) ProtoMessage()

func (*MessageFields) Reset

func (m *MessageFields) Reset()

func (*MessageFields) String

func (m *MessageFields) String() string

func (*MessageFields) XXX_DiscardUnknown

func (m *MessageFields) XXX_DiscardUnknown()

func (*MessageFields) XXX_Marshal

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

func (*MessageFields) XXX_Merge

func (m *MessageFields) XXX_Merge(src proto.Message)

func (*MessageFields) XXX_Size

func (m *MessageFields) XXX_Size() int

func (*MessageFields) XXX_Unmarshal

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

type Proto2Message

type Proto2Message struct {
	I                    *int64   `protobuf:"varint,1,opt,name=i" json:"i,omitempty"`
	RepI                 []int64  `protobuf:"varint,2,rep,name=rep_i,json=repI" json:"rep_i,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Proto2Message) Descriptor

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

func (*Proto2Message) GetI

func (m *Proto2Message) GetI() int64

func (*Proto2Message) GetRepI

func (m *Proto2Message) GetRepI() []int64

func (*Proto2Message) ProtoMessage

func (*Proto2Message) ProtoMessage()

func (*Proto2Message) Reset

func (m *Proto2Message) Reset()

func (*Proto2Message) String

func (m *Proto2Message) String() string

func (*Proto2Message) XXX_DiscardUnknown

func (m *Proto2Message) XXX_DiscardUnknown()

func (*Proto2Message) XXX_Marshal

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

func (*Proto2Message) XXX_Merge

func (m *Proto2Message) XXX_Merge(src proto.Message)

func (*Proto2Message) XXX_Size

func (m *Proto2Message) XXX_Size() int

func (*Proto2Message) XXX_Unmarshal

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

type RefsOtherProtos

type RefsOtherProtos struct {
	AnotherMsg           *AnotherMessage      `protobuf:"bytes,1,opt,name=another_msg,json=anotherMsg,proto3" json:"another_msg,omitempty"`
	Ts                   *timestamp.Timestamp `protobuf:"bytes,2,opt,name=ts,proto3" json:"ts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*RefsOtherProtos) Descriptor

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

func (*RefsOtherProtos) GetAnotherMsg

func (m *RefsOtherProtos) GetAnotherMsg() *AnotherMessage

func (*RefsOtherProtos) GetTs

func (m *RefsOtherProtos) GetTs() *timestamp.Timestamp

func (*RefsOtherProtos) ProtoMessage

func (*RefsOtherProtos) ProtoMessage()

func (*RefsOtherProtos) Reset

func (m *RefsOtherProtos) Reset()

func (*RefsOtherProtos) String

func (m *RefsOtherProtos) String() string

func (*RefsOtherProtos) XXX_DiscardUnknown

func (m *RefsOtherProtos) XXX_DiscardUnknown()

func (*RefsOtherProtos) XXX_Marshal

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

func (*RefsOtherProtos) XXX_Merge

func (m *RefsOtherProtos) XXX_Merge(src proto.Message)

func (*RefsOtherProtos) XXX_Size

func (m *RefsOtherProtos) XXX_Size() int

func (*RefsOtherProtos) XXX_Unmarshal

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

type Simple

type Simple struct {
	I                    int64    `protobuf:"varint,1,opt,name=i,proto3" json:"i,omitempty"`
	ManyI                []int64  `protobuf:"varint,2,rep,packed,name=many_i,json=manyI,proto3" json:"many_i,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Simple) Descriptor

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

func (*Simple) GetI

func (m *Simple) GetI() int64

func (*Simple) GetManyI

func (m *Simple) GetManyI() []int64

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) Reset

func (m *Simple) Reset()

func (*Simple) String

func (m *Simple) String() string

func (*Simple) XXX_DiscardUnknown

func (m *Simple) XXX_DiscardUnknown()

func (*Simple) XXX_Marshal

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

func (*Simple) XXX_Merge

func (m *Simple) XXX_Merge(src proto.Message)

func (*Simple) XXX_Size

func (m *Simple) XXX_Size() int

func (*Simple) XXX_Unmarshal

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

type SimpleFields

type SimpleFields struct {
	I64                  int64    `protobuf:"varint,1,opt,name=i64,proto3" json:"i64,omitempty"`
	I64Rep               []int64  `protobuf:"varint,2,rep,packed,name=i64_rep,json=i64Rep,proto3" json:"i64_rep,omitempty"`
	I32                  int32    `protobuf:"varint,3,opt,name=i32,proto3" json:"i32,omitempty"`
	Ui64                 uint64   `protobuf:"varint,4,opt,name=ui64,proto3" json:"ui64,omitempty"`
	Ui32                 uint32   `protobuf:"varint,5,opt,name=ui32,proto3" json:"ui32,omitempty"`
	B                    bool     `protobuf:"varint,6,opt,name=b,proto3" json:"b,omitempty"`
	F32                  float32  `protobuf:"fixed32,7,opt,name=f32,proto3" json:"f32,omitempty"`
	F64                  float64  `protobuf:"fixed64,8,opt,name=f64,proto3" json:"f64,omitempty"`
	S                    string   `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"`
	Bs                   []byte   `protobuf:"bytes,10,opt,name=bs,proto3" json:"bs,omitempty"`
	BsRep                [][]byte `protobuf:"bytes,11,rep,name=bs_rep,json=bsRep,proto3" json:"bs_rep,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SimpleFields) Descriptor

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

func (*SimpleFields) GetB

func (m *SimpleFields) GetB() bool

func (*SimpleFields) GetBs

func (m *SimpleFields) GetBs() []byte

func (*SimpleFields) GetBsRep

func (m *SimpleFields) GetBsRep() [][]byte

func (*SimpleFields) GetF32

func (m *SimpleFields) GetF32() float32

func (*SimpleFields) GetF64

func (m *SimpleFields) GetF64() float64

func (*SimpleFields) GetI32

func (m *SimpleFields) GetI32() int32

func (*SimpleFields) GetI64

func (m *SimpleFields) GetI64() int64

func (*SimpleFields) GetI64Rep

func (m *SimpleFields) GetI64Rep() []int64

func (*SimpleFields) GetS

func (m *SimpleFields) GetS() string

func (*SimpleFields) GetUi32

func (m *SimpleFields) GetUi32() uint32

func (*SimpleFields) GetUi64

func (m *SimpleFields) GetUi64() uint64

func (*SimpleFields) ProtoMessage

func (*SimpleFields) ProtoMessage()

func (*SimpleFields) Reset

func (m *SimpleFields) Reset()

func (*SimpleFields) String

func (m *SimpleFields) String() string

func (*SimpleFields) XXX_DiscardUnknown

func (m *SimpleFields) XXX_DiscardUnknown()

func (*SimpleFields) XXX_Marshal

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

func (*SimpleFields) XXX_Merge

func (m *SimpleFields) XXX_Merge(src proto.Message)

func (*SimpleFields) XXX_Size

func (m *SimpleFields) XXX_Size() int

func (*SimpleFields) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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