objectsv1beta2

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_indykite_objects_v1beta2_value_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Array

type Array struct {

	// Values in the array.
	Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

An array value.

func (*Array) Descriptor deprecated

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

Deprecated: Use Array.ProtoReflect.Descriptor instead.

func (*Array) GetValues

func (x *Array) GetValues() []*Value

func (*Array) ProtoMessage

func (*Array) ProtoMessage()

func (*Array) ProtoReflect

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

func (*Array) Reset

func (x *Array) Reset()

func (*Array) String

func (x *Array) String() string

func (*Array) Validate

func (m *Array) Validate() error

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

func (m *Array) ValidateAll() error

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

type ArrayMultiError

type ArrayMultiError []error

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

func (ArrayMultiError) AllErrors

func (m ArrayMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ArrayMultiError) Error

func (m ArrayMultiError) Error() string

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

type ArrayValidationError

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

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

func (ArrayValidationError) Cause

func (e ArrayValidationError) Cause() error

Cause function returns cause value.

func (ArrayValidationError) Error

func (e ArrayValidationError) Error() string

Error satisfies the builtin error interface

func (ArrayValidationError) ErrorName

func (e ArrayValidationError) ErrorName() string

ErrorName returns error name.

func (ArrayValidationError) Field

func (e ArrayValidationError) Field() string

Field function returns field value.

func (ArrayValidationError) Key

func (e ArrayValidationError) Key() bool

Key function returns key value.

func (ArrayValidationError) Reason

func (e ArrayValidationError) Reason() string

Reason function returns reason value.

type Map

type Map struct {

	// The map's keys and values.
	Fields map[string]*Value `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

A map value.

func (*Map) Descriptor deprecated

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

Deprecated: Use Map.ProtoReflect.Descriptor instead.

func (*Map) GetFields

func (x *Map) GetFields() map[string]*Value

func (*Map) ProtoMessage

func (*Map) ProtoMessage()

func (*Map) ProtoReflect

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

func (*Map) Reset

func (x *Map) Reset()

func (*Map) String

func (x *Map) String() string

func (*Map) Validate

func (m *Map) Validate() error

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

func (m *Map) ValidateAll() error

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

type MapMultiError

type MapMultiError []error

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

func (MapMultiError) AllErrors

func (m MapMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MapMultiError) Error

func (m MapMultiError) Error() string

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

type MapValidationError

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

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

func (MapValidationError) Cause

func (e MapValidationError) Cause() error

Cause function returns cause value.

func (MapValidationError) Error

func (e MapValidationError) Error() string

Error satisfies the builtin error interface

func (MapValidationError) ErrorName

func (e MapValidationError) ErrorName() string

ErrorName returns error name.

func (MapValidationError) Field

func (e MapValidationError) Field() string

Field function returns field value.

func (MapValidationError) Key

func (e MapValidationError) Key() bool

Key function returns key value.

func (MapValidationError) Reason

func (e MapValidationError) Reason() string

Reason function returns reason value.

type Value

type Value struct {

	// Must have a value set.
	//
	// Types that are assignable to Type:
	//
	//	*Value_BoolValue
	//	*Value_IntegerValue
	//	*Value_DoubleValue
	//	*Value_TimeValue
	//	*Value_DurationValue
	//	*Value_StringValue
	//	*Value_BytesValue
	//	*Value_ArrayValue
	//	*Value_MapValue
	Type isValue_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

A message that can hold any of the supported value types.

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetArrayValue

func (x *Value) GetArrayValue() *Array

func (*Value) GetBoolValue

func (x *Value) GetBoolValue() bool

func (*Value) GetBytesValue

func (x *Value) GetBytesValue() []byte

func (*Value) GetDoubleValue

func (x *Value) GetDoubleValue() float64

func (*Value) GetDurationValue

func (x *Value) GetDurationValue() *durationpb.Duration

func (*Value) GetIntegerValue

func (x *Value) GetIntegerValue() int64

func (*Value) GetMapValue

func (x *Value) GetMapValue() *Map

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

func (*Value) GetTimeValue

func (x *Value) GetTimeValue() *timestamppb.Timestamp

func (*Value) GetType

func (m *Value) GetType() isValue_Type

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

func (*Value) Validate

func (m *Value) Validate() error

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

func (m *Value) ValidateAll() error

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

type ValueMultiError

type ValueMultiError []error

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

func (ValueMultiError) AllErrors

func (m ValueMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ValueMultiError) Error

func (m ValueMultiError) Error() string

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

type ValueValidationError

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

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

func (ValueValidationError) Cause

func (e ValueValidationError) Cause() error

Cause function returns cause value.

func (ValueValidationError) Error

func (e ValueValidationError) Error() string

Error satisfies the builtin error interface

func (ValueValidationError) ErrorName

func (e ValueValidationError) ErrorName() string

ErrorName returns error name.

func (ValueValidationError) Field

func (e ValueValidationError) Field() string

Field function returns field value.

func (ValueValidationError) Key

func (e ValueValidationError) Key() bool

Key function returns key value.

func (ValueValidationError) Reason

func (e ValueValidationError) Reason() string

Reason function returns reason value.

type Value_ArrayValue

type Value_ArrayValue struct {
	// An array value.
	ArrayValue *Array `protobuf:"bytes,8,opt,name=array_value,json=arrayValue,proto3,oneof"`
}

type Value_BoolValue

type Value_BoolValue struct {
	// A boolean value.
	BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Value_BytesValue

type Value_BytesValue struct {
	// A bytes value.
	BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}

type Value_DoubleValue

type Value_DoubleValue struct {
	// A double value.
	DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type Value_DurationValue

type Value_DurationValue struct {
	// A duration value.
	DurationValue *durationpb.Duration `protobuf:"bytes,5,opt,name=duration_value,json=durationValue,proto3,oneof"`
}

type Value_IntegerValue

type Value_IntegerValue struct {
	// An integer value.
	IntegerValue int64 `protobuf:"varint,2,opt,name=integer_value,json=integerValue,proto3,oneof"`
}

type Value_MapValue

type Value_MapValue struct {
	// A map value.
	MapValue *Map `protobuf:"bytes,9,opt,name=map_value,json=mapValue,proto3,oneof"`
}

type Value_StringValue

type Value_StringValue struct {
	// A string value.
	StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Value_TimeValue

type Value_TimeValue struct {
	// A timestamp value.
	TimeValue *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=time_value,json=timeValue,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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