objectsv1beta1

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Overview

Package objectsv1beta1 is generated from proto package.

Index

Constants

This section is empty.

Variables

View Source
var File_indykite_objects_v1beta1_id_proto protoreflect.FileDescriptor
View Source
var File_indykite_objects_v1beta1_struct_proto protoreflect.FileDescriptor

Functions

func FromValue

func FromValue(v *Value) (any, error)

func ToMap

func ToMap(fields map[string]*Value) (map[string]any, error)

func ToMapValue

func ToMapValue(in map[string]any) (map[string]*Value, error)

Types

type ArrayValue

type ArrayValue 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 (*ArrayValue) Append

func (*ArrayValue) Append(protoreflect.Value)

func (*ArrayValue) AppendMutable

func (*ArrayValue) AppendMutable() protoreflect.Value

func (*ArrayValue) Descriptor deprecated

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

Deprecated: Use ArrayValue.ProtoReflect.Descriptor instead.

func (*ArrayValue) Get

func (x *ArrayValue) Get(i int) protoreflect.Value

func (*ArrayValue) GetValues

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

func (*ArrayValue) IsValid

func (*ArrayValue) IsValid() bool

func (*ArrayValue) Len

func (x *ArrayValue) Len() int

func (*ArrayValue) NewElement

func (*ArrayValue) NewElement() protoreflect.Value

func (*ArrayValue) ProtoMessage

func (*ArrayValue) ProtoMessage()

func (*ArrayValue) ProtoReflect

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

func (*ArrayValue) Reset

func (x *ArrayValue) Reset()

func (*ArrayValue) Set

func (*ArrayValue) String

func (x *ArrayValue) String() string

func (*ArrayValue) Truncate

func (*ArrayValue) Truncate(int)

func (*ArrayValue) Validate

func (m *ArrayValue) Validate() error

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

func (m *ArrayValue) ValidateAll() error

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

type ArrayValueMultiError

type ArrayValueMultiError []error

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

func (ArrayValueMultiError) AllErrors

func (m ArrayValueMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ArrayValueMultiError) Error

func (m ArrayValueMultiError) Error() string

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

type ArrayValueValidationError

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

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

func (ArrayValueValidationError) Cause

func (e ArrayValueValidationError) Cause() error

Cause function returns cause value.

func (ArrayValueValidationError) Error

Error satisfies the builtin error interface

func (ArrayValueValidationError) ErrorName

func (e ArrayValueValidationError) ErrorName() string

ErrorName returns error name.

func (ArrayValueValidationError) Field

Field function returns field value.

func (ArrayValueValidationError) Key

Key function returns key value.

func (ArrayValueValidationError) Reason

func (e ArrayValueValidationError) Reason() string

Reason function returns reason value.

type Identifier

type Identifier struct {

	// Types that are assignable to Id:
	//	*Identifier_IdString
	//	*Identifier_IdBytes
	Id isIdentifier_Id `protobuf_oneof:"id"`
	// contains filtered or unexported fields
}

Identifier is a universally unique identifier (UUID) a 128-bit number used to identify information in system.

func (*Identifier) Descriptor deprecated

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

Deprecated: Use Identifier.ProtoReflect.Descriptor instead.

func (*Identifier) GetId

func (m *Identifier) GetId() isIdentifier_Id

func (*Identifier) GetIdBytes

func (x *Identifier) GetIdBytes() []byte

func (*Identifier) GetIdString

func (x *Identifier) GetIdString() string

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) ProtoReflect

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

func (*Identifier) Reset

func (x *Identifier) Reset()

func (*Identifier) String

func (x *Identifier) String() string

func (*Identifier) Validate

func (m *Identifier) Validate() error

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

func (m *Identifier) ValidateAll() error

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

type IdentifierMultiError

type IdentifierMultiError []error

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

func (IdentifierMultiError) AllErrors

func (m IdentifierMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IdentifierMultiError) Error

func (m IdentifierMultiError) Error() string

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

type IdentifierValidationError

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

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

func (IdentifierValidationError) Cause

func (e IdentifierValidationError) Cause() error

Cause function returns cause value.

func (IdentifierValidationError) Error

Error satisfies the builtin error interface

func (IdentifierValidationError) ErrorName

func (e IdentifierValidationError) ErrorName() string

ErrorName returns error name.

func (IdentifierValidationError) Field

Field function returns field value.

func (IdentifierValidationError) Key

Key function returns key value.

func (IdentifierValidationError) Reason

func (e IdentifierValidationError) Reason() string

Reason function returns reason value.

type Identifier_IdBytes

type Identifier_IdBytes struct {
	// Byte[16] array representation of an RFC4122 compliant UUID.
	IdBytes []byte `protobuf:"bytes,8,opt,name=id_bytes,json=idBytes,proto3,oneof"`
}

type Identifier_IdString

type Identifier_IdString struct {
	//String representation of an RFC4122 compliant UUID.
	IdString string `protobuf:"bytes,7,opt,name=id_string,json=idString,proto3,oneof"`
}

type MapValue

type MapValue 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 (*MapValue) Descriptor deprecated

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

Deprecated: Use MapValue.ProtoReflect.Descriptor instead.

func (*MapValue) GetFields

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

func (*MapValue) ProtoMessage

func (*MapValue) ProtoMessage()

func (*MapValue) ProtoReflect

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

func (*MapValue) Reset

func (x *MapValue) Reset()

func (*MapValue) String

func (x *MapValue) String() string

func (*MapValue) Validate

func (m *MapValue) Validate() error

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

func (m *MapValue) ValidateAll() error

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

type MapValueMultiError

type MapValueMultiError []error

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

func (MapValueMultiError) AllErrors

func (m MapValueMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MapValueMultiError) Error

func (m MapValueMultiError) Error() string

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

type MapValueValidationError

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

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

func (MapValueValidationError) Cause

func (e MapValueValidationError) Cause() error

Cause function returns cause value.

func (MapValueValidationError) Error

func (e MapValueValidationError) Error() string

Error satisfies the builtin error interface

func (MapValueValidationError) ErrorName

func (e MapValueValidationError) ErrorName() string

ErrorName returns error name.

func (MapValueValidationError) Field

func (e MapValueValidationError) Field() string

Field function returns field value.

func (MapValueValidationError) Key

func (e MapValueValidationError) Key() bool

Key function returns key value.

func (MapValueValidationError) Reason

func (e MapValueValidationError) Reason() string

Reason function returns reason value.

type ObjectReference

type ObjectReference struct {

	//UUID of the top level Customer.
	CustomerId *Identifier `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
	//UUID of Application Space in Customer.
	AppSpaceId *Identifier `protobuf:"bytes,2,opt,name=app_space_id,json=appSpaceId,proto3" json:"app_space_id,omitempty"`
	//UUID of Application in Application Space.
	AppId *Identifier `protobuf:"bytes,3,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	//UUID of Tenant in Application Space.
	TenantId *Identifier `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	//Gives a hint about what the identifier refers to. Usually a URL to the schema of the target object.
	TypeHint string `protobuf:"bytes,6,opt,name=type_hint,json=typeHint,proto3" json:"type_hint,omitempty"`
	//UUID of Object to refer to.
	Id *Identifier `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

ObjectReference ...

func (*ObjectReference) Descriptor deprecated

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

Deprecated: Use ObjectReference.ProtoReflect.Descriptor instead.

func (*ObjectReference) GetAppId

func (x *ObjectReference) GetAppId() *Identifier

func (*ObjectReference) GetAppSpaceId

func (x *ObjectReference) GetAppSpaceId() *Identifier

func (*ObjectReference) GetCustomerId

func (x *ObjectReference) GetCustomerId() *Identifier

func (*ObjectReference) GetId

func (x *ObjectReference) GetId() *Identifier

func (*ObjectReference) GetTenantId

func (x *ObjectReference) GetTenantId() *Identifier

func (*ObjectReference) GetTypeHint

func (x *ObjectReference) GetTypeHint() string

func (*ObjectReference) ProtoMessage

func (*ObjectReference) ProtoMessage()

func (*ObjectReference) ProtoReflect

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

func (*ObjectReference) Reset

func (x *ObjectReference) Reset()

func (*ObjectReference) String

func (x *ObjectReference) String() string

func (*ObjectReference) Validate

func (m *ObjectReference) Validate() error

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

func (m *ObjectReference) ValidateAll() error

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

type ObjectReferenceMultiError

type ObjectReferenceMultiError []error

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

func (ObjectReferenceMultiError) AllErrors

func (m ObjectReferenceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ObjectReferenceMultiError) Error

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

type ObjectReferenceValidationError

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

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

func (ObjectReferenceValidationError) Cause

Cause function returns cause value.

func (ObjectReferenceValidationError) Error

Error satisfies the builtin error interface

func (ObjectReferenceValidationError) ErrorName

func (e ObjectReferenceValidationError) ErrorName() string

ErrorName returns error name.

func (ObjectReferenceValidationError) Field

Field function returns field value.

func (ObjectReferenceValidationError) Key

Key function returns key value.

func (ObjectReferenceValidationError) Reason

Reason function returns reason value.

type Value

type Value struct {

	// Must have a value set.
	//
	// Types that are assignable to Value:
	//
	//	*Value_NullValue
	//	*Value_BoolValue
	//	*Value_IntegerValue
	//	*Value_UnsignedIntegerValue
	//	*Value_DoubleValue
	//	*Value_AnyValue
	//	*Value_ValueTime
	//	*Value_DurationValue
	//	*Value_StringValue
	//	*Value_BytesValue
	//	*Value_GeoPointValue
	//	*Value_ArrayValue
	//	*Value_MapValue
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

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

func Any

func Any(v proto.Message) (*Value, error)

func Bool

func Bool(v bool) *Value

func Float64

func Float64(v float64) *Value

func Int64

func Int64(v int64) *Value

func Null

func Null() *Value

func String

func String(v string) *Value

func ToValue

func ToValue(v any) (*Value, error)

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetAnyValue

func (x *Value) GetAnyValue() *anypb.Any

func (*Value) GetArrayValue

func (x *Value) GetArrayValue() *ArrayValue

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) GetGeoPointValue

func (x *Value) GetGeoPointValue() *latlng.LatLng

func (*Value) GetIntegerValue

func (x *Value) GetIntegerValue() int64

func (*Value) GetMapValue

func (x *Value) GetMapValue() *MapValue

func (*Value) GetNullValue

func (x *Value) GetNullValue() structpb.NullValue

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

func (*Value) GetUnsignedIntegerValue

func (x *Value) GetUnsignedIntegerValue() uint64

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) GetValueTime

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

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_AnyValue

type Value_AnyValue struct {
	// An Any value.
	AnyValue *anypb.Any `protobuf:"bytes,5,opt,name=any_value,json=anyValue,proto3,oneof"`
}

type Value_ArrayValue

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

type Value_BoolValue

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

type Value_BytesValue

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

type Value_DoubleValue

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

type Value_DurationValue

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

type Value_GeoPointValue

type Value_GeoPointValue struct {
	// A geo point value representing a point on the surface of Earth.
	GeoPointValue *latlng.LatLng `protobuf:"bytes,9,opt,name=geo_point_value,json=geoPointValue,proto3,oneof"`
}

type Value_IntegerValue

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

type Value_MapValue

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

type Value_NullValue

type Value_NullValue struct {
	// A null value.
	NullValue structpb.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
}

type Value_StringValue

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

type Value_UnsignedIntegerValue

type Value_UnsignedIntegerValue struct {
	// An integer value.
	UnsignedIntegerValue uint64 `protobuf:"varint,14,opt,name=unsigned_integer_value,json=unsignedIntegerValue,proto3,oneof"`
}

type Value_ValueTime

type Value_ValueTime struct {
	// A timestamp value.
	ValueTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=value_time,json=valueTime,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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