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 ¶
- Variables
- func ExampleDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- type A
- func (*A) Descriptor() ([]byte, []int)
- func (this *A) Equal(that interface{}) bool
- func (this *A) GetDescription() string
- func (this *A) GetId() github_com_gogo_protobuf_test.Uuid
- func (this *A) GetNumber() int64
- func (this *A) GoString() string
- func (m *A) Marshal() (dAtA []byte, err error)
- func (m *A) MarshalTo(dAtA []byte) (int, error)
- func (this *A) Proto() github_com_gogo_protobuf_proto.Message
- func (*A) ProtoMessage()
- func (m *A) Reset()
- func (m *A) Size() (n int)
- func (this *A) String() string
- func (this *A) TestProto() github_com_gogo_protobuf_proto.Message
- func (m *A) Unmarshal(dAtA []byte) error
- func (this *A) VerboseEqual(that interface{}) error
- type AFace
- type B
- func (this *B) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- func (*B) Descriptor() ([]byte, []int)
- func (this *B) Equal(that interface{}) bool
- func (this *B) GoString() string
- func (m *B) Marshal() (dAtA []byte, err error)
- func (m *B) MarshalTo(dAtA []byte) (int, error)
- func (*B) ProtoMessage()
- func (m *B) Reset()
- func (m *B) Size() (n int)
- func (this *B) String() string
- func (m *B) Unmarshal(dAtA []byte) error
- func (this *B) VerboseEqual(that interface{}) error
- type C
- func (*C) Descriptor() ([]byte, []int)
- func (this *C) Equal(that interface{}) bool
- func (m *C) GetMySize() int64
- func (this *C) GoString() string
- func (m *C) Marshal() (dAtA []byte, err error)
- func (m *C) MarshalTo(dAtA []byte) (int, error)
- func (*C) ProtoMessage()
- func (m *C) Reset()
- func (m *C) Size() (n int)
- func (this *C) String() string
- func (m *C) Unmarshal(dAtA []byte) error
- func (this *C) VerboseEqual(that interface{}) error
- type CastType
- func (*CastType) Descriptor() ([]byte, []int)
- func (this *CastType) Equal(that interface{}) bool
- func (m *CastType) GetInt32() int32
- func (this *CastType) GoString() string
- func (m *CastType) Marshal() (dAtA []byte, err error)
- func (m *CastType) MarshalTo(dAtA []byte) (int, error)
- func (*CastType) ProtoMessage()
- func (m *CastType) Reset()
- func (m *CastType) Size() (n int)
- func (this *CastType) String() string
- func (m *CastType) Unmarshal(dAtA []byte) error
- func (this *CastType) VerboseEqual(that interface{}) error
- type E
- func (*E) Descriptor() ([]byte, []int)
- func (this *E) Equal(that interface{}) bool
- func (*E) ExtensionRangeArray() []proto.ExtensionRange
- func (m *E) GetExtensions() *[]byte
- func (this *E) GoString() string
- func (m *E) Marshal() (dAtA []byte, err error)
- func (m *E) MarshalTo(dAtA []byte) (int, error)
- func (*E) ProtoMessage()
- func (m *E) Reset()
- func (m *E) Size() (n int)
- func (this *E) String() string
- func (m *E) Unmarshal(dAtA []byte) error
- func (this *E) VerboseEqual(that interface{}) error
- type R
- func (*R) Descriptor() ([]byte, []int)
- func (this *R) Equal(that interface{}) bool
- func (m *R) GetRecognized() uint32
- func (this *R) GoString() string
- func (m *R) Marshal() (dAtA []byte, err error)
- func (m *R) MarshalTo(dAtA []byte) (int, error)
- func (*R) ProtoMessage()
- func (m *R) Reset()
- func (m *R) Size() (n int)
- func (this *R) String() string
- func (m *R) Unmarshal(dAtA []byte) error
- func (this *R) VerboseEqual(that interface{}) error
- type U
- func (*U) Descriptor() ([]byte, []int)
- func (this *U) Equal(that interface{}) bool
- func (m *U) GetA() *A
- func (m *U) GetB() *B
- func (this *U) GetValue() interface{}
- func (this *U) GoString() string
- func (m *U) Marshal() (dAtA []byte, err error)
- func (m *U) MarshalTo(dAtA []byte) (int, error)
- func (*U) ProtoMessage()
- func (m *U) Reset()
- func (this *U) SetValue(value interface{}) bool
- func (m *U) Size() (n int)
- func (this *U) String() string
- func (m *U) Unmarshal(dAtA []byte) error
- func (this *U) VerboseEqual(that interface{}) error
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 ¶
func ExampleDescription ¶
func ExampleDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
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 NewPopulatedA ¶
func (*A) Descriptor ¶
func (*A) GetDescription ¶
func (*A) GetId ¶
func (this *A) GetId() github_com_gogo_protobuf_test.Uuid
func (*A) Proto ¶
func (this *A) Proto() github_com_gogo_protobuf_proto.Message
func (*A) ProtoMessage ¶
func (*A) ProtoMessage()
func (*A) TestProto ¶
func (this *A) TestProto() github_com_gogo_protobuf_proto.Message
func (*A) VerboseEqual ¶
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 (*B) Description ¶
func (this *B) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
func (*B) Descriptor ¶
func (*B) ProtoMessage ¶
func (*B) ProtoMessage()
func (*B) VerboseEqual ¶
type C ¶
type C struct { MySize *int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedC ¶
func (*C) Descriptor ¶
func (*C) ProtoMessage ¶
func (*C) ProtoMessage()
func (*C) VerboseEqual ¶
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 (*CastType) Descriptor ¶
func (*CastType) ProtoMessage ¶
func (*CastType) ProtoMessage()
func (*CastType) VerboseEqual ¶
type E ¶
type E struct { XXX_extensions []byte `protobuf:"bytes,0,opt" json:"-"` XXX_unrecognized []byte `json:"-"` }
func NewPopulatedE ¶
func (*E) Descriptor ¶
func (*E) ExtensionRangeArray ¶
func (*E) ExtensionRangeArray() []proto.ExtensionRange
func (*E) GetExtensions ¶
func (*E) ProtoMessage ¶
func (*E) ProtoMessage()
func (*E) VerboseEqual ¶
type R ¶
type R struct {
Recognized *uint32 `protobuf:"varint,1,opt,name=recognized" json:"recognized,omitempty"`
}
func NewPopulatedR ¶
func (*R) Descriptor ¶
func (*R) GetRecognized ¶
func (*R) ProtoMessage ¶
func (*R) ProtoMessage()
func (*R) VerboseEqual ¶
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 (*U) Descriptor ¶
func (*U) ProtoMessage ¶
func (*U) ProtoMessage()
func (*U) VerboseEqual ¶
Click to show internal directories.
Click to hide internal directories.