Package test
- Variables
- func ExampleDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- type A
- func NewAFromFace(that AFace) *A
- func NewPopulatedA(r randyExample, easy bool) *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 (m *A) MarshalToSizedBuffer(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
- func (m *A) XXX_DiscardUnknown()
- func (m *A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *A) XXX_Merge(src proto.Message)
- func (m *A) XXX_Size() int
- func (m *A) XXX_Unmarshal(b []byte) error
- type AFace
- type B
- func NewPopulatedB(r randyExample, easy bool) *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 (m *B) MarshalToSizedBuffer(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
- func (m *B) XXX_DiscardUnknown()
- func (m *B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *B) XXX_Merge(src proto.Message)
- func (m *B) XXX_Size() int
- func (m *B) XXX_Unmarshal(b []byte) error
- type C
- func NewPopulatedC(r randyExample, easy bool) *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 (m *C) MarshalToSizedBuffer(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
- func (m *C) XXX_DiscardUnknown()
- func (m *C) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *C) XXX_Merge(src proto.Message)
- func (m *C) XXX_Size() int
- func (m *C) XXX_Unmarshal(b []byte) error
- type CastType
- func NewPopulatedCastType(r randyExample, easy bool) *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 (m *CastType) MarshalToSizedBuffer(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
- func (m *CastType) XXX_DiscardUnknown()
- func (m *CastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CastType) XXX_Merge(src proto.Message)
- func (m *CastType) XXX_Size() int
- func (m *CastType) XXX_Unmarshal(b []byte) error
- type E
- func NewPopulatedE(r randyExample, easy bool) *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 (m *E) MarshalToSizedBuffer(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
- func (m *E) XXX_DiscardUnknown()
- func (m *E) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *E) XXX_Merge(src proto.Message)
- func (m *E) XXX_Size() int
- func (m *E) XXX_Unmarshal(b []byte) error
- type R
- func NewPopulatedR(r randyExample, easy bool) *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 (m *R) MarshalToSizedBuffer(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
- func (m *R) XXX_DiscardUnknown()
- func (m *R) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *R) XXX_Merge(src proto.Message)
- func (m *R) XXX_Size() int
- func (m *R) XXX_Unmarshal(b []byte) error
- type U
- func NewPopulatedU(r randyExample, easy bool) *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 (m *U) MarshalToSizedBuffer(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
- func (m *U) XXX_DiscardUnknown()
- func (m *U) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *U) XXX_Merge(src proto.Message)
- func (m *U) XXX_Size() int
- func (m *U) XXX_Unmarshal(b []byte) error
Package files
example.pb.go
Variables
var (
ErrInvalidLengthExample = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowExample = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupExample = fmt.Errorf("proto: unexpected end of group")
)
func ExampleDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
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_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewAFromFace(that AFace) *A
func NewPopulatedA(r randyExample, easy bool) *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 (m *A) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (this *A) Proto() github_com_gogo_protobuf_proto.Message
func (*A) ProtoMessage()
func (m *A) Reset()
func (*A) Size
¶
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
func (m *A) XXX_DiscardUnknown()
func (m *A) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *A) XXX_Merge(src proto.Message)
func (m *A) XXX_Size() int
func (m *A) XXX_Unmarshal(b []byte) error
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_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewPopulatedB(r randyExample, easy bool) *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 (m *B) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*B) ProtoMessage()
func (m *B) Reset()
func (*B) Size
¶
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
func (m *B) XXX_DiscardUnknown()
func (m *B) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *B) XXX_Merge(src proto.Message)
func (m *B) XXX_Size() int
func (m *B) XXX_Unmarshal(b []byte) error
type C
¶
type C struct {
MySize *int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewPopulatedC(r randyExample, easy bool) *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 (m *C) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*C) ProtoMessage()
func (m *C) Reset()
func (*C) Size
¶
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
func (m *C) XXX_DiscardUnknown()
func (m *C) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *C) XXX_Merge(src proto.Message)
func (m *C) XXX_Size() int
func (m *C) XXX_Unmarshal(b []byte) error
type CastType struct {
Int32 *int32 `protobuf:"varint,1,opt,name=Int32,casttype=int32" json:"Int32,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewPopulatedCastType(r randyExample, easy bool) *CastType
func (*CastType) Descriptor() ([]byte, []int)
func (*CastType) Equal
¶
func (this *CastType) Equal(that interface{}) bool
func (m *CastType) GetInt32() int32
func (this *CastType) GoString() string
func (*CastType) Marshal
¶
func (m *CastType) Marshal() (dAtA []byte, err error)
func (m *CastType) MarshalTo(dAtA []byte) (int, error)
func (m *CastType) MarshalToSizedBuffer(dAtA []byte) (int, error)
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 (m *CastType) Unmarshal(dAtA []byte) error
func (this *CastType) VerboseEqual(that interface{}) error
func (m *CastType) XXX_DiscardUnknown()
func (m *CastType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *CastType) XXX_Merge(src proto.Message)
func (m *CastType) XXX_Size() int
func (m *CastType) XXX_Unmarshal(b []byte) error
type E
¶
type E struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_extensions []byte `protobuf:"bytes,0,opt" json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewPopulatedE(r randyExample, easy bool) *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 (m *E) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*E) ProtoMessage()
func (m *E) Reset()
func (*E) Size
¶
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
func (m *E) XXX_DiscardUnknown()
func (m *E) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *E) XXX_Merge(src proto.Message)
func (m *E) XXX_Size() int
func (m *E) XXX_Unmarshal(b []byte) error
type R
¶
type R struct {
Recognized *uint32 `protobuf:"varint,1,opt,name=recognized" json:"recognized,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewPopulatedR(r randyExample, easy bool) *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 (m *R) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*R) ProtoMessage()
func (m *R) Reset()
func (*R) Size
¶
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
func (m *R) XXX_DiscardUnknown()
func (m *R) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *R) XXX_Merge(src proto.Message)
func (m *R) XXX_Size() int
func (m *R) XXX_Unmarshal(b []byte) 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_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewPopulatedU(r randyExample, easy bool) *U
func (*U) Descriptor() ([]byte, []int)
func (this *U) Equal(that interface{}) bool
func (*U) GetA
¶
func (m *U) GetA() *A
func (*U) GetB
¶
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 (m *U) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*U) ProtoMessage()
func (m *U) Reset()
func (this *U) SetValue(value interface{}) bool
func (*U) Size
¶
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
func (m *U) XXX_DiscardUnknown()
func (m *U) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *U) XXX_Merge(src proto.Message)
func (m *U) XXX_Size() int
func (m *U) XXX_Unmarshal(b []byte) error