test

package
v0.0.0-...-39989e4 Latest Latest
Warning

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

Go to latest
Published: May 7, 2015 License: BSD-3-Clause Imports: 12 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleDescription

func ExampleDescription() (desc *google_protobuf.FileDescriptorSet)

Types

type A

type A struct {
	Description      string                             `protobuf:"bytes,1,opt" json:"Description"`
	Number           int64                              `protobuf:"varint,2,opt" json:"Number"`
	Id               github_com_gogo_protobuf_test.Uuid `protobuf:"bytes,3,opt,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) 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) (n int, err 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,embedded=A" json:"A"`
	G                []github_com_gogo_protobuf_test_custom.Uint128 `protobuf:"bytes,2,rep,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) Description

func (this *B) Description() (desc *google_protobuf.FileDescriptorSet)

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) (n int, err 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) 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) (n int, err 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 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) 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) (n int, err 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) 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) (n int, err 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" json:"A,omitempty"`
	B                *B     `protobuf:"bytes,2,opt" json:"B,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func NewPopulatedU

func NewPopulatedU(r randyExample, easy bool) *U

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) (n int, err 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