package v1

import "github.com/cncf/xds/go/udpa/type/v1"

Index

Variables

var File_udpa_type_v1_typed_struct_proto protoreflect.FileDescriptor

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

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.

Source Files

typed_struct.pb.go typed_struct.pb.validate.go

Version
v0.0.0-20250121191232-2f005788dc42 (latest)
Published
Jan 21, 2025
Platform
linux/amd64
Imports
17 packages
Last checked
5 days ago

Tools for package owners.