Documentation ¶
Index ¶
- Variables
- type OneOf
- func (*OneOf) Descriptor() ([]byte, []int)deprecated
- func (x *OneOf) GetFieldA() int32
- func (x *OneOf) GetFieldB() int32
- func (x *OneOf) GetFieldC() string
- func (m *OneOf) GetGroup() isOneOf_Group
- func (*OneOf) ProtoMessage()
- func (x *OneOf) ProtoReflect() protoreflect.Message
- func (x *OneOf) Reset()
- func (x *OneOf) String() string
- type OneOf_FieldA
- type OneOf_FieldB
- type OneOf_FieldC
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_dogmatiq_primo_internal_test_accessor_oneof_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OneOf ¶
type OneOf struct { // Types that are assignable to Group: // // *OneOf_FieldA // *OneOf_FieldB // *OneOf_FieldC Group isOneOf_Group `protobuf_oneof:"group"` // contains filtered or unexported fields }
func (*OneOf) Descriptor
deprecated
func (*OneOf) ProtoMessage ¶
func (*OneOf) ProtoMessage()
func (*OneOf) ProtoReflect ¶
func (x *OneOf) ProtoReflect() protoreflect.Message
type OneOf_FieldA ¶
type OneOf_FieldA struct {
FieldA int32 `protobuf:"varint,1,opt,name=field_a,json=fieldA,proto3,oneof"` // note: two fields of the same type
}
type OneOf_FieldB ¶
type OneOf_FieldB struct {
FieldB int32 `protobuf:"varint,2,opt,name=field_b,json=fieldB,proto3,oneof"`
}
type OneOf_FieldC ¶
type OneOf_FieldC struct {
FieldC string `protobuf:"bytes,3,opt,name=field_c,json=fieldC,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.