Documentation ¶
Index ¶
- Variables
- type NodeIDStatusEnum
- func (*NodeIDStatusEnum) Descriptor() ([]byte, []int)deprecated
- func (*NodeIDStatusEnum) ProtoMessage()
- func (x *NodeIDStatusEnum) ProtoReflect() protoreflect.Message
- func (x *NodeIDStatusEnum) Reset()
- func (x *NodeIDStatusEnum) String() string
- func (m *NodeIDStatusEnum) Validate() error
- func (m *NodeIDStatusEnum) ValidateAll() error
- type NodeIDStatusEnumMultiError
- type NodeIDStatusEnumValidationError
- func (e NodeIDStatusEnumValidationError) Cause() error
- func (e NodeIDStatusEnumValidationError) Error() string
- func (e NodeIDStatusEnumValidationError) ErrorName() string
- func (e NodeIDStatusEnumValidationError) Field() string
- func (e NodeIDStatusEnumValidationError) Key() bool
- func (e NodeIDStatusEnumValidationError) Reason() string
- type NodeIDStatusEnum_Status
- func (NodeIDStatusEnum_Status) Descriptor() protoreflect.EnumDescriptor
- func (x NodeIDStatusEnum_Status) Enum() *NodeIDStatusEnum_Status
- func (NodeIDStatusEnum_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x NodeIDStatusEnum_Status) Number() protoreflect.EnumNumber
- func (x NodeIDStatusEnum_Status) String() string
- func (NodeIDStatusEnum_Status) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
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.
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 ¶
func (m NodeIDStatusEnumMultiError) Error() string
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 ¶
func (e NodeIDStatusEnumValidationError) Cause() error
Cause function returns cause value.
func (NodeIDStatusEnumValidationError) Error ¶
func (e NodeIDStatusEnumValidationError) Error() string
Error satisfies the builtin error interface
func (NodeIDStatusEnumValidationError) ErrorName ¶
func (e NodeIDStatusEnumValidationError) ErrorName() string
ErrorName returns error name.
func (NodeIDStatusEnumValidationError) Field ¶
func (e NodeIDStatusEnumValidationError) Field() string
Field function returns field value.
func (NodeIDStatusEnumValidationError) Key ¶
func (e NodeIDStatusEnumValidationError) Key() bool
Key function returns key value.
func (NodeIDStatusEnumValidationError) Reason ¶
func (e NodeIDStatusEnumValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
func (NodeIDStatusEnum_Status) Enum ¶
func (x NodeIDStatusEnum_Status) Enum() *NodeIDStatusEnum_Status
func (NodeIDStatusEnum_Status) EnumDescriptor
deprecated
func (NodeIDStatusEnum_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use NodeIDStatusEnum_Status.Descriptor instead.
func (NodeIDStatusEnum_Status) Number ¶
func (x NodeIDStatusEnum_Status) Number() protoreflect.EnumNumber
func (NodeIDStatusEnum_Status) String ¶
func (x NodeIDStatusEnum_Status) String() string
func (NodeIDStatusEnum_Status) Type ¶
func (NodeIDStatusEnum_Status) Type() protoreflect.EnumType