enumv1

package
v0.2.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PingInitEnum_PingInit_name = map[int32]string{
		0: "UNSPECIFIED",
	}
	PingInitEnum_PingInit_value = map[string]int32{
		"UNSPECIFIED": 0,
	}
)

Enum value maps for PingInitEnum_PingInit.

View Source
var File_api_ping_v1_enums_ping_enum_v1_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PingInitEnum

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

PingInitEnum PingInitEnum enum

func (*PingInitEnum) Descriptor deprecated

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

Deprecated: Use PingInitEnum.ProtoReflect.Descriptor instead.

func (*PingInitEnum) ProtoMessage

func (*PingInitEnum) ProtoMessage()

func (*PingInitEnum) ProtoReflect

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

func (*PingInitEnum) Reset

func (x *PingInitEnum) Reset()

func (*PingInitEnum) String

func (x *PingInitEnum) String() string

func (*PingInitEnum) Validate added in v0.2.23

func (m *PingInitEnum) Validate() error

Validate checks the field values on PingInitEnum 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 (*PingInitEnum) ValidateAll added in v0.2.23

func (m *PingInitEnum) ValidateAll() error

ValidateAll checks the field values on PingInitEnum 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 PingInitEnumMultiError, or nil if none found.

type PingInitEnumMultiError added in v0.2.23

type PingInitEnumMultiError []error

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

func (PingInitEnumMultiError) AllErrors added in v0.2.23

func (m PingInitEnumMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PingInitEnumMultiError) Error added in v0.2.23

func (m PingInitEnumMultiError) Error() string

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

type PingInitEnumValidationError added in v0.2.23

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

PingInitEnumValidationError is the validation error returned by PingInitEnum.Validate if the designated constraints aren't met.

func (PingInitEnumValidationError) Cause added in v0.2.23

Cause function returns cause value.

func (PingInitEnumValidationError) Error added in v0.2.23

Error satisfies the builtin error interface

func (PingInitEnumValidationError) ErrorName added in v0.2.23

func (e PingInitEnumValidationError) ErrorName() string

ErrorName returns error name.

func (PingInitEnumValidationError) Field added in v0.2.23

Field function returns field value.

func (PingInitEnumValidationError) Key added in v0.2.23

Key function returns key value.

func (PingInitEnumValidationError) Reason added in v0.2.23

Reason function returns reason value.

type PingInitEnum_PingInit

type PingInitEnum_PingInit int32

PingInit PingInit enum

const (
	// UNSPECIFIED 未指定
	PingInitEnum_UNSPECIFIED PingInitEnum_PingInit = 0
)

func (PingInitEnum_PingInit) Descriptor

func (PingInitEnum_PingInit) Enum

func (PingInitEnum_PingInit) EnumDescriptor deprecated

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

Deprecated: Use PingInitEnum_PingInit.Descriptor instead.

func (PingInitEnum_PingInit) Number

func (PingInitEnum_PingInit) String

func (x PingInitEnum_PingInit) String() string

func (PingInitEnum_PingInit) Type

Jump to

Keyboard shortcuts

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