package proto
import "github.com/gogo/protobuf/test/oneofembed"
Index ¶
- type Bar
- func NewPopulatedBar(r randyOneofembed, easy bool) *Bar
- func (*Bar) Descriptor() ([]byte, []int)
- func (this *Bar) Equal(that interface{}) bool
- func (m *Bar) GetA() bool
- func (m *Bar) GetB() bool
- func (m *Bar) GetPick() isBar_Pick
- func (*Bar) ProtoMessage()
- func (m *Bar) Reset()
- func (m *Bar) String() string
- func (m *Bar) XXX_DiscardUnknown()
- func (m *Bar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Bar) XXX_Merge(src proto.Message)
- func (*Bar) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
- func (m *Bar) XXX_Size() int
- func (m *Bar) XXX_Unmarshal(b []byte) error
- type Bar_A
- func NewPopulatedBar_A(r randyOneofembed, easy bool) *Bar_A
- func (this *Bar_A) Equal(that interface{}) bool
- type Bar_B
- func NewPopulatedBar_B(r randyOneofembed, easy bool) *Bar_B
- func (this *Bar_B) Equal(that interface{}) bool
- type Foo
- func NewPopulatedFoo(r randyOneofembed, easy bool) *Foo
- func (*Foo) Descriptor() ([]byte, []int)
- func (this *Foo) Equal(that interface{}) bool
- func (*Foo) ProtoMessage()
- func (m *Foo) Reset()
- func (m *Foo) String() string
- func (m *Foo) XXX_DiscardUnknown()
- func (m *Foo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Foo) XXX_Merge(src proto.Message)
- func (m *Foo) XXX_Size() int
- func (m *Foo) XXX_Unmarshal(b []byte) error
Types ¶
type Bar ¶
type Bar struct { // Types that are valid to be assigned to Pick: // *Bar_A // *Bar_B Pick isBar_Pick `protobuf_oneof:"pick"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedBar ¶
func (*Bar) Descriptor ¶
func (*Bar) Equal ¶
func (*Bar) GetA ¶
func (*Bar) GetB ¶
func (*Bar) GetPick ¶
func (m *Bar) GetPick() isBar_Pick
func (*Bar) ProtoMessage ¶
func (*Bar) ProtoMessage()
func (*Bar) Reset ¶
func (m *Bar) Reset()
func (*Bar) String ¶
func (*Bar) XXX_DiscardUnknown ¶
func (m *Bar) XXX_DiscardUnknown()
func (*Bar) XXX_Marshal ¶
func (*Bar) XXX_Merge ¶
func (*Bar) XXX_OneofFuncs ¶
func (*Bar) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Bar) XXX_Size ¶
func (*Bar) XXX_Unmarshal ¶
type Bar_A ¶
type Bar_A struct { A bool `protobuf:"varint,11,opt,name=a,proto3,oneof"` }
func NewPopulatedBar_A ¶
func (*Bar_A) Equal ¶
type Bar_B ¶
type Bar_B struct { B bool `protobuf:"varint,12,opt,name=b,proto3,oneof"` }
func NewPopulatedBar_B ¶
func (*Bar_B) Equal ¶
type Foo ¶
type Foo struct { *Bar `protobuf:"bytes,1,opt,name=bar,embedded=bar" json:"bar,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewPopulatedFoo ¶
func (*Foo) Descriptor ¶
func (*Foo) Equal ¶
func (*Foo) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) Reset ¶
func (m *Foo) Reset()
func (*Foo) String ¶
func (*Foo) XXX_DiscardUnknown ¶
func (m *Foo) XXX_DiscardUnknown()
func (*Foo) XXX_Marshal ¶
func (*Foo) XXX_Merge ¶
func (*Foo) XXX_Size ¶
func (*Foo) XXX_Unmarshal ¶
Source Files ¶
- Version
- v1.1.1
- Published
- Jul 17, 2018
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 2 days ago –
Tools for package owners.