test

package
v0.0.0-...-120fae7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package test is a generated protocol buffer package.

It is generated from these files:

deepcopy.proto

It has these top-level messages:

BasicScalar
RepeatedScalar
RepeatedScalarPacked
ExternalStruct
RepeatedExternalStruct
NonNullableExternalStruct
RepeatedNonNullableExternalStruct
MapStruct
OneOf

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicScalar

type BasicScalar struct {
	Field1  float64 `protobuf:"fixed64,1,opt,name=Field1,json=field1,proto3" json:"Field1,omitempty"`
	Field2  float32 `protobuf:"fixed32,2,opt,name=Field2,json=field2,proto3" json:"Field2,omitempty"`
	Field3  int32   `protobuf:"varint,3,opt,name=Field3,json=field3,proto3" json:"Field3,omitempty"`
	Field4  int64   `protobuf:"varint,4,opt,name=Field4,json=field4,proto3" json:"Field4,omitempty"`
	Field5  uint32  `protobuf:"varint,5,opt,name=Field5,json=field5,proto3" json:"Field5,omitempty"`
	Field6  uint64  `protobuf:"varint,6,opt,name=Field6,json=field6,proto3" json:"Field6,omitempty"`
	Field7  int32   `protobuf:"zigzag32,7,opt,name=Field7,json=field7,proto3" json:"Field7,omitempty"`
	Field8  int64   `protobuf:"zigzag64,8,opt,name=Field8,json=field8,proto3" json:"Field8,omitempty"`
	Field9  uint32  `protobuf:"fixed32,9,opt,name=Field9,json=field9,proto3" json:"Field9,omitempty"`
	Field10 int32   `protobuf:"fixed32,10,opt,name=Field10,json=field10,proto3" json:"Field10,omitempty"`
	Field11 uint64  `protobuf:"fixed64,11,opt,name=Field11,json=field11,proto3" json:"Field11,omitempty"`
	Field12 int64   `protobuf:"fixed64,12,opt,name=Field12,json=field12,proto3" json:"Field12,omitempty"`
	Field13 bool    `protobuf:"varint,13,opt,name=Field13,json=field13,proto3" json:"Field13,omitempty"`
	Field14 string  `protobuf:"bytes,14,opt,name=Field14,json=field14,proto3" json:"Field14,omitempty"`
	Field15 []byte  `protobuf:"bytes,15,opt,name=Field15,json=field15,proto3" json:"Field15,omitempty"`
}

func NewPopulatedBasicScalar

func NewPopulatedBasicScalar(r randyDeepcopy, easy bool) *BasicScalar

func (*BasicScalar) Copy

func (m *BasicScalar) Copy() *BasicScalar

func (*BasicScalar) CopyFrom

func (m *BasicScalar) CopyFrom(src interface{})

func (*BasicScalar) Descriptor

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

func (*BasicScalar) Equal

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

func (*BasicScalar) ProtoMessage

func (*BasicScalar) ProtoMessage()

func (*BasicScalar) Reset

func (m *BasicScalar) Reset()

func (*BasicScalar) String

func (this *BasicScalar) String() string

type ExternalStruct

type ExternalStruct struct {
	Field1 *BasicScalar          `protobuf:"bytes,1,opt,name=Field1,json=field1" json:"Field1,omitempty"`
	Field2 *RepeatedScalar       `protobuf:"bytes,2,opt,name=Field2,json=field2" json:"Field2,omitempty"`
	Field3 *RepeatedScalarPacked `protobuf:"bytes,3,opt,name=Field3,json=field3" json:"Field3,omitempty"`
}

func NewPopulatedExternalStruct

func NewPopulatedExternalStruct(r randyDeepcopy, easy bool) *ExternalStruct

func (*ExternalStruct) Copy

func (m *ExternalStruct) Copy() *ExternalStruct

func (*ExternalStruct) CopyFrom

func (m *ExternalStruct) CopyFrom(src interface{})

func (*ExternalStruct) Descriptor

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

func (*ExternalStruct) Equal

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

func (*ExternalStruct) ProtoMessage

func (*ExternalStruct) ProtoMessage()

func (*ExternalStruct) Reset

func (m *ExternalStruct) Reset()

func (*ExternalStruct) String

func (this *ExternalStruct) String() string

type MapStruct

type MapStruct struct {
	NullableMap    map[string]*BasicScalar `` /* 168-byte string literal not displayed */
	NonnullableMap map[string]BasicScalar  `` /* 167-byte string literal not displayed */
}

func NewPopulatedMapStruct

func NewPopulatedMapStruct(r randyDeepcopy, easy bool) *MapStruct

func (*MapStruct) Copy

func (m *MapStruct) Copy() *MapStruct

func (*MapStruct) CopyFrom

func (m *MapStruct) CopyFrom(src interface{})

func (*MapStruct) Descriptor

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

func (*MapStruct) Equal

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

func (*MapStruct) ProtoMessage

func (*MapStruct) ProtoMessage()

func (*MapStruct) Reset

func (m *MapStruct) Reset()

func (*MapStruct) String

func (this *MapStruct) String() string

type NonNullableExternalStruct

type NonNullableExternalStruct struct {
	Field1 BasicScalar          `protobuf:"bytes,1,opt,name=Field1,json=field1" json:"Field1"`
	Field2 RepeatedScalar       `protobuf:"bytes,2,opt,name=Field2,json=field2" json:"Field2"`
	Field3 RepeatedScalarPacked `protobuf:"bytes,3,opt,name=Field3,json=field3" json:"Field3"`
}

func NewPopulatedNonNullableExternalStruct

func NewPopulatedNonNullableExternalStruct(r randyDeepcopy, easy bool) *NonNullableExternalStruct

func (*NonNullableExternalStruct) Copy

func (*NonNullableExternalStruct) CopyFrom

func (m *NonNullableExternalStruct) CopyFrom(src interface{})

func (*NonNullableExternalStruct) Descriptor

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

func (*NonNullableExternalStruct) Equal

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

func (*NonNullableExternalStruct) ProtoMessage

func (*NonNullableExternalStruct) ProtoMessage()

func (*NonNullableExternalStruct) Reset

func (m *NonNullableExternalStruct) Reset()

func (*NonNullableExternalStruct) String

func (this *NonNullableExternalStruct) String() string

type OneOf

type OneOf struct {
	// Types that are valid to be assigned to Fields:
	//	*OneOf_Field1
	//	*OneOf_Field2
	//	*OneOf_Field3
	//	*OneOf_Field4
	//	*OneOf_Field5
	//	*OneOf_Field6
	//	*OneOf_Field7
	//	*OneOf_Field8
	//	*OneOf_Field9
	Fields isOneOf_Fields `protobuf_oneof:"fields"`
	// Types that are valid to be assigned to FieldsTwo:
	//	*OneOf_Field10
	//	*OneOf_Field11
	FieldsTwo isOneOf_FieldsTwo `protobuf_oneof:"fieldsTwo"`
}

func NewPopulatedOneOf

func NewPopulatedOneOf(r randyDeepcopy, easy bool) *OneOf

func (*OneOf) Copy

func (m *OneOf) Copy() *OneOf

func (*OneOf) CopyFrom

func (m *OneOf) CopyFrom(src interface{})

func (*OneOf) Descriptor

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

func (*OneOf) Equal

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

func (*OneOf) GetField1

func (m *OneOf) GetField1() float64

func (*OneOf) GetField10

func (m *OneOf) GetField10() *NonNullableExternalStruct

func (*OneOf) GetField11

func (m *OneOf) GetField11() *RepeatedExternalStruct

func (*OneOf) GetField2

func (m *OneOf) GetField2() float32

func (*OneOf) GetField3

func (m *OneOf) GetField3() int32

func (*OneOf) GetField4

func (m *OneOf) GetField4() int64

func (*OneOf) GetField5

func (m *OneOf) GetField5() uint32

func (*OneOf) GetField6

func (m *OneOf) GetField6() string

func (*OneOf) GetField7

func (m *OneOf) GetField7() []byte

func (*OneOf) GetField8

func (m *OneOf) GetField8() *MapStruct

func (*OneOf) GetField9

func (m *OneOf) GetField9() *RepeatedNonNullableExternalStruct

func (*OneOf) GetFields

func (m *OneOf) GetFields() isOneOf_Fields

func (*OneOf) GetFieldsTwo

func (m *OneOf) GetFieldsTwo() isOneOf_FieldsTwo

func (*OneOf) ProtoMessage

func (*OneOf) ProtoMessage()

func (*OneOf) Reset

func (m *OneOf) Reset()

func (*OneOf) String

func (this *OneOf) String() string

func (*OneOf) XXX_OneofFuncs

func (*OneOf) 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 OneOf_Field1

type OneOf_Field1 struct {
	Field1 float64 `protobuf:"fixed64,1,opt,name=Field1,json=field1,proto3,oneof"`
}

func NewPopulatedOneOf_Field1

func NewPopulatedOneOf_Field1(r randyDeepcopy, easy bool) *OneOf_Field1

func (*OneOf_Field1) Equal

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

func (*OneOf_Field1) String

func (this *OneOf_Field1) String() string

type OneOf_Field10

type OneOf_Field10 struct {
	Field10 *NonNullableExternalStruct `protobuf:"bytes,10,opt,name=Field10,json=field10,oneof"`
}

func NewPopulatedOneOf_Field10

func NewPopulatedOneOf_Field10(r randyDeepcopy, easy bool) *OneOf_Field10

func (*OneOf_Field10) Equal

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

func (*OneOf_Field10) String

func (this *OneOf_Field10) String() string

type OneOf_Field11

type OneOf_Field11 struct {
	Field11 *RepeatedExternalStruct `protobuf:"bytes,11,opt,name=Field11,json=field11,oneof"`
}

func NewPopulatedOneOf_Field11

func NewPopulatedOneOf_Field11(r randyDeepcopy, easy bool) *OneOf_Field11

func (*OneOf_Field11) Equal

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

func (*OneOf_Field11) String

func (this *OneOf_Field11) String() string

type OneOf_Field2

type OneOf_Field2 struct {
	Field2 float32 `protobuf:"fixed32,2,opt,name=Field2,json=field2,proto3,oneof"`
}

func NewPopulatedOneOf_Field2

func NewPopulatedOneOf_Field2(r randyDeepcopy, easy bool) *OneOf_Field2

func (*OneOf_Field2) Equal

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

func (*OneOf_Field2) String

func (this *OneOf_Field2) String() string

type OneOf_Field3

type OneOf_Field3 struct {
	Field3 int32 `protobuf:"varint,3,opt,name=Field3,json=field3,proto3,oneof"`
}

func NewPopulatedOneOf_Field3

func NewPopulatedOneOf_Field3(r randyDeepcopy, easy bool) *OneOf_Field3

func (*OneOf_Field3) Equal

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

func (*OneOf_Field3) String

func (this *OneOf_Field3) String() string

type OneOf_Field4

type OneOf_Field4 struct {
	Field4 int64 `protobuf:"varint,4,opt,name=Field4,json=field4,proto3,oneof"`
}

func NewPopulatedOneOf_Field4

func NewPopulatedOneOf_Field4(r randyDeepcopy, easy bool) *OneOf_Field4

func (*OneOf_Field4) Equal

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

func (*OneOf_Field4) String

func (this *OneOf_Field4) String() string

type OneOf_Field5

type OneOf_Field5 struct {
	Field5 uint32 `protobuf:"varint,5,opt,name=Field5,json=field5,proto3,oneof"`
}

func NewPopulatedOneOf_Field5

func NewPopulatedOneOf_Field5(r randyDeepcopy, easy bool) *OneOf_Field5

func (*OneOf_Field5) Equal

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

func (*OneOf_Field5) String

func (this *OneOf_Field5) String() string

type OneOf_Field6

type OneOf_Field6 struct {
	Field6 string `protobuf:"bytes,6,opt,name=Field6,json=field6,proto3,oneof"`
}

func NewPopulatedOneOf_Field6

func NewPopulatedOneOf_Field6(r randyDeepcopy, easy bool) *OneOf_Field6

func (*OneOf_Field6) Equal

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

func (*OneOf_Field6) String

func (this *OneOf_Field6) String() string

type OneOf_Field7

type OneOf_Field7 struct {
	Field7 []byte `protobuf:"bytes,7,opt,name=Field7,json=field7,proto3,oneof"`
}

func NewPopulatedOneOf_Field7

func NewPopulatedOneOf_Field7(r randyDeepcopy, easy bool) *OneOf_Field7

func (*OneOf_Field7) Equal

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

func (*OneOf_Field7) String

func (this *OneOf_Field7) String() string

type OneOf_Field8

type OneOf_Field8 struct {
	Field8 *MapStruct `protobuf:"bytes,8,opt,name=Field8,json=field8,oneof"`
}

func NewPopulatedOneOf_Field8

func NewPopulatedOneOf_Field8(r randyDeepcopy, easy bool) *OneOf_Field8

func (*OneOf_Field8) Equal

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

func (*OneOf_Field8) String

func (this *OneOf_Field8) String() string

type OneOf_Field9

type OneOf_Field9 struct {
	Field9 *RepeatedNonNullableExternalStruct `protobuf:"bytes,9,opt,name=Field9,json=field9,oneof"`
}

func NewPopulatedOneOf_Field9

func NewPopulatedOneOf_Field9(r randyDeepcopy, easy bool) *OneOf_Field9

func (*OneOf_Field9) Equal

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

func (*OneOf_Field9) String

func (this *OneOf_Field9) String() string

type RepeatedExternalStruct

type RepeatedExternalStruct struct {
	Field1 []*BasicScalar          `protobuf:"bytes,1,rep,name=Field1,json=field1" json:"Field1,omitempty"`
	Field2 []*RepeatedScalar       `protobuf:"bytes,2,rep,name=Field2,json=field2" json:"Field2,omitempty"`
	Field3 []*RepeatedScalarPacked `protobuf:"bytes,3,rep,name=Field3,json=field3" json:"Field3,omitempty"`
}

func NewPopulatedRepeatedExternalStruct

func NewPopulatedRepeatedExternalStruct(r randyDeepcopy, easy bool) *RepeatedExternalStruct

func (*RepeatedExternalStruct) Copy

func (*RepeatedExternalStruct) CopyFrom

func (m *RepeatedExternalStruct) CopyFrom(src interface{})

func (*RepeatedExternalStruct) Descriptor

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

func (*RepeatedExternalStruct) Equal

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

func (*RepeatedExternalStruct) ProtoMessage

func (*RepeatedExternalStruct) ProtoMessage()

func (*RepeatedExternalStruct) Reset

func (m *RepeatedExternalStruct) Reset()

func (*RepeatedExternalStruct) String

func (this *RepeatedExternalStruct) String() string

type RepeatedNonNullableExternalStruct

type RepeatedNonNullableExternalStruct struct {
	Field1 []BasicScalar          `protobuf:"bytes,1,rep,name=Field1,json=field1" json:"Field1"`
	Field2 []RepeatedScalar       `protobuf:"bytes,2,rep,name=Field2,json=field2" json:"Field2"`
	Field3 []RepeatedScalarPacked `protobuf:"bytes,3,rep,name=Field3,json=field3" json:"Field3"`
}

func NewPopulatedRepeatedNonNullableExternalStruct

func NewPopulatedRepeatedNonNullableExternalStruct(r randyDeepcopy, easy bool) *RepeatedNonNullableExternalStruct

func (*RepeatedNonNullableExternalStruct) Copy

func (*RepeatedNonNullableExternalStruct) CopyFrom

func (m *RepeatedNonNullableExternalStruct) CopyFrom(src interface{})

func (*RepeatedNonNullableExternalStruct) Descriptor

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

func (*RepeatedNonNullableExternalStruct) Equal

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

func (*RepeatedNonNullableExternalStruct) ProtoMessage

func (*RepeatedNonNullableExternalStruct) ProtoMessage()

func (*RepeatedNonNullableExternalStruct) Reset

func (*RepeatedNonNullableExternalStruct) String

type RepeatedScalar

type RepeatedScalar struct {
	Field1  []float64 `protobuf:"fixed64,1,rep,packed,name=Field1,json=field1" json:"Field1,omitempty"`
	Field2  []float32 `protobuf:"fixed32,2,rep,packed,name=Field2,json=field2" json:"Field2,omitempty"`
	Field3  []int32   `protobuf:"varint,3,rep,packed,name=Field3,json=field3" json:"Field3,omitempty"`
	Field4  []int64   `protobuf:"varint,4,rep,packed,name=Field4,json=field4" json:"Field4,omitempty"`
	Field5  []uint32  `protobuf:"varint,5,rep,packed,name=Field5,json=field5" json:"Field5,omitempty"`
	Field6  []uint64  `protobuf:"varint,6,rep,packed,name=Field6,json=field6" json:"Field6,omitempty"`
	Field7  []int32   `protobuf:"zigzag32,7,rep,packed,name=Field7,json=field7" json:"Field7,omitempty"`
	Field8  []int64   `protobuf:"zigzag64,8,rep,packed,name=Field8,json=field8" json:"Field8,omitempty"`
	Field9  []uint32  `protobuf:"fixed32,9,rep,packed,name=Field9,json=field9" json:"Field9,omitempty"`
	Field10 []int32   `protobuf:"fixed32,10,rep,packed,name=Field10,json=field10" json:"Field10,omitempty"`
	Field11 []uint64  `protobuf:"fixed64,11,rep,packed,name=Field11,json=field11" json:"Field11,omitempty"`
	Field12 []int64   `protobuf:"fixed64,12,rep,packed,name=Field12,json=field12" json:"Field12,omitempty"`
	Field13 []bool    `protobuf:"varint,13,rep,packed,name=Field13,json=field13" json:"Field13,omitempty"`
	Field14 []string  `protobuf:"bytes,14,rep,name=Field14,json=field14" json:"Field14,omitempty"`
	Field15 [][]byte  `protobuf:"bytes,15,rep,name=Field15,json=field15" json:"Field15,omitempty"`
}

func NewPopulatedRepeatedScalar

func NewPopulatedRepeatedScalar(r randyDeepcopy, easy bool) *RepeatedScalar

func (*RepeatedScalar) Copy

func (m *RepeatedScalar) Copy() *RepeatedScalar

func (*RepeatedScalar) CopyFrom

func (m *RepeatedScalar) CopyFrom(src interface{})

func (*RepeatedScalar) Descriptor

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

func (*RepeatedScalar) Equal

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

func (*RepeatedScalar) ProtoMessage

func (*RepeatedScalar) ProtoMessage()

func (*RepeatedScalar) Reset

func (m *RepeatedScalar) Reset()

func (*RepeatedScalar) String

func (this *RepeatedScalar) String() string

type RepeatedScalarPacked

type RepeatedScalarPacked struct {
	Field1  []float64 `protobuf:"fixed64,1,rep,packed,name=Field1,json=field1" json:"Field1,omitempty"`
	Field2  []float32 `protobuf:"fixed32,2,rep,packed,name=Field2,json=field2" json:"Field2,omitempty"`
	Field3  []int32   `protobuf:"varint,3,rep,packed,name=Field3,json=field3" json:"Field3,omitempty"`
	Field4  []int64   `protobuf:"varint,4,rep,packed,name=Field4,json=field4" json:"Field4,omitempty"`
	Field5  []uint32  `protobuf:"varint,5,rep,packed,name=Field5,json=field5" json:"Field5,omitempty"`
	Field6  []uint64  `protobuf:"varint,6,rep,packed,name=Field6,json=field6" json:"Field6,omitempty"`
	Field7  []int32   `protobuf:"zigzag32,7,rep,packed,name=Field7,json=field7" json:"Field7,omitempty"`
	Field8  []int64   `protobuf:"zigzag64,8,rep,packed,name=Field8,json=field8" json:"Field8,omitempty"`
	Field9  []uint32  `protobuf:"fixed32,9,rep,packed,name=Field9,json=field9" json:"Field9,omitempty"`
	Field10 []int32   `protobuf:"fixed32,10,rep,packed,name=Field10,json=field10" json:"Field10,omitempty"`
	Field11 []uint64  `protobuf:"fixed64,11,rep,packed,name=Field11,json=field11" json:"Field11,omitempty"`
	Field12 []int64   `protobuf:"fixed64,12,rep,packed,name=Field12,json=field12" json:"Field12,omitempty"`
	Field13 []bool    `protobuf:"varint,13,rep,packed,name=Field13,json=field13" json:"Field13,omitempty"`
}

func NewPopulatedRepeatedScalarPacked

func NewPopulatedRepeatedScalarPacked(r randyDeepcopy, easy bool) *RepeatedScalarPacked

func (*RepeatedScalarPacked) Copy

func (*RepeatedScalarPacked) CopyFrom

func (m *RepeatedScalarPacked) CopyFrom(src interface{})

func (*RepeatedScalarPacked) Descriptor

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

func (*RepeatedScalarPacked) Equal

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

func (*RepeatedScalarPacked) ProtoMessage

func (*RepeatedScalarPacked) ProtoMessage()

func (*RepeatedScalarPacked) Reset

func (m *RepeatedScalarPacked) Reset()

func (*RepeatedScalarPacked) String

func (this *RepeatedScalarPacked) String() string

Jump to

Keyboard shortcuts

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