enum

package
v0.0.0-...-96f2668 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Enable_name = map[int32]string{
		0: "ENABLE_UNSPECIFIED",
		1: "ENABLE_YES",
		2: "ENABLE_NO",
	}
	Enable_value = map[string]int32{
		"ENABLE_UNSPECIFIED": 0,
		"ENABLE_YES":         1,
		"ENABLE_NO":          2,
	}
)

Enum value maps for Enable.

View Source
var (
	Sort_name = map[int32]string{
		0: "SORT_UNSPECIFIED",
		1: "SORT_DESC",
		2: "SORT_ASC",
	}
	Sort_value = map[string]int32{
		"SORT_UNSPECIFIED": 0,
		"SORT_DESC":        1,
		"SORT_ASC":         2,
	}
)

Enum value maps for Sort.

View Source
var (
	State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_ACTIVE",
		2: "STATE_INACTIVE",
		3: "STATE_BANNED",
	}
	State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"STATE_ACTIVE":      1,
		"STATE_INACTIVE":    2,
		"STATE_BANNED":      3,
	}
)

Enum value maps for State.

View Source
var (
	Switch_name = map[int32]string{
		0: "SWITCH_UNSPECIFIED",
		1: "SWITCH_OPEN",
		2: "SWITCH_CLOSE",
	}
	Switch_value = map[string]int32{
		"SWITCH_UNSPECIFIED": 0,
		"SWITCH_OPEN":        1,
		"SWITCH_CLOSE":       2,
	}
)

Enum value maps for Switch.

View Source
var File_common_enum_enum_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Enable

type Enable int32

启用状态

const (
	Enable_ENABLE_UNSPECIFIED Enable = 0
	Enable_ENABLE_YES         Enable = 1
	Enable_ENABLE_NO          Enable = 2
)

func (Enable) Descriptor

func (Enable) Descriptor() protoreflect.EnumDescriptor

func (Enable) Enum

func (x Enable) Enum() *Enable

func (Enable) EnumDescriptor deprecated

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

Deprecated: Use Enable.Descriptor instead.

func (Enable) Number

func (x Enable) Number() protoreflect.EnumNumber

func (Enable) String

func (x Enable) String() string

func (Enable) Type

func (Enable) Type() protoreflect.EnumType

type Sort

type Sort int32

通用排序

const (
	Sort_SORT_UNSPECIFIED Sort = 0
	Sort_SORT_DESC        Sort = 1
	Sort_SORT_ASC         Sort = 2
)

func (Sort) Descriptor

func (Sort) Descriptor() protoreflect.EnumDescriptor

func (Sort) Enum

func (x Sort) Enum() *Sort

func (Sort) EnumDescriptor deprecated

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

Deprecated: Use Sort.Descriptor instead.

func (Sort) Number

func (x Sort) Number() protoreflect.EnumNumber

func (Sort) String

func (x Sort) String() string

func (Sort) Type

func (Sort) Type() protoreflect.EnumType

type State

type State int32

通用状态

const (
	State_STATE_UNSPECIFIED State = 0
	State_STATE_ACTIVE      State = 1
	State_STATE_INACTIVE    State = 2
	State_STATE_BANNED      State = 3
)

func (State) Descriptor

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

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

Deprecated: Use State.Descriptor instead.

func (State) Number

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type

func (State) Type() protoreflect.EnumType

type Switch

type Switch int32

开关

const (
	Switch_SWITCH_UNSPECIFIED Switch = 0
	Switch_SWITCH_OPEN        Switch = 1
	Switch_SWITCH_CLOSE       Switch = 2
)

func (Switch) Descriptor

func (Switch) Descriptor() protoreflect.EnumDescriptor

func (Switch) Enum

func (x Switch) Enum() *Switch

func (Switch) EnumDescriptor deprecated

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

Deprecated: Use Switch.Descriptor instead.

func (Switch) Number

func (x Switch) Number() protoreflect.EnumNumber

func (Switch) String

func (x Switch) String() string

func (Switch) Type

func (Switch) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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