enums

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Nested_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_UP",
		2: "STATUS_DOWN",
		3: "STATUS_LEFT",
		4: "STATUS_RIGHT",
	}
	Nested_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_UP":          1,
		"STATUS_DOWN":        2,
		"STATUS_LEFT":        3,
		"STATUS_RIGHT":       4,
	}
)

Enum value maps for Nested_Status.

View Source
var (
	Nested_Nested1_Type_name = map[int32]string{
		0: "TYPE_DISABLE",
		1: "TYPE_Enable",
	}
	Nested_Nested1_Type_value = map[string]int32{
		"TYPE_DISABLE": 0,
		"TYPE_Enable":  1,
	}
)

Enum value maps for Nested_Nested1_Type.

View Source
var (
	NonNestedStatus_name = map[int32]string{
		0: "NON_NESTED_STATUS_UNSPECIFIED",
		1: "NON_NESTED_STATUS_UP",
		2: "NON_NESTED_STATUS_DOWN",
		3: "NON_NESTED_STATUS_LEFT",
		4: "NON_NESTED_STATUS_RIGHT",
	}
	NonNestedStatus_value = map[string]int32{
		"NON_NESTED_STATUS_UNSPECIFIED": 0,
		"NON_NESTED_STATUS_UP":          1,
		"NON_NESTED_STATUS_DOWN":        2,
		"NON_NESTED_STATUS_LEFT":        3,
		"NON_NESTED_STATUS_RIGHT":       4,
	}
)

Enum value maps for NonNestedStatus.

View Source
var File_nested_proto protoreflect.FileDescriptor
View Source
var File_non_nested_proto protoreflect.FileDescriptor

Functions

func EnumComment

func EnumComment() []map[int32]string

func GetNested_Nested1_TypeDesc added in v0.1.2

func GetNested_Nested1_TypeDesc(t Nested_Nested1_Type) string

GetNested_Nested1_TypeDesc get mapping description [0:禁用,1:启用]

func GetNested_StatusDesc added in v0.1.2

func GetNested_StatusDesc(t Nested_Status) string

GetNested_StatusDesc get mapping description

Status 状态值, [0:未定义,1:nested1,2:nested2,3:nested3,4:nested4]

func GetNonNestedStatusDesc

func GetNonNestedStatusDesc(t NonNestedStatus) string

GetNonNestedStatusDesc get mapping description

Foo 状态值, [0:未定义,1:打开,2:关闭,3:左,4:右]

Types

type Nested

type Nested struct {
	// contains filtered or unexported fields
}

func (*Nested) Descriptor deprecated

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

Deprecated: Use Nested.ProtoReflect.Descriptor instead.

func (*Nested) ProtoMessage

func (*Nested) ProtoMessage()

func (*Nested) ProtoReflect

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

func (*Nested) Reset

func (x *Nested) Reset()

func (*Nested) String

func (x *Nested) String() string

type Nested_Nested1

type Nested_Nested1 struct {
	// contains filtered or unexported fields
}

func (*Nested_Nested1) Descriptor deprecated

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

Deprecated: Use Nested_Nested1.ProtoReflect.Descriptor instead.

func (*Nested_Nested1) ProtoMessage

func (*Nested_Nested1) ProtoMessage()

func (*Nested_Nested1) ProtoReflect

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

func (*Nested_Nested1) Reset

func (x *Nested_Nested1) Reset()

func (*Nested_Nested1) String

func (x *Nested_Nested1) String() string

type Nested_Nested1_Type

type Nested_Nested1_Type int32
const (
	// 未定义
	Nested_Nested1_TYPE_DISABLE Nested_Nested1_Type = 0
	// 打开
	Nested_Nested1_TYPE_Enable Nested_Nested1_Type = 1
)

func (Nested_Nested1_Type) Descriptor

func (Nested_Nested1_Type) Enum

func (Nested_Nested1_Type) EnumDescriptor deprecated

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

Deprecated: Use Nested_Nested1_Type.Descriptor instead.

func (Nested_Nested1_Type) Number

func (Nested_Nested1_Type) String

func (x Nested_Nested1_Type) String() string

func (Nested_Nested1_Type) Type

type Nested_Status

type Nested_Status int32

Status 状态值

const (
	// 未定义
	Nested_STATUS_UNSPECIFIED Nested_Status = 0
	// 打开
	Nested_STATUS_UP Nested_Status = 1
	// 关闭
	Nested_STATUS_DOWN Nested_Status = 2
	// 左
	Nested_STATUS_LEFT Nested_Status = 3
	// 右
	Nested_STATUS_RIGHT Nested_Status = 4
)

func (Nested_Status) Descriptor

func (Nested_Status) Enum

func (x Nested_Status) Enum() *Nested_Status

func (Nested_Status) EnumDescriptor deprecated

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

Deprecated: Use Nested_Status.Descriptor instead.

func (Nested_Status) Number

func (Nested_Status) String

func (x Nested_Status) String() string

func (Nested_Status) Type

type NonNestedStatus

type NonNestedStatus int32

Foo 状态值

const (
	// 未定义
	NonNestedStatus_NON_NESTED_STATUS_UNSPECIFIED NonNestedStatus = 0
	// 打开
	NonNestedStatus_NON_NESTED_STATUS_UP NonNestedStatus = 1
	// 关闭
	NonNestedStatus_NON_NESTED_STATUS_DOWN NonNestedStatus = 2
	// 左
	NonNestedStatus_NON_NESTED_STATUS_LEFT NonNestedStatus = 3
	// 右
	NonNestedStatus_NON_NESTED_STATUS_RIGHT NonNestedStatus = 4
)

func (NonNestedStatus) Descriptor

func (NonNestedStatus) Enum

func (x NonNestedStatus) Enum() *NonNestedStatus

func (NonNestedStatus) EnumDescriptor deprecated

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

Deprecated: Use NonNestedStatus.Descriptor instead.

func (NonNestedStatus) Number

func (NonNestedStatus) String

func (x NonNestedStatus) String() string

func (NonNestedStatus) Type

Jump to

Keyboard shortcuts

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