enumv1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 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_service_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

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

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

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

func (m PingInitEnumMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PingInitEnumMultiError) Error

func (m PingInitEnumMultiError) Error() string

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

type PingInitEnumValidationError

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

Cause function returns cause value.

func (PingInitEnumValidationError) Error

Error satisfies the builtin error interface

func (PingInitEnumValidationError) ErrorName

func (e PingInitEnumValidationError) ErrorName() string

ErrorName returns error name.

func (PingInitEnumValidationError) Field

Field function returns field value.

func (PingInitEnumValidationError) Key

Key function returns key value.

func (PingInitEnumValidationError) Reason

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