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 (
	TestdataInitEnum_TestdataInit_name = map[int32]string{
		0: "UNSPECIFIED",
	}
	TestdataInitEnum_TestdataInit_value = map[string]int32{
		"UNSPECIFIED": 0,
	}
)

Enum value maps for TestdataInitEnum_TestdataInit.

View Source
var File_api_testdata_service_v1_enums_testdata_enum_v1_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type TestdataInitEnum

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

TestdataInitEnum TestdataInitEnum enum

func (*TestdataInitEnum) Descriptor deprecated

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

Deprecated: Use TestdataInitEnum.ProtoReflect.Descriptor instead.

func (*TestdataInitEnum) ProtoMessage

func (*TestdataInitEnum) ProtoMessage()

func (*TestdataInitEnum) ProtoReflect

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

func (*TestdataInitEnum) Reset

func (x *TestdataInitEnum) Reset()

func (*TestdataInitEnum) String

func (x *TestdataInitEnum) String() string

func (*TestdataInitEnum) Validate

func (m *TestdataInitEnum) Validate() error

Validate checks the field values on TestdataInitEnum 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 (*TestdataInitEnum) ValidateAll

func (m *TestdataInitEnum) ValidateAll() error

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

type TestdataInitEnumMultiError

type TestdataInitEnumMultiError []error

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

func (TestdataInitEnumMultiError) AllErrors

func (m TestdataInitEnumMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TestdataInitEnumMultiError) Error

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

type TestdataInitEnumValidationError

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

TestdataInitEnumValidationError is the validation error returned by TestdataInitEnum.Validate if the designated constraints aren't met.

func (TestdataInitEnumValidationError) Cause

Cause function returns cause value.

func (TestdataInitEnumValidationError) Error

Error satisfies the builtin error interface

func (TestdataInitEnumValidationError) ErrorName

ErrorName returns error name.

func (TestdataInitEnumValidationError) Field

Field function returns field value.

func (TestdataInitEnumValidationError) Key

Key function returns key value.

func (TestdataInitEnumValidationError) Reason

Reason function returns reason value.

type TestdataInitEnum_TestdataInit

type TestdataInitEnum_TestdataInit int32

TestdataInit TestdataInit enum

const (
	// UNSPECIFIED 未指定
	TestdataInitEnum_UNSPECIFIED TestdataInitEnum_TestdataInit = 0
)

func (TestdataInitEnum_TestdataInit) Descriptor

func (TestdataInitEnum_TestdataInit) Enum

func (TestdataInitEnum_TestdataInit) EnumDescriptor deprecated

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

Deprecated: Use TestdataInitEnum_TestdataInit.Descriptor instead.

func (TestdataInitEnum_TestdataInit) Number

func (TestdataInitEnum_TestdataInit) String

func (TestdataInitEnum_TestdataInit) Type

Jump to

Keyboard shortcuts

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