enums

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 6 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",
		999: "Status_End",
	}
	Nested_Status_value = map[string]int32{
		"Status_Unspecified": 0,
		"Status_Up":          1,
		"Status_Down":        2,
		"Status_Left":        3,
		"Status_Right":       4,
		"Status_End":         999,
	}
)

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: "NonNestedStatus_Unspecified",
		1: "NonNestedStatus_Up",
		2: "NonNestedStatus_Down",
		3: "NonNestedStatus_Left",
		4: "NonNestedStatus_Right",
	}
	NonNestedStatus_value = map[string]int32{
		"NonNestedStatus_Unspecified": 0,
		"NonNestedStatus_Up":          1,
		"NonNestedStatus_Down":        2,
		"NonNestedStatus_Left":        3,
		"NonNestedStatus_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_TypeValue added in v0.3.3

func GetNested_Nested1_TypeValue(s string) int

GetNested_Nested1_TypeValue get mapping value Type 类型, [0:禁用,1:启用]

func GetNested_StatusValue added in v0.3.3

func GetNested_StatusValue(s string) int

GetNested_StatusValue get mapping value Status 状态值, [0:\"unspecified\", aaaa,1:nested1,2:nested2,3:nested3,4:nested4,999:end]

func GetNonNestedStatusValue added in v0.3.3

func GetNonNestedStatusValue(s string) int

GetNonNestedStatusValue get mapping value NonNestedStatus 状态值, [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

Type 类型

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) EnumCount added in v0.10.9

func (Nested_Nested1_Type) EnumCount() int

EnumCount the number of enum values.

func (Nested_Nested1_Type) EnumDescriptor deprecated

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

Deprecated: Use Nested_Nested1_Type.Descriptor instead.

func (Nested_Nested1_Type) IntoNumber added in v0.8.3

func (x Nested_Nested1_Type) IntoNumber() int32

IntoNumber returns the enum value as an integer.

func (Nested_Nested1_Type) IntoNumberString added in v0.8.3

func (x Nested_Nested1_Type) IntoNumberString() string

IntoNumberString returns the enum value as an integer string.

func (Nested_Nested1_Type) MappingDescriptor added in v0.8.1

func (x Nested_Nested1_Type) MappingDescriptor() string

MappingDescriptor mapping description. Type 类型, [0:禁用,1:启用]

func (Nested_Nested1_Type) Number

func (Nested_Nested1_Type) String

func (x Nested_Nested1_Type) String() string

func (Nested_Nested1_Type) Type

func (Nested_Nested1_Type) Value_Disable added in v0.10.9

func (Nested_Nested1_Type) Value_Disable() Nested_Nested1_Type

Value_Type_Disable 禁用

func (Nested_Nested1_Type) Value_Enable added in v0.10.9

Value_Type_Enable 启用

type Nested_Status

type Nested_Status int32

Status 状态值

const (
	// "unspecified"
	// aaaa
	Nested_Status_Unspecified Nested_Status = 0
	// nested1
	Nested_Status_Up Nested_Status = 1
	// nested2
	Nested_Status_Down Nested_Status = 2
	// nested3
	Nested_Status_Left Nested_Status = 3
	// nested4
	Nested_Status_Right Nested_Status = 4
	// end
	Nested_Status_End Nested_Status = 999
)

func (Nested_Status) Descriptor

func (Nested_Status) Enum

func (x Nested_Status) Enum() *Nested_Status

func (Nested_Status) EnumCount added in v0.10.9

func (Nested_Status) EnumCount() int

EnumCount the number of enum values.

func (Nested_Status) EnumDescriptor deprecated

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

Deprecated: Use Nested_Status.Descriptor instead.

func (Nested_Status) IntoNumber added in v0.8.3

func (x Nested_Status) IntoNumber() int32

IntoNumber returns the enum value as an integer.

func (Nested_Status) IntoNumberString added in v0.8.3

func (x Nested_Status) IntoNumberString() string

IntoNumberString returns the enum value as an integer string.

func (Nested_Status) MappingDescriptor added in v0.8.1

func (x Nested_Status) MappingDescriptor() string

MappingDescriptor mapping description. Status 状态值, [0:\"unspecified\", aaaa,1:nested1,2:nested2,3:nested3,4:nested4,999:end]

func (Nested_Status) Number

func (Nested_Status) String

func (x Nested_Status) String() string

func (Nested_Status) Type

func (Nested_Status) Value_Down added in v0.10.9

func (Nested_Status) Value_Down() Nested_Status

Value_Status_Down nested2

func (Nested_Status) Value_End added in v0.10.9

func (Nested_Status) Value_End() Nested_Status

Value_Status_End end

func (Nested_Status) Value_Left added in v0.10.9

func (Nested_Status) Value_Left() Nested_Status

Value_Status_Left nested3

func (Nested_Status) Value_Right added in v0.10.9

func (Nested_Status) Value_Right() Nested_Status

Value_Status_Right nested4

func (Nested_Status) Value_Unspecified added in v0.10.9

func (Nested_Status) Value_Unspecified() Nested_Status

Value_Status_Unspecified \"unspecified\", aaaa

func (Nested_Status) Value_Up added in v0.10.9

func (Nested_Status) Value_Up() Nested_Status

Value_Status_Up nested1

type NonNestedStatus

type NonNestedStatus int32

NonNestedStatus 状态值

const (
	// 未定义
	NonNestedStatus_NonNestedStatus_Unspecified NonNestedStatus = 0
	// 打开
	NonNestedStatus_NonNestedStatus_Up NonNestedStatus = 1
	// 关闭
	NonNestedStatus_NonNestedStatus_Down NonNestedStatus = 2
	// 左
	NonNestedStatus_NonNestedStatus_Left NonNestedStatus = 3
	// 右
	NonNestedStatus_NonNestedStatus_Right NonNestedStatus = 4
)

func (NonNestedStatus) Descriptor

func (NonNestedStatus) Enum

func (x NonNestedStatus) Enum() *NonNestedStatus

func (NonNestedStatus) EnumCount added in v0.10.9

func (NonNestedStatus) EnumCount() int

EnumCount the number of enum values.

func (NonNestedStatus) EnumDescriptor deprecated

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

Deprecated: Use NonNestedStatus.Descriptor instead.

func (NonNestedStatus) IntoNumber added in v0.8.3

func (x NonNestedStatus) IntoNumber() int32

IntoNumber returns the enum value as an integer.

func (NonNestedStatus) IntoNumberString added in v0.8.3

func (x NonNestedStatus) IntoNumberString() string

IntoNumberString returns the enum value as an integer string.

func (NonNestedStatus) MappingDescriptor added in v0.8.1

func (x NonNestedStatus) MappingDescriptor() string

MappingDescriptor mapping description. NonNestedStatus 状态值, [0:未定义,1:打开,2:关闭,3:左,4:右]

func (NonNestedStatus) Number

func (NonNestedStatus) String

func (x NonNestedStatus) String() string

func (NonNestedStatus) Type

func (NonNestedStatus) Value_Down added in v0.10.9

func (NonNestedStatus) Value_Down() NonNestedStatus

Value_NonNestedStatus_Down 关闭

func (NonNestedStatus) Value_Left added in v0.10.9

func (NonNestedStatus) Value_Left() NonNestedStatus

Value_NonNestedStatus_Left 左

func (NonNestedStatus) Value_Right added in v0.10.9

func (NonNestedStatus) Value_Right() NonNestedStatus

Value_NonNestedStatus_Right 右

func (NonNestedStatus) Value_Unspecified added in v0.10.9

func (NonNestedStatus) Value_Unspecified() NonNestedStatus

Value_NonNestedStatus_Unspecified 未定义

func (NonNestedStatus) Value_Up added in v0.10.9

func (NonNestedStatus) Value_Up() NonNestedStatus

Value_NonNestedStatus_Up 打开

Jump to

Keyboard shortcuts

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