accessor

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use OneOf.ProtoReflect.Descriptor instead.

func (*OneOf) GetFieldA

func (x *OneOf) GetFieldA() int32

func (*OneOf) GetFieldB

func (x *OneOf) GetFieldB() int32

func (*OneOf) GetFieldC

func (x *OneOf) GetFieldC() string

func (*OneOf) GetGroup

func (m *OneOf) GetGroup() isOneOf_Group

func (*OneOf) ProtoMessage

func (*OneOf) ProtoMessage()

func (*OneOf) ProtoReflect

func (x *OneOf) ProtoReflect() protoreflect.Message

func (*OneOf) Reset

func (x *OneOf) Reset()

func (*OneOf) String

func (x *OneOf) String() string

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL