Package casttype
import "github.com/gogo/protobuf/test/casttype/combos/both"
- Overview
- Index
- Variables
- func CasttypeDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- type Castaway
- func NewCastawayFromFace(that CastawayFace) *Castaway
- func NewPopulatedCastaway(r randyCasttype, easy bool) *Castaway
- func (this *Castaway) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- func (*Castaway) Descriptor() ([]byte, []int)
- func (this *Castaway) Equal(that interface{}) bool
- func (this *Castaway) GetInt32() int32
- func (this *Castaway) GetInt32Ptr() *int32
- func (this *Castaway) GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes
- func (this *Castaway) GetMyCustomMap() map[github_com_gogo_protobuf_test_casttype.MyStringType]github_com_gogo_protobuf_test_casttype.MyUint64Type
- func (this *Castaway) GetMyEmbeddedMap() map[github_com_gogo_protobuf_test_casttype.MyInt32Type]Wilson
- func (this *Castaway) GetMyFloat32() github_com_gogo_protobuf_test_casttype.MyFloat32Type
- func (this *Castaway) GetMyFloat32Ptr() *github_com_gogo_protobuf_test_casttype.MyFloat32Type
- func (this *Castaway) GetMyFloat64() github_com_gogo_protobuf_test_casttype.MyFloat64Type
- func (this *Castaway) GetMyFloat64Ptr() *github_com_gogo_protobuf_test_casttype.MyFloat64Type
- func (this *Castaway) GetMyMap() github_com_gogo_protobuf_test_casttype.MyMapType
- func (this *Castaway) GetMyNullableMap() map[github_com_gogo_protobuf_test_casttype.MyInt32Type]*Wilson
- func (this *Castaway) GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type
- func (this *Castaway) GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type
- func (this *Castaway) GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type
- func (this *Castaway) GetNormalBytes() []byte
- func (this *Castaway) GetString_() *github_com_gogo_protobuf_test_casttype.MyStringType
- func (this *Castaway) GoString() string
- func (m *Castaway) Marshal() (dAtA []byte, err error)
- func (m *Castaway) MarshalTo(dAtA []byte) (int, error)
- func (m *Castaway) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (this *Castaway) Proto() github_com_gogo_protobuf_proto.Message
- func (*Castaway) ProtoMessage()
- func (m *Castaway) Reset()
- func (m *Castaway) Size() (n int)
- func (this *Castaway) String() string
- func (this *Castaway) TestProto() github_com_gogo_protobuf_proto.Message
- func (m *Castaway) Unmarshal(dAtA []byte) error
- func (this *Castaway) VerboseEqual(that interface{}) error
- func (m *Castaway) XXX_DiscardUnknown()
- func (m *Castaway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Castaway) XXX_Merge(src proto.Message)
- func (m *Castaway) XXX_Size() int
- func (m *Castaway) XXX_Unmarshal(b []byte) error
- type CastawayFace
- type Wilson
- func NewPopulatedWilson(r randyCasttype, easy bool) *Wilson
- func NewWilsonFromFace(that WilsonFace) *Wilson
- func (this *Wilson) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
- func (*Wilson) Descriptor() ([]byte, []int)
- func (this *Wilson) Equal(that interface{}) bool
- func (this *Wilson) GetInt64() *int64
- func (this *Wilson) GoString() string
- func (m *Wilson) Marshal() (dAtA []byte, err error)
- func (m *Wilson) MarshalTo(dAtA []byte) (int, error)
- func (m *Wilson) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (this *Wilson) Proto() github_com_gogo_protobuf_proto.Message
- func (*Wilson) ProtoMessage()
- func (m *Wilson) Reset()
- func (m *Wilson) Size() (n int)
- func (this *Wilson) String() string
- func (this *Wilson) TestProto() github_com_gogo_protobuf_proto.Message
- func (m *Wilson) Unmarshal(dAtA []byte) error
- func (this *Wilson) VerboseEqual(that interface{}) error
- func (m *Wilson) XXX_DiscardUnknown()
- func (m *Wilson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Wilson) XXX_Merge(src proto.Message)
- func (m *Wilson) XXX_Size() int
- func (m *Wilson) XXX_Unmarshal(b []byte) error
- type WilsonFace
Package files
casttype.pb.go
Variables
var (
ErrInvalidLengthCasttype = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowCasttype = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupCasttype = fmt.Errorf("proto: unexpected end of group")
)
func CasttypeDescription() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
type Castaway struct {
Int32Ptr *int32 `protobuf:"varint,1,opt,name=Int32Ptr,casttype=int32" json:"Int32Ptr,omitempty"`
Int32 int32 `protobuf:"varint,2,opt,name=Int32,casttype=int32" json:"Int32"`
MyUint64Ptr *github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,3,opt,name=MyUint64Ptr,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64Ptr,omitempty"`
MyUint64 github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,4,opt,name=MyUint64,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64"`
MyFloat32Ptr *github_com_gogo_protobuf_test_casttype.MyFloat32Type `protobuf:"fixed32,5,opt,name=MyFloat32Ptr,casttype=github.com/gogo/protobuf/test/casttype.MyFloat32Type" json:"MyFloat32Ptr,omitempty"`
MyFloat32 github_com_gogo_protobuf_test_casttype.MyFloat32Type `protobuf:"fixed32,6,opt,name=MyFloat32,casttype=github.com/gogo/protobuf/test/casttype.MyFloat32Type" json:"MyFloat32"`
MyFloat64Ptr *github_com_gogo_protobuf_test_casttype.MyFloat64Type `protobuf:"fixed64,7,opt,name=MyFloat64Ptr,casttype=github.com/gogo/protobuf/test/casttype.MyFloat64Type" json:"MyFloat64Ptr,omitempty"`
MyFloat64 github_com_gogo_protobuf_test_casttype.MyFloat64Type `protobuf:"fixed64,8,opt,name=MyFloat64,casttype=github.com/gogo/protobuf/test/casttype.MyFloat64Type" json:"MyFloat64"`
MyBytes github_com_gogo_protobuf_test_casttype.Bytes `protobuf:"bytes,9,opt,name=MyBytes,casttype=github.com/gogo/protobuf/test/casttype.Bytes" json:"MyBytes,omitempty"`
NormalBytes []byte `protobuf:"bytes,10,opt,name=NormalBytes" json:"NormalBytes,omitempty"`
MyUint64S []github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"varint,11,rep,name=MyUint64s,casttype=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyUint64s,omitempty"`
MyMap github_com_gogo_protobuf_test_casttype.MyMapType `protobuf:"bytes,12,rep,name=MyMap,casttype=github.com/gogo/protobuf/test/casttype.MyMapType" json:"MyMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MyCustomMap map[github_com_gogo_protobuf_test_casttype.MyStringType]github_com_gogo_protobuf_test_casttype.MyUint64Type `protobuf:"bytes,13,rep,name=MyCustomMap,castkey=github.com/gogo/protobuf/test/casttype.MyStringType,castvalue=github.com/gogo/protobuf/test/casttype.MyUint64Type" json:"MyCustomMap,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MyNullableMap map[github_com_gogo_protobuf_test_casttype.MyInt32Type]*Wilson `protobuf:"bytes,14,rep,name=MyNullableMap,castkey=github.com/gogo/protobuf/test/casttype.MyInt32Type" json:"MyNullableMap,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MyEmbeddedMap map[github_com_gogo_protobuf_test_casttype.MyInt32Type]Wilson `protobuf:"bytes,15,rep,name=MyEmbeddedMap,castkey=github.com/gogo/protobuf/test/casttype.MyInt32Type" json:"MyEmbeddedMap" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
String_ *github_com_gogo_protobuf_test_casttype.MyStringType `protobuf:"bytes,16,opt,name=String,casttype=github.com/gogo/protobuf/test/casttype.MyStringType" json:"String,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewCastawayFromFace(that CastawayFace) *Castaway
func NewPopulatedCastaway(r randyCasttype, easy bool) *Castaway
func (this *Castaway) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
func (*Castaway) Descriptor() ([]byte, []int)
func (*Castaway) Equal
¶
func (this *Castaway) Equal(that interface{}) bool
func (this *Castaway) GetInt32() int32
func (this *Castaway) GetInt32Ptr() *int32
func (this *Castaway) GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes
func (this *Castaway) GetMyCustomMap() map[github_com_gogo_protobuf_test_casttype.MyStringType]github_com_gogo_protobuf_test_casttype.MyUint64Type
func (this *Castaway) GetMyEmbeddedMap() map[github_com_gogo_protobuf_test_casttype.MyInt32Type]Wilson
func (this *Castaway) GetMyFloat32() github_com_gogo_protobuf_test_casttype.MyFloat32Type
func (this *Castaway) GetMyFloat32Ptr() *github_com_gogo_protobuf_test_casttype.MyFloat32Type
func (this *Castaway) GetMyFloat64() github_com_gogo_protobuf_test_casttype.MyFloat64Type
func (this *Castaway) GetMyFloat64Ptr() *github_com_gogo_protobuf_test_casttype.MyFloat64Type
func (this *Castaway) GetMyMap() github_com_gogo_protobuf_test_casttype.MyMapType
func (this *Castaway) GetMyNullableMap() map[github_com_gogo_protobuf_test_casttype.MyInt32Type]*Wilson
func (this *Castaway) GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type
func (this *Castaway) GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type
func (this *Castaway) GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type
func (this *Castaway) GetNormalBytes() []byte
func (this *Castaway) GetString_() *github_com_gogo_protobuf_test_casttype.MyStringType
func (this *Castaway) GoString() string
func (*Castaway) Marshal
¶
func (m *Castaway) Marshal() (dAtA []byte, err error)
func (m *Castaway) MarshalTo(dAtA []byte) (int, error)
func (m *Castaway) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Castaway) Proto
¶
func (this *Castaway) Proto() github_com_gogo_protobuf_proto.Message
func (*Castaway) ProtoMessage()
func (*Castaway) Reset
¶
func (m *Castaway) Reset()
func (*Castaway) Size
¶
func (m *Castaway) Size() (n int)
func (*Castaway) String
¶
func (this *Castaway) String() string
func (this *Castaway) TestProto() github_com_gogo_protobuf_proto.Message
func (m *Castaway) Unmarshal(dAtA []byte) error
func (this *Castaway) VerboseEqual(that interface{}) error
func (m *Castaway) XXX_DiscardUnknown()
func (m *Castaway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Castaway) XXX_Merge(src proto.Message)
func (m *Castaway) XXX_Size() int
func (m *Castaway) XXX_Unmarshal(b []byte) error
type CastawayFace interface {
Proto() github_com_gogo_protobuf_proto.Message
GetInt32Ptr() *int32
GetInt32() int32
GetMyUint64Ptr() *github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyUint64() github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyFloat32Ptr() *github_com_gogo_protobuf_test_casttype.MyFloat32Type
GetMyFloat32() github_com_gogo_protobuf_test_casttype.MyFloat32Type
GetMyFloat64Ptr() *github_com_gogo_protobuf_test_casttype.MyFloat64Type
GetMyFloat64() github_com_gogo_protobuf_test_casttype.MyFloat64Type
GetMyBytes() github_com_gogo_protobuf_test_casttype.Bytes
GetNormalBytes() []byte
GetMyUint64S() []github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyMap() github_com_gogo_protobuf_test_casttype.MyMapType
GetMyCustomMap() map[github_com_gogo_protobuf_test_casttype.MyStringType]github_com_gogo_protobuf_test_casttype.MyUint64Type
GetMyNullableMap() map[github_com_gogo_protobuf_test_casttype.MyInt32Type]*Wilson
GetMyEmbeddedMap() map[github_com_gogo_protobuf_test_casttype.MyInt32Type]Wilson
GetString_() *github_com_gogo_protobuf_test_casttype.MyStringType
}
type Wilson struct {
Int64 *int64 `protobuf:"varint,1,opt,name=Int64" json:"Int64,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func NewPopulatedWilson(r randyCasttype, easy bool) *Wilson
func NewWilsonFromFace(that WilsonFace) *Wilson
func (this *Wilson) Description() (desc *github_com_gogo_protobuf_protoc_gen_gogo_descriptor.FileDescriptorSet)
func (*Wilson) Descriptor() ([]byte, []int)
func (*Wilson) Equal
¶
func (this *Wilson) Equal(that interface{}) bool
func (this *Wilson) GetInt64() *int64
func (this *Wilson) GoString() string
func (m *Wilson) Marshal() (dAtA []byte, err error)
func (m *Wilson) MarshalTo(dAtA []byte) (int, error)
func (m *Wilson) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Wilson) Proto
¶
func (this *Wilson) Proto() github_com_gogo_protobuf_proto.Message
func (*Wilson) ProtoMessage()
func (*Wilson) Reset
¶
func (m *Wilson) Reset()
func (*Wilson) Size
¶
func (m *Wilson) Size() (n int)
func (*Wilson) String
¶
func (this *Wilson) String() string
func (this *Wilson) TestProto() github_com_gogo_protobuf_proto.Message
func (m *Wilson) Unmarshal(dAtA []byte) error
func (this *Wilson) VerboseEqual(that interface{}) error
func (m *Wilson) XXX_DiscardUnknown()
func (m *Wilson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Wilson) XXX_Merge(src proto.Message)
func (m *Wilson) XXX_Size() int
func (m *Wilson) XXX_Unmarshal(b []byte) error
type WilsonFace interface {
Proto() github_com_gogo_protobuf_proto.Message
GetInt64() *int64
}