yet_another_package

package
v0.0.0-...-af03f06 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Embed_Enumerated_name = map[int32]string{
		0: "VALUE",
	}
	Embed_Enumerated_value = map[string]int32{
		"VALUE": 0,
	}
)

Enum value maps for Embed_Enumerated.

View Source
var (
	Embed_BarNumber_name = map[int32]string{
		0: "ZERO",
		1: "ONE",
		2: "TWO",
	}
	Embed_BarNumber_value = map[string]int32{
		"ZERO": 0,
		"ONE":  1,
		"TWO":  2,
	}
)

Enum value maps for Embed_BarNumber.

View Source
var File_cases_yet_another_package_embed_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Embed

type Embed struct {
	Val int64 `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

Validate message embedding across packages.

func (*Embed) Descriptor deprecated

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

Deprecated: Use Embed.ProtoReflect.Descriptor instead.

func (*Embed) GetVal

func (x *Embed) GetVal() int64

func (*Embed) ProtoMessage

func (*Embed) ProtoMessage()

func (*Embed) ProtoReflect

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

func (*Embed) Reset

func (x *Embed) Reset()

func (*Embed) String

func (x *Embed) String() string

func (*Embed) Validate

func (m *Embed) Validate() error

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

func (m *Embed) ValidateAll() error

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

type Embed_BarNumber

type Embed_BarNumber int32
const (
	Embed_ZERO Embed_BarNumber = 0
	Embed_ONE  Embed_BarNumber = 1
	Embed_TWO  Embed_BarNumber = 2
)

func (Embed_BarNumber) Descriptor

func (Embed_BarNumber) Enum

func (x Embed_BarNumber) Enum() *Embed_BarNumber

func (Embed_BarNumber) EnumDescriptor deprecated

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

Deprecated: Use Embed_BarNumber.Descriptor instead.

func (Embed_BarNumber) Number

func (Embed_BarNumber) String

func (x Embed_BarNumber) String() string

func (Embed_BarNumber) Type

type Embed_Enumerated

type Embed_Enumerated int32
const (
	Embed_VALUE Embed_Enumerated = 0
)

func (Embed_Enumerated) Descriptor

func (Embed_Enumerated) Enum

func (Embed_Enumerated) EnumDescriptor deprecated

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

Deprecated: Use Embed_Enumerated.Descriptor instead.

func (Embed_Enumerated) Number

func (Embed_Enumerated) String

func (x Embed_Enumerated) String() string

func (Embed_Enumerated) Type

type MultiError

type MultiError []error

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

func (MultiError) AllErrors

func (m MultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MultiError) Error

func (m MultiError) Error() string

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

type ValidationError

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

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

func (ValidationError) Cause

func (e ValidationError) Cause() error

Cause function returns cause value.

func (ValidationError) Error

func (e ValidationError) Error() string

Error satisfies the builtin error interface

func (ValidationError) ErrorName

func (e ValidationError) ErrorName() string

ErrorName returns error name.

func (ValidationError) Field

func (e ValidationError) Field() string

Field function returns field value.

func (ValidationError) Key

func (e ValidationError) Key() bool

Key function returns key value.

func (ValidationError) Reason

func (e ValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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