Documentation ¶
Index ¶
- Variables
- type Array
- type ArrayMultiError
- type ArrayValidationError
- type Map
- type MapMultiError
- type MapValidationError
- type Value
- func (*Value) Descriptor() ([]byte, []int)deprecated
- func (x *Value) GetArrayValue() *Array
- func (x *Value) GetBoolValue() bool
- func (x *Value) GetBytesValue() []byte
- func (x *Value) GetDoubleValue() float64
- func (x *Value) GetDurationValue() *durationpb.Duration
- func (x *Value) GetIntegerValue() int64
- func (x *Value) GetMapValue() *Map
- func (x *Value) GetStringValue() string
- func (x *Value) GetTimeValue() *timestamppb.Timestamp
- func (m *Value) GetType() isValue_Type
- func (*Value) ProtoMessage()
- func (x *Value) ProtoReflect() protoreflect.Message
- func (x *Value) Reset()
- func (x *Value) String() string
- func (m *Value) Validate() error
- func (m *Value) ValidateAll() error
- type ValueMultiError
- type ValueValidationError
- type Value_ArrayValue
- type Value_BoolValue
- type Value_BytesValue
- type Value_DoubleValue
- type Value_DurationValue
- type Value_IntegerValue
- type Value_MapValue
- type Value_StringValue
- type Value_TimeValue
Constants ¶
This section is empty.
Variables ¶
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) ProtoMessage ¶
func (*Array) ProtoMessage()
func (*Array) ProtoReflect ¶
func (x *Array) ProtoReflect() protoreflect.Message
func (*Array) Validate ¶
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 ¶
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) ProtoMessage ¶
func (*Map) ProtoMessage()
func (*Map) ProtoReflect ¶
func (x *Map) ProtoReflect() protoreflect.Message
func (*Map) Validate ¶
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 ¶
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) GetArrayValue ¶
func (*Value) GetBoolValue ¶
func (*Value) GetBytesValue ¶
func (*Value) GetDoubleValue ¶
func (*Value) GetDurationValue ¶
func (x *Value) GetDurationValue() *durationpb.Duration
func (*Value) GetIntegerValue ¶
func (*Value) GetMapValue ¶
func (*Value) GetStringValue ¶
func (*Value) GetTimeValue ¶
func (x *Value) GetTimeValue() *timestamppb.Timestamp
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
func (*Value) Validate ¶
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 ¶
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"` }