enums

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 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: "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(x Nested_Nested1_Type) string

GetNested_Nested1_TypeDesc mapping description. Deprecated: Use Nested_Nested1_Type.MappingDescriptor instead.

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_StatusDesc added in v0.1.2

func GetNested_StatusDesc(x Nested_Status) string

GetNested_StatusDesc mapping description. Deprecated: Use Nested_Status.MappingDescriptor instead.

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 GetNonNestedStatusDesc

func GetNonNestedStatusDesc(x NonNestedStatus) string

GetNonNestedStatusDesc mapping description. Deprecated: Use NonNestedStatus.MappingDescriptor instead.

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) 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

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) 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

type NonNestedStatus

type NonNestedStatus int32

NonNestedStatus 状态值

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) 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

Jump to

Keyboard shortcuts

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