package test
import "github.com/gogo/protobuf/test/issue322"
Index ¶
- Constants
- Variables
- type OneofTest
- func NewPopulatedOneofTest(r randyIssue322, easy bool) *OneofTest
- func (this *OneofTest) Compare(that interface{}) int
- func (*OneofTest) Descriptor() ([]byte, []int)
- func (this *OneofTest) Equal(that interface{}) bool
- func (m *OneofTest) GetI() int32
- func (m *OneofTest) GetUnion() isOneofTest_Union
- func (this *OneofTest) GoString() string
- func (m *OneofTest) Marshal() (dAtA []byte, err error)
- func (m *OneofTest) MarshalTo(dAtA []byte) (int, error)
- func (m *OneofTest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OneofTest) ProtoMessage()
- func (m *OneofTest) Reset()
- func (m *OneofTest) Size() (n int)
- func (m *OneofTest) String() string
- func (m *OneofTest) Unmarshal(dAtA []byte) error
- func (m *OneofTest) XXX_DiscardUnknown()
- func (m *OneofTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OneofTest) XXX_Merge(src proto.Message)
- func (*OneofTest) XXX_OneofWrappers() []interface{}
- func (m *OneofTest) XXX_Size() int
- func (m *OneofTest) XXX_Unmarshal(b []byte) error
- type OneofTest_I
- func NewPopulatedOneofTest_I(r randyIssue322, easy bool) *OneofTest_I
- func (this *OneofTest_I) Compare(that interface{}) int
- func (this *OneofTest_I) Equal(that interface{}) bool
- func (this *OneofTest_I) GoString() string
- func (m *OneofTest_I) MarshalTo(dAtA []byte) (int, error)
- func (m *OneofTest_I) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *OneofTest_I) Size() (n int)
Constants ¶
const Default_OneofTest_I int32 = 4
Variables ¶
var ( ErrInvalidLengthIssue322 = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIssue322 = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIssue322 = fmt.Errorf("proto: unexpected end of group") )
Types ¶
type OneofTest ¶
type OneofTest struct { // Types that are valid to be assigned to Union: // *OneofTest_I Union isOneofTest_Union `protobuf_oneof:"union"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedOneofTest ¶
func (*OneofTest) Compare ¶
func (*OneofTest) Descriptor ¶
func (*OneofTest) Equal ¶
func (*OneofTest) GetI ¶
func (*OneofTest) GetUnion ¶
func (m *OneofTest) GetUnion() isOneofTest_Union
func (*OneofTest) GoString ¶
func (*OneofTest) Marshal ¶
func (*OneofTest) MarshalTo ¶
func (*OneofTest) MarshalToSizedBuffer ¶
func (*OneofTest) ProtoMessage ¶
func (*OneofTest) ProtoMessage()
func (*OneofTest) Reset ¶
func (m *OneofTest) Reset()
func (*OneofTest) Size ¶
func (*OneofTest) String ¶
func (*OneofTest) Unmarshal ¶
func (*OneofTest) XXX_DiscardUnknown ¶
func (m *OneofTest) XXX_DiscardUnknown()
func (*OneofTest) XXX_Marshal ¶
func (*OneofTest) XXX_Merge ¶
func (*OneofTest) XXX_OneofWrappers ¶
func (*OneofTest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*OneofTest) XXX_Size ¶
func (*OneofTest) XXX_Unmarshal ¶
type OneofTest_I ¶
type OneofTest_I struct { I int32 `protobuf:"varint,1,opt,name=i,oneof,def=4" json:"i,omitempty"` }
func NewPopulatedOneofTest_I ¶
func NewPopulatedOneofTest_I(r randyIssue322, easy bool) *OneofTest_I
func (*OneofTest_I) Compare ¶
func (this *OneofTest_I) Compare(that interface{}) int
func (*OneofTest_I) Equal ¶
func (this *OneofTest_I) Equal(that interface{}) bool
func (*OneofTest_I) GoString ¶
func (this *OneofTest_I) GoString() string
func (*OneofTest_I) MarshalTo ¶
func (m *OneofTest_I) MarshalTo(dAtA []byte) (int, error)
func (*OneofTest_I) MarshalToSizedBuffer ¶
func (m *OneofTest_I) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OneofTest_I) Size ¶
func (m *OneofTest_I) Size() (n int)
Source Files ¶
- Version
- v1.3.1
- Published
- Oct 14, 2019
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 2 days ago –
Tools for package owners.