oneofenum

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExampleEnum_name = map[int32]string{
		0: "EXAMPLE_ENUM_UNSPECIFIED",
		1: "EXAMPLE_ENUM_FIRST",
	}
	ExampleEnum_value = map[string]int32{
		"EXAMPLE_ENUM_UNSPECIFIED": 0,
		"EXAMPLE_ENUM_FIRST":       1,
	}
)

Enum value maps for ExampleEnum.

View Source
var File_examples_internal_proto_oneofenum_oneof_enum_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ExampleEnum

type ExampleEnum int32
const (
	ExampleEnum_EXAMPLE_ENUM_UNSPECIFIED ExampleEnum = 0
	ExampleEnum_EXAMPLE_ENUM_FIRST       ExampleEnum = 1
)

func (ExampleEnum) Descriptor

func (ExampleEnum) Enum

func (x ExampleEnum) Enum() *ExampleEnum

func (ExampleEnum) EnumDescriptor deprecated

func (ExampleEnum) EnumDescriptor() ([]byte, []int)

Deprecated: Use ExampleEnum.Descriptor instead.

func (ExampleEnum) Number

func (x ExampleEnum) Number() protoreflect.EnumNumber

func (ExampleEnum) String

func (x ExampleEnum) String() string

func (ExampleEnum) Type

type OneofEnumMessage

type OneofEnumMessage struct {

	// Types that are assignable to One:
	//
	//	*OneofEnumMessage_ExampleEnum
	One isOneofEnumMessage_One `protobuf_oneof:"one"`
	// contains filtered or unexported fields
}

func (*OneofEnumMessage) Descriptor deprecated

func (*OneofEnumMessage) Descriptor() ([]byte, []int)

Deprecated: Use OneofEnumMessage.ProtoReflect.Descriptor instead.

func (*OneofEnumMessage) GetExampleEnum

func (x *OneofEnumMessage) GetExampleEnum() ExampleEnum

func (*OneofEnumMessage) GetOne

func (m *OneofEnumMessage) GetOne() isOneofEnumMessage_One

func (*OneofEnumMessage) ProtoMessage

func (*OneofEnumMessage) ProtoMessage()

func (*OneofEnumMessage) ProtoReflect

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

func (*OneofEnumMessage) Reset

func (x *OneofEnumMessage) Reset()

func (*OneofEnumMessage) String

func (x *OneofEnumMessage) String() string

type OneofEnumMessage_ExampleEnum

type OneofEnumMessage_ExampleEnum struct {
	ExampleEnum ExampleEnum `` /* 135-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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