enumeration

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExampleType_name = map[int32]string{
		0: "EXAMPLE_TYPE_UNSPECIFIED",
		1: "EXAMPLE_TYPE_ONE",
		2: "EXAMPLE_TYPE_TOW",
	}
	ExampleType_value = map[string]int32{
		"EXAMPLE_TYPE_UNSPECIFIED": 0,
		"EXAMPLE_TYPE_ONE":         1,
		"EXAMPLE_TYPE_TOW":         2,
	}
)

Enum value maps for ExampleType.

View Source
var File_enumeration_example_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ExampleType

type ExampleType int32

ExampleType 示例类型

const (
	// 未指定
	ExampleType_EXAMPLE_TYPE_UNSPECIFIED ExampleType = 0
	// 类型1
	ExampleType_EXAMPLE_TYPE_ONE ExampleType = 1
	// 类型2
	ExampleType_EXAMPLE_TYPE_TOW ExampleType = 2
)

func (ExampleType) Descriptor

func (ExampleType) Enum

func (x ExampleType) Enum() *ExampleType

func (ExampleType) EnumDescriptor deprecated

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

Deprecated: Use ExampleType.Descriptor instead.

func (ExampleType) Number

func (x ExampleType) Number() protoreflect.EnumNumber

func (ExampleType) String

func (x ExampleType) String() string

func (ExampleType) Type

Jump to

Keyboard shortcuts

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