corev1alpha1

package
v0.0.0-...-3a7d93f Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package corev1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EngineService_FeatureDescriptor_FullMethodName = "/core.v1alpha1.EngineService/FeatureDescriptor"
	EngineService_Get_FullMethodName               = "/core.v1alpha1.EngineService/Get"
	EngineService_Set_FullMethodName               = "/core.v1alpha1.EngineService/Set"
	EngineService_Append_FullMethodName            = "/core.v1alpha1.EngineService/Append"
	EngineService_Incr_FullMethodName              = "/core.v1alpha1.EngineService/Incr"
	EngineService_Update_FullMethodName            = "/core.v1alpha1.EngineService/Update"
)

Variables

View Source
var (
	Primitive_name = map[int32]string{
		0:  "PRIMITIVE_UNSPECIFIED",
		1:  "PRIMITIVE_STRING",
		2:  "PRIMITIVE_INTEGER",
		3:  "PRIMITIVE_FLOAT",
		4:  "PRIMITIVE_BOOL",
		5:  "PRIMITIVE_TIMESTAMP",
		10: "PRIMITIVE_STRING_LIST",
		11: "PRIMITIVE_INTEGER_LIST",
		12: "PRIMITIVE_FLOAT_LIST",
		13: "PRIMITIVE_BOOL_LIST",
		14: "PRIMITIVE_TIMESTAMP_LIST",
	}
	Primitive_value = map[string]int32{
		"PRIMITIVE_UNSPECIFIED":    0,
		"PRIMITIVE_STRING":         1,
		"PRIMITIVE_INTEGER":        2,
		"PRIMITIVE_FLOAT":          3,
		"PRIMITIVE_BOOL":           4,
		"PRIMITIVE_TIMESTAMP":      5,
		"PRIMITIVE_STRING_LIST":    10,
		"PRIMITIVE_INTEGER_LIST":   11,
		"PRIMITIVE_FLOAT_LIST":     12,
		"PRIMITIVE_BOOL_LIST":      13,
		"PRIMITIVE_TIMESTAMP_LIST": 14,
	}
)

Enum value maps for Primitive.

View Source
var (
	AggrFn_name = map[int32]string{
		0: "AGGR_FN_UNSPECIFIED",
		1: "AGGR_FN_SUM",
		2: "AGGR_FN_AVG",
		3: "AGGR_FN_MAX",
		4: "AGGR_FN_MIN",
		5: "AGGR_FN_COUNT",
	}
	AggrFn_value = map[string]int32{
		"AGGR_FN_UNSPECIFIED": 0,
		"AGGR_FN_SUM":         1,
		"AGGR_FN_AVG":         2,
		"AGGR_FN_MAX":         3,
		"AGGR_FN_MIN":         4,
		"AGGR_FN_COUNT":       5,
	}
)

Enum value maps for AggrFn.

View Source
var EngineService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.v1alpha1.EngineService",
	HandlerType: (*EngineServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FeatureDescriptor",
			Handler:    _EngineService_FeatureDescriptor_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _EngineService_Get_Handler,
		},
		{
			MethodName: "Set",
			Handler:    _EngineService_Set_Handler,
		},
		{
			MethodName: "Append",
			Handler:    _EngineService_Append_Handler,
		},
		{
			MethodName: "Incr",
			Handler:    _EngineService_Incr_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _EngineService_Update_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core/v1alpha1/api.proto",
}

EngineService_ServiceDesc is the grpc.ServiceDesc for EngineService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_core_v1alpha1_api_proto protoreflect.FileDescriptor
View Source
var File_core_v1alpha1_types_proto protoreflect.FileDescriptor

Functions

func RegisterEngineServiceHandler

func RegisterEngineServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEngineServiceHandler registers the http handlers for service EngineService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEngineServiceHandlerClient

func RegisterEngineServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EngineServiceClient) error

RegisterEngineServiceHandlerClient registers the http handlers for service EngineService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EngineServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EngineServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EngineServiceClient" to call the correct interceptors.

func RegisterEngineServiceHandlerFromEndpoint

func RegisterEngineServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEngineServiceHandlerFromEndpoint is same as RegisterEngineServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEngineServiceHandlerServer

func RegisterEngineServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EngineServiceServer) error

RegisterEngineServiceHandlerServer registers the http handlers for service EngineService to "mux". UnaryRPC :call EngineServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEngineServiceHandlerFromEndpoint instead.

func RegisterEngineServiceServer

func RegisterEngineServiceServer(s grpc.ServiceRegistrar, srv EngineServiceServer)

Types

type AggrFn

type AggrFn int32
const (
	AggrFn_AGGR_FN_UNSPECIFIED AggrFn = 0
	AggrFn_AGGR_FN_SUM         AggrFn = 1
	AggrFn_AGGR_FN_AVG         AggrFn = 2
	AggrFn_AGGR_FN_MAX         AggrFn = 3
	AggrFn_AGGR_FN_MIN         AggrFn = 4
	AggrFn_AGGR_FN_COUNT       AggrFn = 5
)

func (AggrFn) Descriptor

func (AggrFn) Descriptor() protoreflect.EnumDescriptor

func (AggrFn) Enum

func (x AggrFn) Enum() *AggrFn

func (AggrFn) EnumDescriptor deprecated

func (AggrFn) EnumDescriptor() ([]byte, []int)

Deprecated: Use AggrFn.Descriptor instead.

func (AggrFn) Number

func (x AggrFn) Number() protoreflect.EnumNumber

func (AggrFn) String

func (x AggrFn) String() string

func (AggrFn) Type

func (AggrFn) Type() protoreflect.EnumType

type AppendRequest

type AppendRequest struct {

	// UUID of the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Selector of the feature
	Fqn string `protobuf:"bytes,2,opt,name=fqn,proto3" json:"fqn,omitempty"`
	// Keys of the feature
	Keys map[string]string `` /* 149-byte string literal not displayed */
	// Value to append
	Value *Scalar `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// Timestamp of the update
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

AppendRequest is the request to append a value to a feature value.

func (*AppendRequest) Descriptor deprecated

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

Deprecated: Use AppendRequest.ProtoReflect.Descriptor instead.

func (*AppendRequest) GetFqn

func (x *AppendRequest) GetFqn() string

func (*AppendRequest) GetKeys

func (x *AppendRequest) GetKeys() map[string]string

func (*AppendRequest) GetTimestamp

func (x *AppendRequest) GetTimestamp() *timestamppb.Timestamp

func (*AppendRequest) GetUuid

func (x *AppendRequest) GetUuid() string

func (*AppendRequest) GetValue

func (x *AppendRequest) GetValue() *Scalar

func (*AppendRequest) ProtoMessage

func (*AppendRequest) ProtoMessage()

func (*AppendRequest) ProtoReflect

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

func (*AppendRequest) Reset

func (x *AppendRequest) Reset()

func (*AppendRequest) String

func (x *AppendRequest) String() string

func (*AppendRequest) Validate

func (m *AppendRequest) Validate() error

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

func (m *AppendRequest) ValidateAll() error

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

type AppendRequestMultiError

type AppendRequestMultiError []error

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

func (AppendRequestMultiError) AllErrors

func (m AppendRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppendRequestMultiError) Error

func (m AppendRequestMultiError) Error() string

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

type AppendRequestValidationError

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

AppendRequestValidationError is the validation error returned by AppendRequest.Validate if the designated constraints aren't met.

func (AppendRequestValidationError) Cause

Cause function returns cause value.

func (AppendRequestValidationError) Error

Error satisfies the builtin error interface

func (AppendRequestValidationError) ErrorName

func (e AppendRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AppendRequestValidationError) Field

Field function returns field value.

func (AppendRequestValidationError) Key

Key function returns key value.

func (AppendRequestValidationError) Reason

Reason function returns reason value.

type AppendResponse

type AppendResponse struct {

	// UUID corresponding to the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Timestamp of the update
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

AppendResponse is the response to append a value to a feature value.

func (*AppendResponse) Descriptor deprecated

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

Deprecated: Use AppendResponse.ProtoReflect.Descriptor instead.

func (*AppendResponse) GetTimestamp

func (x *AppendResponse) GetTimestamp() *timestamppb.Timestamp

func (*AppendResponse) GetUuid

func (x *AppendResponse) GetUuid() string

func (*AppendResponse) ProtoMessage

func (*AppendResponse) ProtoMessage()

func (*AppendResponse) ProtoReflect

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

func (*AppendResponse) Reset

func (x *AppendResponse) Reset()

func (*AppendResponse) String

func (x *AppendResponse) String() string

func (*AppendResponse) Validate

func (m *AppendResponse) Validate() error

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

func (m *AppendResponse) ValidateAll() error

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

type AppendResponseMultiError

type AppendResponseMultiError []error

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

func (AppendResponseMultiError) AllErrors

func (m AppendResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AppendResponseMultiError) Error

func (m AppendResponseMultiError) Error() string

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

type AppendResponseValidationError

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

AppendResponseValidationError is the validation error returned by AppendResponse.Validate if the designated constraints aren't met.

func (AppendResponseValidationError) Cause

Cause function returns cause value.

func (AppendResponseValidationError) Error

Error satisfies the builtin error interface

func (AppendResponseValidationError) ErrorName

func (e AppendResponseValidationError) ErrorName() string

ErrorName returns error name.

func (AppendResponseValidationError) Field

Field function returns field value.

func (AppendResponseValidationError) Key

Key function returns key value.

func (AppendResponseValidationError) Reason

Reason function returns reason value.

type EngineServiceClient

type EngineServiceClient interface {
	// FeatureDescriptor returns the feature descriptor for the given selector.
	FeatureDescriptor(ctx context.Context, in *FeatureDescriptorRequest, opts ...grpc.CallOption) (*FeatureDescriptorResponse, error)
	// Get returns the feature value or model prediction for the given selector.
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	// Set sets the feature value for the given selector.
	Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*SetResponse, error)
	// Append appends the given value to the feature value for the given selector.
	Append(ctx context.Context, in *AppendRequest, opts ...grpc.CallOption) (*AppendResponse, error)
	// Incr increments the feature value for the given selector.
	Incr(ctx context.Context, in *IncrRequest, opts ...grpc.CallOption) (*IncrResponse, error)
	// Update updates the feature value for the given selector.
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
}

EngineServiceClient is the client API for EngineService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EngineServiceServer

type EngineServiceServer interface {
	// FeatureDescriptor returns the feature descriptor for the given selector.
	FeatureDescriptor(context.Context, *FeatureDescriptorRequest) (*FeatureDescriptorResponse, error)
	// Get returns the feature value or model prediction for the given selector.
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// Set sets the feature value for the given selector.
	Set(context.Context, *SetRequest) (*SetResponse, error)
	// Append appends the given value to the feature value for the given selector.
	Append(context.Context, *AppendRequest) (*AppendResponse, error)
	// Incr increments the feature value for the given selector.
	Incr(context.Context, *IncrRequest) (*IncrResponse, error)
	// Update updates the feature value for the given selector.
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
}

EngineServiceServer is the server API for EngineService service. All implementations should embed UnimplementedEngineServiceServer for forward compatibility

type FeatureDescriptor

type FeatureDescriptor struct {
	Fqn          string               `protobuf:"bytes,1,opt,name=fqn,proto3" json:"fqn,omitempty"`
	Primitive    Primitive            `protobuf:"varint,2,opt,name=primitive,proto3,enum=core.v1alpha1.Primitive" json:"primitive,omitempty"`
	Aggr         []AggrFn             `protobuf:"varint,3,rep,packed,name=aggr,proto3,enum=core.v1alpha1.AggrFn" json:"aggr,omitempty"`
	Freshness    *durationpb.Duration `protobuf:"bytes,4,opt,name=freshness,proto3" json:"freshness,omitempty"`
	Staleness    *durationpb.Duration `protobuf:"bytes,5,opt,name=staleness,proto3" json:"staleness,omitempty"`
	Timeout      *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	KeepPrevious *KeepPrevious        `protobuf:"bytes,7,opt,name=keep_previous,json=keepPrevious,proto3,oneof" json:"keep_previous,omitempty"`
	Keys         []string             `protobuf:"bytes,8,rep,name=keys,proto3" json:"keys,omitempty"`
	Builder      string               `protobuf:"bytes,15,opt,name=builder,proto3" json:"builder,omitempty"`
	DataSource   string               `protobuf:"bytes,16,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
	RuntimeEnv   string               `protobuf:"bytes,17,opt,name=runtime_env,json=runtimeEnv,proto3" json:"runtime_env,omitempty"`
	// contains filtered or unexported fields
}

func (*FeatureDescriptor) Descriptor deprecated

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

Deprecated: Use FeatureDescriptor.ProtoReflect.Descriptor instead.

func (*FeatureDescriptor) GetAggr

func (x *FeatureDescriptor) GetAggr() []AggrFn

func (*FeatureDescriptor) GetBuilder

func (x *FeatureDescriptor) GetBuilder() string

func (*FeatureDescriptor) GetDataSource

func (x *FeatureDescriptor) GetDataSource() string

func (*FeatureDescriptor) GetFqn

func (x *FeatureDescriptor) GetFqn() string

func (*FeatureDescriptor) GetFreshness

func (x *FeatureDescriptor) GetFreshness() *durationpb.Duration

func (*FeatureDescriptor) GetKeepPrevious

func (x *FeatureDescriptor) GetKeepPrevious() *KeepPrevious

func (*FeatureDescriptor) GetKeys

func (x *FeatureDescriptor) GetKeys() []string

func (*FeatureDescriptor) GetPrimitive

func (x *FeatureDescriptor) GetPrimitive() Primitive

func (*FeatureDescriptor) GetRuntimeEnv

func (x *FeatureDescriptor) GetRuntimeEnv() string

func (*FeatureDescriptor) GetStaleness

func (x *FeatureDescriptor) GetStaleness() *durationpb.Duration

func (*FeatureDescriptor) GetTimeout

func (x *FeatureDescriptor) GetTimeout() *durationpb.Duration

func (*FeatureDescriptor) ProtoMessage

func (*FeatureDescriptor) ProtoMessage()

func (*FeatureDescriptor) ProtoReflect

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

func (*FeatureDescriptor) Reset

func (x *FeatureDescriptor) Reset()

func (*FeatureDescriptor) String

func (x *FeatureDescriptor) String() string

func (*FeatureDescriptor) Validate

func (m *FeatureDescriptor) Validate() error

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

func (m *FeatureDescriptor) ValidateAll() error

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

type FeatureDescriptorMultiError

type FeatureDescriptorMultiError []error

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

func (FeatureDescriptorMultiError) AllErrors

func (m FeatureDescriptorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FeatureDescriptorMultiError) Error

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

type FeatureDescriptorRequest

type FeatureDescriptorRequest struct {

	// UUID of the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Selector of the feature
	Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
	// contains filtered or unexported fields
}

FeatureDescriptorRequest is the request to get a feature descriptor.

func (*FeatureDescriptorRequest) Descriptor deprecated

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

Deprecated: Use FeatureDescriptorRequest.ProtoReflect.Descriptor instead.

func (*FeatureDescriptorRequest) GetSelector

func (x *FeatureDescriptorRequest) GetSelector() string

func (*FeatureDescriptorRequest) GetUuid

func (x *FeatureDescriptorRequest) GetUuid() string

func (*FeatureDescriptorRequest) ProtoMessage

func (*FeatureDescriptorRequest) ProtoMessage()

func (*FeatureDescriptorRequest) ProtoReflect

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

func (*FeatureDescriptorRequest) Reset

func (x *FeatureDescriptorRequest) Reset()

func (*FeatureDescriptorRequest) String

func (x *FeatureDescriptorRequest) String() string

func (*FeatureDescriptorRequest) Validate

func (m *FeatureDescriptorRequest) Validate() error

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

func (m *FeatureDescriptorRequest) ValidateAll() error

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

type FeatureDescriptorRequestMultiError

type FeatureDescriptorRequestMultiError []error

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

func (FeatureDescriptorRequestMultiError) AllErrors

func (m FeatureDescriptorRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FeatureDescriptorRequestMultiError) Error

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

type FeatureDescriptorRequestValidationError

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

FeatureDescriptorRequestValidationError is the validation error returned by FeatureDescriptorRequest.Validate if the designated constraints aren't met.

func (FeatureDescriptorRequestValidationError) Cause

Cause function returns cause value.

func (FeatureDescriptorRequestValidationError) Error

Error satisfies the builtin error interface

func (FeatureDescriptorRequestValidationError) ErrorName

ErrorName returns error name.

func (FeatureDescriptorRequestValidationError) Field

Field function returns field value.

func (FeatureDescriptorRequestValidationError) Key

Key function returns key value.

func (FeatureDescriptorRequestValidationError) Reason

Reason function returns reason value.

type FeatureDescriptorResponse

type FeatureDescriptorResponse struct {

	// UUID corresponding to the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Feature descriptor
	FeatureDescriptor *FeatureDescriptor `protobuf:"bytes,2,opt,name=feature_descriptor,json=featureDescriptor,proto3" json:"feature_descriptor,omitempty"`
	// contains filtered or unexported fields
}

FeatureDescriptorResponse is the response to get a feature descriptor.

func (*FeatureDescriptorResponse) Descriptor deprecated

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

Deprecated: Use FeatureDescriptorResponse.ProtoReflect.Descriptor instead.

func (*FeatureDescriptorResponse) GetFeatureDescriptor

func (x *FeatureDescriptorResponse) GetFeatureDescriptor() *FeatureDescriptor

func (*FeatureDescriptorResponse) GetUuid

func (x *FeatureDescriptorResponse) GetUuid() string

func (*FeatureDescriptorResponse) ProtoMessage

func (*FeatureDescriptorResponse) ProtoMessage()

func (*FeatureDescriptorResponse) ProtoReflect

func (*FeatureDescriptorResponse) Reset

func (x *FeatureDescriptorResponse) Reset()

func (*FeatureDescriptorResponse) String

func (x *FeatureDescriptorResponse) String() string

func (*FeatureDescriptorResponse) Validate

func (m *FeatureDescriptorResponse) Validate() error

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

func (m *FeatureDescriptorResponse) ValidateAll() error

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

type FeatureDescriptorResponseMultiError

type FeatureDescriptorResponseMultiError []error

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

func (FeatureDescriptorResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FeatureDescriptorResponseMultiError) Error

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

type FeatureDescriptorResponseValidationError

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

FeatureDescriptorResponseValidationError is the validation error returned by FeatureDescriptorResponse.Validate if the designated constraints aren't met.

func (FeatureDescriptorResponseValidationError) Cause

Cause function returns cause value.

func (FeatureDescriptorResponseValidationError) Error

Error satisfies the builtin error interface

func (FeatureDescriptorResponseValidationError) ErrorName

ErrorName returns error name.

func (FeatureDescriptorResponseValidationError) Field

Field function returns field value.

func (FeatureDescriptorResponseValidationError) Key

Key function returns key value.

func (FeatureDescriptorResponseValidationError) Reason

Reason function returns reason value.

type FeatureDescriptorValidationError

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

FeatureDescriptorValidationError is the validation error returned by FeatureDescriptor.Validate if the designated constraints aren't met.

func (FeatureDescriptorValidationError) Cause

Cause function returns cause value.

func (FeatureDescriptorValidationError) Error

Error satisfies the builtin error interface

func (FeatureDescriptorValidationError) ErrorName

ErrorName returns error name.

func (FeatureDescriptorValidationError) Field

Field function returns field value.

func (FeatureDescriptorValidationError) Key

Key function returns key value.

func (FeatureDescriptorValidationError) Reason

Reason function returns reason value.

type FeatureValue

type FeatureValue struct {
	Fqn       string                 `protobuf:"bytes,1,opt,name=fqn,proto3" json:"fqn,omitempty"`
	Keys      map[string]string      `` /* 149-byte string literal not displayed */
	Value     *Value                 `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Fresh     bool                   `protobuf:"varint,5,opt,name=fresh,proto3" json:"fresh,omitempty"`
	// contains filtered or unexported fields
}

func (*FeatureValue) Descriptor deprecated

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

Deprecated: Use FeatureValue.ProtoReflect.Descriptor instead.

func (*FeatureValue) GetFqn

func (x *FeatureValue) GetFqn() string

func (*FeatureValue) GetFresh

func (x *FeatureValue) GetFresh() bool

func (*FeatureValue) GetKeys

func (x *FeatureValue) GetKeys() map[string]string

func (*FeatureValue) GetTimestamp

func (x *FeatureValue) GetTimestamp() *timestamppb.Timestamp

func (*FeatureValue) GetValue

func (x *FeatureValue) GetValue() *Value

func (*FeatureValue) ProtoMessage

func (*FeatureValue) ProtoMessage()

func (*FeatureValue) ProtoReflect

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

func (*FeatureValue) Reset

func (x *FeatureValue) Reset()

func (*FeatureValue) String

func (x *FeatureValue) String() string

func (*FeatureValue) Validate

func (m *FeatureValue) Validate() error

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

func (m *FeatureValue) ValidateAll() error

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

type FeatureValueMultiError

type FeatureValueMultiError []error

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

func (FeatureValueMultiError) AllErrors

func (m FeatureValueMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FeatureValueMultiError) Error

func (m FeatureValueMultiError) Error() string

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

type FeatureValueValidationError

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

FeatureValueValidationError is the validation error returned by FeatureValue.Validate if the designated constraints aren't met.

func (FeatureValueValidationError) Cause

Cause function returns cause value.

func (FeatureValueValidationError) Error

Error satisfies the builtin error interface

func (FeatureValueValidationError) ErrorName

func (e FeatureValueValidationError) ErrorName() string

ErrorName returns error name.

func (FeatureValueValidationError) Field

Field function returns field value.

func (FeatureValueValidationError) Key

Key function returns key value.

func (FeatureValueValidationError) Reason

Reason function returns reason value.

type GetRequest

type GetRequest struct {

	// UUID of the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Selector of the feature
	Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
	// Keys of the feature
	Keys map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

GetRequest is the request to get a feature value.

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetKeys

func (x *GetRequest) GetKeys() map[string]string

func (*GetRequest) GetSelector

func (x *GetRequest) GetSelector() string

func (*GetRequest) GetUuid

func (x *GetRequest) GetUuid() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

func (*GetRequest) Validate

func (m *GetRequest) Validate() error

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

func (m *GetRequest) ValidateAll() error

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

type GetRequestMultiError

type GetRequestMultiError []error

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

func (GetRequestMultiError) AllErrors

func (m GetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetRequestMultiError) Error

func (m GetRequestMultiError) Error() string

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

type GetRequestValidationError

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

GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.

func (GetRequestValidationError) Cause

func (e GetRequestValidationError) Cause() error

Cause function returns cause value.

func (GetRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRequestValidationError) ErrorName

func (e GetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRequestValidationError) Field

Field function returns field value.

func (GetRequestValidationError) Key

Key function returns key value.

func (GetRequestValidationError) Reason

func (e GetRequestValidationError) Reason() string

Reason function returns reason value.

type GetResponse

type GetResponse struct {

	// UUID corresponding to the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Feature value
	Value *FeatureValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// Feature descriptor
	FeatureDescriptor *FeatureDescriptor `protobuf:"bytes,3,opt,name=feature_descriptor,json=featureDescriptor,proto3" json:"feature_descriptor,omitempty"`
	// contains filtered or unexported fields
}

GetResponse is the response to get a feature value.

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetFeatureDescriptor

func (x *GetResponse) GetFeatureDescriptor() *FeatureDescriptor

func (*GetResponse) GetUuid

func (x *GetResponse) GetUuid() string

func (*GetResponse) GetValue

func (x *GetResponse) GetValue() *FeatureValue

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

func (*GetResponse) Validate

func (m *GetResponse) Validate() error

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

func (m *GetResponse) ValidateAll() error

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

type GetResponseMultiError

type GetResponseMultiError []error

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

func (GetResponseMultiError) AllErrors

func (m GetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetResponseMultiError) Error

func (m GetResponseMultiError) Error() string

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

type GetResponseValidationError

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

GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.

func (GetResponseValidationError) Cause

Cause function returns cause value.

func (GetResponseValidationError) Error

Error satisfies the builtin error interface

func (GetResponseValidationError) ErrorName

func (e GetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetResponseValidationError) Field

Field function returns field value.

func (GetResponseValidationError) Key

Key function returns key value.

func (GetResponseValidationError) Reason

Reason function returns reason value.

type IncrRequest

type IncrRequest struct {

	// UUID of the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Selector of the feature
	Fqn string `protobuf:"bytes,2,opt,name=fqn,proto3" json:"fqn,omitempty"`
	// Keys of the feature
	Keys map[string]string `` /* 149-byte string literal not displayed */
	// Value to increment by
	Value *Scalar `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// Timestamp of the update
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

IncrRequest is the request to atomic-increment a feature value.

func (*IncrRequest) Descriptor deprecated

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

Deprecated: Use IncrRequest.ProtoReflect.Descriptor instead.

func (*IncrRequest) GetFqn

func (x *IncrRequest) GetFqn() string

func (*IncrRequest) GetKeys

func (x *IncrRequest) GetKeys() map[string]string

func (*IncrRequest) GetTimestamp

func (x *IncrRequest) GetTimestamp() *timestamppb.Timestamp

func (*IncrRequest) GetUuid

func (x *IncrRequest) GetUuid() string

func (*IncrRequest) GetValue

func (x *IncrRequest) GetValue() *Scalar

func (*IncrRequest) ProtoMessage

func (*IncrRequest) ProtoMessage()

func (*IncrRequest) ProtoReflect

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

func (*IncrRequest) Reset

func (x *IncrRequest) Reset()

func (*IncrRequest) String

func (x *IncrRequest) String() string

func (*IncrRequest) Validate

func (m *IncrRequest) Validate() error

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

func (m *IncrRequest) ValidateAll() error

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

type IncrRequestMultiError

type IncrRequestMultiError []error

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

func (IncrRequestMultiError) AllErrors

func (m IncrRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IncrRequestMultiError) Error

func (m IncrRequestMultiError) Error() string

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

type IncrRequestValidationError

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

IncrRequestValidationError is the validation error returned by IncrRequest.Validate if the designated constraints aren't met.

func (IncrRequestValidationError) Cause

Cause function returns cause value.

func (IncrRequestValidationError) Error

Error satisfies the builtin error interface

func (IncrRequestValidationError) ErrorName

func (e IncrRequestValidationError) ErrorName() string

ErrorName returns error name.

func (IncrRequestValidationError) Field

Field function returns field value.

func (IncrRequestValidationError) Key

Key function returns key value.

func (IncrRequestValidationError) Reason

Reason function returns reason value.

type IncrResponse

type IncrResponse struct {

	// UUID corresponding to the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Timestamp of the update
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

IncrResponse is the response to atomic-increment a feature value.

func (*IncrResponse) Descriptor deprecated

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

Deprecated: Use IncrResponse.ProtoReflect.Descriptor instead.

func (*IncrResponse) GetTimestamp

func (x *IncrResponse) GetTimestamp() *timestamppb.Timestamp

func (*IncrResponse) GetUuid

func (x *IncrResponse) GetUuid() string

func (*IncrResponse) ProtoMessage

func (*IncrResponse) ProtoMessage()

func (*IncrResponse) ProtoReflect

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

func (*IncrResponse) Reset

func (x *IncrResponse) Reset()

func (*IncrResponse) String

func (x *IncrResponse) String() string

func (*IncrResponse) Validate

func (m *IncrResponse) Validate() error

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

func (m *IncrResponse) ValidateAll() error

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

type IncrResponseMultiError

type IncrResponseMultiError []error

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

func (IncrResponseMultiError) AllErrors

func (m IncrResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IncrResponseMultiError) Error

func (m IncrResponseMultiError) Error() string

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

type IncrResponseValidationError

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

IncrResponseValidationError is the validation error returned by IncrResponse.Validate if the designated constraints aren't met.

func (IncrResponseValidationError) Cause

Cause function returns cause value.

func (IncrResponseValidationError) Error

Error satisfies the builtin error interface

func (IncrResponseValidationError) ErrorName

func (e IncrResponseValidationError) ErrorName() string

ErrorName returns error name.

func (IncrResponseValidationError) Field

Field function returns field value.

func (IncrResponseValidationError) Key

Key function returns key value.

func (IncrResponseValidationError) Reason

Reason function returns reason value.

type KeepPrevious

type KeepPrevious struct {
	Versions uint32               `protobuf:"varint,1,opt,name=versions,proto3" json:"versions,omitempty"`
	Over     *durationpb.Duration `protobuf:"bytes,2,opt,name=over,proto3" json:"over,omitempty"`
	// contains filtered or unexported fields
}

func (*KeepPrevious) Descriptor deprecated

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

Deprecated: Use KeepPrevious.ProtoReflect.Descriptor instead.

func (*KeepPrevious) GetOver

func (x *KeepPrevious) GetOver() *durationpb.Duration

func (*KeepPrevious) GetVersions

func (x *KeepPrevious) GetVersions() uint32

func (*KeepPrevious) ProtoMessage

func (*KeepPrevious) ProtoMessage()

func (*KeepPrevious) ProtoReflect

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

func (*KeepPrevious) Reset

func (x *KeepPrevious) Reset()

func (*KeepPrevious) String

func (x *KeepPrevious) String() string

func (*KeepPrevious) Validate

func (m *KeepPrevious) Validate() error

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

func (m *KeepPrevious) ValidateAll() error

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

type KeepPreviousMultiError

type KeepPreviousMultiError []error

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

func (KeepPreviousMultiError) AllErrors

func (m KeepPreviousMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (KeepPreviousMultiError) Error

func (m KeepPreviousMultiError) Error() string

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

type KeepPreviousValidationError

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

KeepPreviousValidationError is the validation error returned by KeepPrevious.Validate if the designated constraints aren't met.

func (KeepPreviousValidationError) Cause

Cause function returns cause value.

func (KeepPreviousValidationError) Error

Error satisfies the builtin error interface

func (KeepPreviousValidationError) ErrorName

func (e KeepPreviousValidationError) ErrorName() string

ErrorName returns error name.

func (KeepPreviousValidationError) Field

Field function returns field value.

func (KeepPreviousValidationError) Key

Key function returns key value.

func (KeepPreviousValidationError) Reason

Reason function returns reason value.

type List

type List struct {
	Values []*Scalar `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*List) Descriptor deprecated

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

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) GetValues

func (x *List) GetValues() []*Scalar

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) ProtoReflect

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

func (*List) Reset

func (x *List) Reset()

func (*List) String

func (x *List) String() string

func (*List) Validate

func (m *List) Validate() error

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

func (m *List) ValidateAll() error

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

type ListMultiError

type ListMultiError []error

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

func (ListMultiError) AllErrors

func (m ListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListMultiError) Error

func (m ListMultiError) Error() string

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

type ListValidationError

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

ListValidationError is the validation error returned by List.Validate if the designated constraints aren't met.

func (ListValidationError) Cause

func (e ListValidationError) Cause() error

Cause function returns cause value.

func (ListValidationError) Error

func (e ListValidationError) Error() string

Error satisfies the builtin error interface

func (ListValidationError) ErrorName

func (e ListValidationError) ErrorName() string

ErrorName returns error name.

func (ListValidationError) Field

func (e ListValidationError) Field() string

Field function returns field value.

func (ListValidationError) Key

func (e ListValidationError) Key() bool

Key function returns key value.

func (ListValidationError) Reason

func (e ListValidationError) Reason() string

Reason function returns reason value.

type ObjectReference

type ObjectReference struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectReference) Descriptor deprecated

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

Deprecated: Use ObjectReference.ProtoReflect.Descriptor instead.

func (*ObjectReference) GetName

func (x *ObjectReference) GetName() string

func (*ObjectReference) GetNamespace

func (x *ObjectReference) GetNamespace() 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 Primitive

type Primitive int32
const (
	Primitive_PRIMITIVE_UNSPECIFIED Primitive = 0
	Primitive_PRIMITIVE_STRING      Primitive = 1
	Primitive_PRIMITIVE_INTEGER     Primitive = 2
	Primitive_PRIMITIVE_FLOAT       Primitive = 3
	Primitive_PRIMITIVE_BOOL        Primitive = 4
	Primitive_PRIMITIVE_TIMESTAMP   Primitive = 5
	// 6-9 Reserved for future use.
	Primitive_PRIMITIVE_STRING_LIST    Primitive = 10
	Primitive_PRIMITIVE_INTEGER_LIST   Primitive = 11
	Primitive_PRIMITIVE_FLOAT_LIST     Primitive = 12
	Primitive_PRIMITIVE_BOOL_LIST      Primitive = 13
	Primitive_PRIMITIVE_TIMESTAMP_LIST Primitive = 14
)

func (Primitive) Descriptor

func (Primitive) Descriptor() protoreflect.EnumDescriptor

func (Primitive) Enum

func (x Primitive) Enum() *Primitive

func (Primitive) EnumDescriptor deprecated

func (Primitive) EnumDescriptor() ([]byte, []int)

Deprecated: Use Primitive.Descriptor instead.

func (Primitive) Number

func (x Primitive) Number() protoreflect.EnumNumber

func (Primitive) String

func (x Primitive) String() string

func (Primitive) Type

type Scalar

type Scalar struct {

	// Types that are assignable to Value:
	//
	//	*Scalar_StringValue
	//	*Scalar_IntValue
	//	*Scalar_FloatValue
	//	*Scalar_BoolValue
	//	*Scalar_TimestampValue
	Value isScalar_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Scalar) Descriptor deprecated

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

Deprecated: Use Scalar.ProtoReflect.Descriptor instead.

func (*Scalar) GetBoolValue

func (x *Scalar) GetBoolValue() bool

func (*Scalar) GetFloatValue

func (x *Scalar) GetFloatValue() float64

func (*Scalar) GetIntValue

func (x *Scalar) GetIntValue() int32

func (*Scalar) GetStringValue

func (x *Scalar) GetStringValue() string

func (*Scalar) GetTimestampValue

func (x *Scalar) GetTimestampValue() *timestamppb.Timestamp

func (*Scalar) GetValue

func (m *Scalar) GetValue() isScalar_Value

func (*Scalar) ProtoMessage

func (*Scalar) ProtoMessage()

func (*Scalar) ProtoReflect

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

func (*Scalar) Reset

func (x *Scalar) Reset()

func (*Scalar) String

func (x *Scalar) String() string

func (*Scalar) Validate

func (m *Scalar) Validate() error

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

func (m *Scalar) ValidateAll() error

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

type ScalarMultiError

type ScalarMultiError []error

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

func (ScalarMultiError) AllErrors

func (m ScalarMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ScalarMultiError) Error

func (m ScalarMultiError) Error() string

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

type ScalarValidationError

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

ScalarValidationError is the validation error returned by Scalar.Validate if the designated constraints aren't met.

func (ScalarValidationError) Cause

func (e ScalarValidationError) Cause() error

Cause function returns cause value.

func (ScalarValidationError) Error

func (e ScalarValidationError) Error() string

Error satisfies the builtin error interface

func (ScalarValidationError) ErrorName

func (e ScalarValidationError) ErrorName() string

ErrorName returns error name.

func (ScalarValidationError) Field

func (e ScalarValidationError) Field() string

Field function returns field value.

func (ScalarValidationError) Key

func (e ScalarValidationError) Key() bool

Key function returns key value.

func (ScalarValidationError) Reason

func (e ScalarValidationError) Reason() string

Reason function returns reason value.

type Scalar_BoolValue

type Scalar_BoolValue struct {
	BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"`
}

type Scalar_FloatValue

type Scalar_FloatValue struct {
	FloatValue float64 `protobuf:"fixed64,3,opt,name=float_value,json=floatValue,proto3,oneof"`
}

type Scalar_IntValue

type Scalar_IntValue struct {
	IntValue int32 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}

type Scalar_StringValue

type Scalar_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Scalar_TimestampValue

type Scalar_TimestampValue struct {
	TimestampValue *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp_value,json=timestampValue,proto3,oneof"`
}

type SetRequest

type SetRequest struct {

	// UUID of the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Selector of the feature
	Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
	// Keys of the feature
	Keys map[string]string `` /* 149-byte string literal not displayed */
	// Value to set
	Value *Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// Timestamp of the update
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

SetRequest is the request to set a feature value.

func (*SetRequest) Descriptor deprecated

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

Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.

func (*SetRequest) GetKeys

func (x *SetRequest) GetKeys() map[string]string

func (*SetRequest) GetSelector

func (x *SetRequest) GetSelector() string

func (*SetRequest) GetTimestamp

func (x *SetRequest) GetTimestamp() *timestamppb.Timestamp

func (*SetRequest) GetUuid

func (x *SetRequest) GetUuid() string

func (*SetRequest) GetValue

func (x *SetRequest) GetValue() *Value

func (*SetRequest) ProtoMessage

func (*SetRequest) ProtoMessage()

func (*SetRequest) ProtoReflect

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

func (*SetRequest) Reset

func (x *SetRequest) Reset()

func (*SetRequest) String

func (x *SetRequest) String() string

func (*SetRequest) Validate

func (m *SetRequest) Validate() error

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

func (m *SetRequest) ValidateAll() error

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

type SetRequestMultiError

type SetRequestMultiError []error

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

func (SetRequestMultiError) AllErrors

func (m SetRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetRequestMultiError) Error

func (m SetRequestMultiError) Error() string

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

type SetRequestValidationError

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

SetRequestValidationError is the validation error returned by SetRequest.Validate if the designated constraints aren't met.

func (SetRequestValidationError) Cause

func (e SetRequestValidationError) Cause() error

Cause function returns cause value.

func (SetRequestValidationError) Error

Error satisfies the builtin error interface

func (SetRequestValidationError) ErrorName

func (e SetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SetRequestValidationError) Field

Field function returns field value.

func (SetRequestValidationError) Key

Key function returns key value.

func (SetRequestValidationError) Reason

func (e SetRequestValidationError) Reason() string

Reason function returns reason value.

type SetResponse

type SetResponse struct {

	// UUID corresponding to the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Timestamp of the update
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

SetResponse is the response to set a feature value.

func (*SetResponse) Descriptor deprecated

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

Deprecated: Use SetResponse.ProtoReflect.Descriptor instead.

func (*SetResponse) GetTimestamp

func (x *SetResponse) GetTimestamp() *timestamppb.Timestamp

func (*SetResponse) GetUuid

func (x *SetResponse) GetUuid() string

func (*SetResponse) ProtoMessage

func (*SetResponse) ProtoMessage()

func (*SetResponse) ProtoReflect

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

func (*SetResponse) Reset

func (x *SetResponse) Reset()

func (*SetResponse) String

func (x *SetResponse) String() string

func (*SetResponse) Validate

func (m *SetResponse) Validate() error

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

func (m *SetResponse) ValidateAll() error

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

type SetResponseMultiError

type SetResponseMultiError []error

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

func (SetResponseMultiError) AllErrors

func (m SetResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetResponseMultiError) Error

func (m SetResponseMultiError) Error() string

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

type SetResponseValidationError

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

SetResponseValidationError is the validation error returned by SetResponse.Validate if the designated constraints aren't met.

func (SetResponseValidationError) Cause

Cause function returns cause value.

func (SetResponseValidationError) Error

Error satisfies the builtin error interface

func (SetResponseValidationError) ErrorName

func (e SetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SetResponseValidationError) Field

Field function returns field value.

func (SetResponseValidationError) Key

Key function returns key value.

func (SetResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedEngineServiceServer

type UnimplementedEngineServiceServer struct {
}

UnimplementedEngineServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedEngineServiceServer) Append

func (UnimplementedEngineServiceServer) FeatureDescriptor

func (UnimplementedEngineServiceServer) Get

func (UnimplementedEngineServiceServer) Incr

func (UnimplementedEngineServiceServer) Set

func (UnimplementedEngineServiceServer) Update

type UnsafeEngineServiceServer

type UnsafeEngineServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEngineServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EngineServiceServer will result in compilation errors.

type UpdateRequest

type UpdateRequest struct {

	// UUID of the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Selector of the feature
	Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"`
	// Keys of the feature
	Keys map[string]string `` /* 149-byte string literal not displayed */
	// Value to update
	Value *Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// Timestamp of the update
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

UpdateRequest is the request to update a feature value.

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetKeys

func (x *UpdateRequest) GetKeys() map[string]string

func (*UpdateRequest) GetSelector

func (x *UpdateRequest) GetSelector() string

func (*UpdateRequest) GetTimestamp

func (x *UpdateRequest) GetTimestamp() *timestamppb.Timestamp

func (*UpdateRequest) GetUuid

func (x *UpdateRequest) GetUuid() string

func (*UpdateRequest) GetValue

func (x *UpdateRequest) GetValue() *Value

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

func (*UpdateRequest) Validate

func (m *UpdateRequest) Validate() error

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

func (m *UpdateRequest) ValidateAll() error

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

type UpdateRequestMultiError

type UpdateRequestMultiError []error

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

func (UpdateRequestMultiError) AllErrors

func (m UpdateRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRequestMultiError) Error

func (m UpdateRequestMultiError) Error() string

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

type UpdateRequestValidationError

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

UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.

func (UpdateRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRequestValidationError) ErrorName

func (e UpdateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRequestValidationError) Field

Field function returns field value.

func (UpdateRequestValidationError) Key

Key function returns key value.

func (UpdateRequestValidationError) Reason

Reason function returns reason value.

type UpdateResponse

type UpdateResponse struct {

	// UUID corresponding to the request
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Timestamp of the update
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

UpdateResponse is the response to update a feature value.

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetTimestamp

func (x *UpdateResponse) GetTimestamp() *timestamppb.Timestamp

func (*UpdateResponse) GetUuid

func (x *UpdateResponse) GetUuid() string

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

func (*UpdateResponse) Validate

func (m *UpdateResponse) Validate() error

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

func (m *UpdateResponse) ValidateAll() error

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

type UpdateResponseMultiError

type UpdateResponseMultiError []error

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

func (UpdateResponseMultiError) AllErrors

func (m UpdateResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateResponseMultiError) Error

func (m UpdateResponseMultiError) Error() string

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

type UpdateResponseValidationError

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

UpdateResponseValidationError is the validation error returned by UpdateResponse.Validate if the designated constraints aren't met.

func (UpdateResponseValidationError) Cause

Cause function returns cause value.

func (UpdateResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateResponseValidationError) ErrorName

func (e UpdateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateResponseValidationError) Field

Field function returns field value.

func (UpdateResponseValidationError) Key

Key function returns key value.

func (UpdateResponseValidationError) Reason

Reason function returns reason value.

type Value

type Value struct {

	// Types that are assignable to Value:
	//
	//	*Value_ScalarValue
	//	*Value_ListValue
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetListValue

func (x *Value) GetListValue() *List

func (*Value) GetScalarValue

func (x *Value) GetScalarValue() *Scalar

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

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_ListValue

type Value_ListValue struct {
	ListValue *List `protobuf:"bytes,2,opt,name=list_value,json=listValue,proto3,oneof"`
}

type Value_ScalarValue

type Value_ScalarValue struct {
	ScalarValue *Scalar `protobuf:"bytes,1,opt,name=scalar_value,json=scalarValue,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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