v1

package
v0.0.0-...-57cfbe6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 17 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_udpa_type_v1_typed_struct_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type TypedStruct

type TypedStruct struct {
	TypeUrl string           `protobuf:"bytes,1,opt,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	Value   *structpb.Struct `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*TypedStruct) Descriptor deprecated

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

Deprecated: Use TypedStruct.ProtoReflect.Descriptor instead.

func (*TypedStruct) GetTypeUrl

func (x *TypedStruct) GetTypeUrl() string

func (*TypedStruct) GetValue

func (x *TypedStruct) GetValue() *structpb.Struct

func (*TypedStruct) ProtoMessage

func (*TypedStruct) ProtoMessage()

func (*TypedStruct) ProtoReflect

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

func (*TypedStruct) Reset

func (x *TypedStruct) Reset()

func (*TypedStruct) String

func (x *TypedStruct) String() string

func (*TypedStruct) Validate

func (m *TypedStruct) Validate() error

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

func (m *TypedStruct) ValidateAll() error

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

type TypedStructMultiError

type TypedStructMultiError []error

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

func (TypedStructMultiError) AllErrors

func (m TypedStructMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TypedStructMultiError) Error

func (m TypedStructMultiError) Error() string

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

type TypedStructValidationError

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

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

func (TypedStructValidationError) Cause

Cause function returns cause value.

func (TypedStructValidationError) Error

Error satisfies the builtin error interface

func (TypedStructValidationError) ErrorName

func (e TypedStructValidationError) ErrorName() string

ErrorName returns error name.

func (TypedStructValidationError) Field

Field function returns field value.

func (TypedStructValidationError) Key

Key function returns key value.

func (TypedStructValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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