enumv1

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeIDStatusEnum_Status_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "IDLE",
		2: "USING",
	}
	NodeIDStatusEnum_Status_value = map[string]int32{
		"UNSPECIFIED": 0,
		"IDLE":        1,
		"USING":       2,
	}
)

Enum value maps for NodeIDStatusEnum_Status.

View Source
var File_api_nodeid_service_v1_enums_node_id_enum_v1_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type NodeIDStatusEnum

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

NodeIDStatusEnum 节点状态

func (*NodeIDStatusEnum) Descriptor deprecated

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

Deprecated: Use NodeIDStatusEnum.ProtoReflect.Descriptor instead.

func (*NodeIDStatusEnum) ProtoMessage

func (*NodeIDStatusEnum) ProtoMessage()

func (*NodeIDStatusEnum) ProtoReflect

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

func (*NodeIDStatusEnum) Reset

func (x *NodeIDStatusEnum) Reset()

func (*NodeIDStatusEnum) String

func (x *NodeIDStatusEnum) String() string

func (*NodeIDStatusEnum) Validate

func (m *NodeIDStatusEnum) Validate() error

Validate checks the field values on NodeIDStatusEnum with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*NodeIDStatusEnum) ValidateAll

func (m *NodeIDStatusEnum) ValidateAll() error

ValidateAll checks the field values on NodeIDStatusEnum with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in NodeIDStatusEnumMultiError, or nil if none found.

type NodeIDStatusEnumMultiError

type NodeIDStatusEnumMultiError []error

NodeIDStatusEnumMultiError is an error wrapping multiple validation errors returned by NodeIDStatusEnum.ValidateAll() if the designated constraints aren't met.

func (NodeIDStatusEnumMultiError) AllErrors

func (m NodeIDStatusEnumMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NodeIDStatusEnumMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type NodeIDStatusEnumValidationError

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

NodeIDStatusEnumValidationError is the validation error returned by NodeIDStatusEnum.Validate if the designated constraints aren't met.

func (NodeIDStatusEnumValidationError) Cause

Cause function returns cause value.

func (NodeIDStatusEnumValidationError) Error

Error satisfies the builtin error interface

func (NodeIDStatusEnumValidationError) ErrorName

ErrorName returns error name.

func (NodeIDStatusEnumValidationError) Field

Field function returns field value.

func (NodeIDStatusEnumValidationError) Key

Key function returns key value.

func (NodeIDStatusEnumValidationError) Reason

Reason function returns reason value.

type NodeIDStatusEnum_Status

type NodeIDStatusEnum_Status int32
const (
	NodeIDStatusEnum_UNSPECIFIED NodeIDStatusEnum_Status = 0 // 未指定
	NodeIDStatusEnum_IDLE        NodeIDStatusEnum_Status = 1 // 闲置
	NodeIDStatusEnum_USING       NodeIDStatusEnum_Status = 2 // 使用中
)

func (NodeIDStatusEnum_Status) Descriptor

func (NodeIDStatusEnum_Status) Enum

func (NodeIDStatusEnum_Status) EnumDescriptor deprecated

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

Deprecated: Use NodeIDStatusEnum_Status.Descriptor instead.

func (NodeIDStatusEnum_Status) Number

func (NodeIDStatusEnum_Status) String

func (x NodeIDStatusEnum_Status) String() string

func (NodeIDStatusEnum_Status) Type

Jump to

Keyboard shortcuts

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