test

package
v0.0.0-...-9d0dce2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0, BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package test is a generated protocol buffer package.

It is generated from these files:

example.proto

It has these top-level messages:

A
B
C
U
E
R
CastType

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthExample = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowExample   = fmt.Errorf("proto: integer overflow")
)

Functions

Types

type A

type A struct {
	Description      string                             `protobuf:"bytes,1,opt,name=Description" json:"Description"`
	Number           int64                              `protobuf:"varint,2,opt,name=Number" json:"Number"`
	Id               github_com_gogo_protobuf_test.Uuid `protobuf:"bytes,3,opt,name=Id,customtype=github.com/gogo/protobuf/test.Uuid" json:"Id"`
	XXX_unrecognized []byte                             `json:"-"`
}

func NewAFromFace

func NewAFromFace(that AFace) *A

func NewPopulatedA

func NewPopulatedA(r randyExample, easy bool) *A

func (*A) Descriptor

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

func (*A) Equal

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

func (*A) GetDescription

func (this *A) GetDescription() string

func (*A) GetId

func (this *A) GetId() github_com_gogo_protobuf_test.Uuid

func (*A) GetNumber

func (this *A) GetNumber() int64

func (*A) GoString

func (this *A) GoString() string

func (*A) Marshal

func (m *A) Marshal() (dAtA []byte, err error)

func (*A) MarshalTo

func (m *A) MarshalTo(dAtA []byte) (int, error)

func (*A) Proto

func (*A) ProtoMessage

func (*A) ProtoMessage()

func (*A) Reset

func (m *A) Reset()

func (*A) Size

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

func (*A) String

func (this *A) String() string

func (*A) TestProto

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

func (*A) Unmarshal

func (m *A) Unmarshal(dAtA []byte) error

func (*A) VerboseEqual

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

type AFace

type AFace interface {
	Proto() github_com_gogo_protobuf_proto.Message
	GetDescription() string
	GetNumber() int64
	GetId() github_com_gogo_protobuf_test.Uuid
}

type B

type B struct {
	A                `protobuf:"bytes,1,opt,name=A,embedded=A" json:"A"`
	G                []github_com_gogo_protobuf_test_custom.Uint128 `protobuf:"bytes,2,rep,name=G,customtype=github.com/gogo/protobuf/test/custom.Uint128" json:"G"`
	XXX_unrecognized []byte                                         `json:"-"`
}

func NewPopulatedB

func NewPopulatedB(r randyExample, easy bool) *B

func (*B) Descriptor

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

func (*B) Equal

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

func (*B) GoString

func (this *B) GoString() string

func (*B) Marshal

func (m *B) Marshal() (dAtA []byte, err error)

func (*B) MarshalTo

func (m *B) MarshalTo(dAtA []byte) (int, error)

func (*B) ProtoMessage

func (*B) ProtoMessage()

func (*B) Reset

func (m *B) Reset()

func (*B) Size

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

func (*B) String

func (this *B) String() string

func (*B) Unmarshal

func (m *B) Unmarshal(dAtA []byte) error

func (*B) VerboseEqual

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

type C

type C struct {
	MySize           *int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func NewPopulatedC

func NewPopulatedC(r randyExample, easy bool) *C

func (*C) Descriptor

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

func (*C) Equal

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

func (*C) GetMySize

func (m *C) GetMySize() int64

func (*C) GoString

func (this *C) GoString() string

func (*C) Marshal

func (m *C) Marshal() (dAtA []byte, err error)

func (*C) MarshalTo

func (m *C) MarshalTo(dAtA []byte) (int, error)

func (*C) ProtoMessage

func (*C) ProtoMessage()

func (*C) Reset

func (m *C) Reset()

func (*C) Size

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

func (*C) String

func (this *C) String() string

func (*C) Unmarshal

func (m *C) Unmarshal(dAtA []byte) error

func (*C) VerboseEqual

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

type CastType

type CastType struct {
	Int32            *int32 `protobuf:"varint,1,opt,name=Int32,casttype=int32" json:"Int32,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func NewPopulatedCastType

func NewPopulatedCastType(r randyExample, easy bool) *CastType

func (*CastType) Descriptor

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

func (*CastType) Equal

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

func (*CastType) GetInt32

func (m *CastType) GetInt32() int32

func (*CastType) GoString

func (this *CastType) GoString() string

func (*CastType) Marshal

func (m *CastType) Marshal() (dAtA []byte, err error)

func (*CastType) MarshalTo

func (m *CastType) MarshalTo(dAtA []byte) (int, error)

func (*CastType) ProtoMessage

func (*CastType) ProtoMessage()

func (*CastType) Reset

func (m *CastType) Reset()

func (*CastType) Size

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

func (*CastType) String

func (this *CastType) String() string

func (*CastType) Unmarshal

func (m *CastType) Unmarshal(dAtA []byte) error

func (*CastType) VerboseEqual

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

type E

type E struct {
	XXX_extensions   []byte `protobuf:"bytes,0,opt" json:"-"`
	XXX_unrecognized []byte `json:"-"`
}

func NewPopulatedE

func NewPopulatedE(r randyExample, easy bool) *E

func (*E) Descriptor

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

func (*E) Equal

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

func (*E) ExtensionRangeArray

func (*E) ExtensionRangeArray() []proto.ExtensionRange

func (*E) GetExtensions

func (m *E) GetExtensions() *[]byte

func (*E) GoString

func (this *E) GoString() string

func (*E) Marshal

func (m *E) Marshal() (dAtA []byte, err error)

func (*E) MarshalTo

func (m *E) MarshalTo(dAtA []byte) (int, error)

func (*E) ProtoMessage

func (*E) ProtoMessage()

func (*E) Reset

func (m *E) Reset()

func (*E) Size

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

func (*E) String

func (this *E) String() string

func (*E) Unmarshal

func (m *E) Unmarshal(dAtA []byte) error

func (*E) VerboseEqual

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

type R

type R struct {
	Recognized *uint32 `protobuf:"varint,1,opt,name=recognized" json:"recognized,omitempty"`
}

func NewPopulatedR

func NewPopulatedR(r randyExample, easy bool) *R

func (*R) Descriptor

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

func (*R) Equal

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

func (*R) GetRecognized

func (m *R) GetRecognized() uint32

func (*R) GoString

func (this *R) GoString() string

func (*R) Marshal

func (m *R) Marshal() (dAtA []byte, err error)

func (*R) MarshalTo

func (m *R) MarshalTo(dAtA []byte) (int, error)

func (*R) ProtoMessage

func (*R) ProtoMessage()

func (*R) Reset

func (m *R) Reset()

func (*R) Size

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

func (*R) String

func (this *R) String() string

func (*R) Unmarshal

func (m *R) Unmarshal(dAtA []byte) error

func (*R) VerboseEqual

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

type U

type U struct {
	A                *A     `protobuf:"bytes,1,opt,name=A" json:"A,omitempty"`
	B                *B     `protobuf:"bytes,2,opt,name=B" json:"B,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func NewPopulatedU

func NewPopulatedU(r randyExample, easy bool) *U

func (*U) Descriptor

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

func (*U) Equal

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

func (*U) GetA

func (m *U) GetA() *A

func (*U) GetB

func (m *U) GetB() *B

func (*U) GetValue

func (this *U) GetValue() interface{}

func (*U) GoString

func (this *U) GoString() string

func (*U) Marshal

func (m *U) Marshal() (dAtA []byte, err error)

func (*U) MarshalTo

func (m *U) MarshalTo(dAtA []byte) (int, error)

func (*U) ProtoMessage

func (*U) ProtoMessage()

func (*U) Reset

func (m *U) Reset()

func (*U) SetValue

func (this *U) SetValue(value interface{}) bool

func (*U) Size

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

func (*U) String

func (this *U) String() string

func (*U) Unmarshal

func (m *U) Unmarshal(dAtA []byte) error

func (*U) VerboseEqual

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

Jump to

Keyboard shortcuts

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