v1

package
v0.5.545 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_metaprov_modelaapi_services_onlinefeaturestored_v1_onlinefeaturestored_proto protoreflect.FileDescriptor
View Source
var OnlineFeatureStoreService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.onlinefeaturestored.v1.OnlineFeatureStoreService",
	HandlerType: (*OnlineFeatureStoreServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "OnlineGet",
			Handler:    _OnlineFeatureStoreService_OnlineGet_Handler,
		},
		{
			MethodName: "Push",
			Handler:    _OnlineFeatureStoreService_Push_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/onlinefeaturestored/v1/onlinefeaturestored.proto",
}

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

Functions

func RegisterOnlineFeatureStoreServiceServer

func RegisterOnlineFeatureStoreServiceServer(s grpc.ServiceRegistrar, srv OnlineFeatureStoreServiceServer)

Types

type FGFields added in v0.5.347

type FGFields struct {
	Key      string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`           // the name of the feature group
	Keyvalue string   `protobuf:"bytes,2,opt,name=keyvalue,proto3" json:"keyvalue,omitempty"` // the name of the feature group
	Features []string `protobuf:"bytes,3,rep,name=features,proto3" json:"features,omitempty"` // all the features in the feature group
	// contains filtered or unexported fields
}

func (*FGFields) Descriptor deprecated added in v0.5.347

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

Deprecated: Use FGFields.ProtoReflect.Descriptor instead.

func (*FGFields) GetFeatures added in v0.5.347

func (x *FGFields) GetFeatures() []string

func (*FGFields) GetKey added in v0.5.347

func (x *FGFields) GetKey() string

func (*FGFields) GetKeyvalue added in v0.5.347

func (x *FGFields) GetKeyvalue() string

func (*FGFields) ProtoMessage added in v0.5.347

func (*FGFields) ProtoMessage()

func (*FGFields) ProtoReflect added in v0.5.347

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

func (*FGFields) Reset added in v0.5.347

func (x *FGFields) Reset()

func (*FGFields) String added in v0.5.347

func (x *FGFields) String() string

type GetRow added in v0.5.343

type GetRow struct {
	Groups []*FGFields `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRow) Descriptor deprecated added in v0.5.343

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

Deprecated: Use GetRow.ProtoReflect.Descriptor instead.

func (*GetRow) GetGroups added in v0.5.347

func (x *GetRow) GetGroups() []*FGFields

func (*GetRow) ProtoMessage added in v0.5.343

func (*GetRow) ProtoMessage()

func (*GetRow) ProtoReflect added in v0.5.343

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

func (*GetRow) Reset added in v0.5.343

func (x *GetRow) Reset()

func (*GetRow) String added in v0.5.343

func (x *GetRow) String() string

type GetRowResult added in v0.5.347

type GetRowResult struct {
	Keyname string            `protobuf:"bytes,1,opt,name=keyname,proto3" json:"keyname,omitempty"`
	Key     string            `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Values  map[string]*Value `` // for each feature, return its value
	/* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetRowResult) Descriptor deprecated added in v0.5.347

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

Deprecated: Use GetRowResult.ProtoReflect.Descriptor instead.

func (*GetRowResult) GetKey added in v0.5.347

func (x *GetRowResult) GetKey() string

func (*GetRowResult) GetKeyname added in v0.5.347

func (x *GetRowResult) GetKeyname() string

func (*GetRowResult) GetValues added in v0.5.347

func (x *GetRowResult) GetValues() map[string]*Value

func (*GetRowResult) ProtoMessage added in v0.5.347

func (*GetRowResult) ProtoMessage()

func (*GetRowResult) ProtoReflect added in v0.5.347

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

func (*GetRowResult) Reset added in v0.5.347

func (x *GetRowResult) Reset()

func (*GetRowResult) String added in v0.5.347

func (x *GetRowResult) String() string

type OnlineFeatureStoreServiceClient

type OnlineFeatureStoreServiceClient interface {
	OnlineGet(ctx context.Context, in *OnlineGetRequest, opts ...grpc.CallOption) (*OnlineGetResponse, error)
	Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushResponse, error)
}

OnlineFeatureStoreServiceClient is the client API for OnlineFeatureStoreService 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 OnlineFeatureStoreServiceServer

type OnlineFeatureStoreServiceServer interface {
	OnlineGet(context.Context, *OnlineGetRequest) (*OnlineGetResponse, error)
	Push(context.Context, *PushRequest) (*PushResponse, error)
	// contains filtered or unexported methods
}

OnlineFeatureStoreServiceServer is the server API for OnlineFeatureStoreService service. All implementations must embed UnimplementedOnlineFeatureStoreServiceServer for forward compatibility

type OnlineGetRequest added in v0.5.292

type OnlineGetRequest struct {
	Namespace string    `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Rows      []*GetRow `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"` // repeated for multi get
	// contains filtered or unexported fields
}

For real time infernece, ask the store for one row features

func (*OnlineGetRequest) Descriptor deprecated added in v0.5.292

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

Deprecated: Use OnlineGetRequest.ProtoReflect.Descriptor instead.

func (*OnlineGetRequest) GetNamespace added in v0.5.345

func (x *OnlineGetRequest) GetNamespace() string

func (*OnlineGetRequest) GetRows added in v0.5.343

func (x *OnlineGetRequest) GetRows() []*GetRow

func (*OnlineGetRequest) ProtoMessage added in v0.5.292

func (*OnlineGetRequest) ProtoMessage()

func (*OnlineGetRequest) ProtoReflect added in v0.5.292

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

func (*OnlineGetRequest) Reset added in v0.5.292

func (x *OnlineGetRequest) Reset()

func (*OnlineGetRequest) String added in v0.5.292

func (x *OnlineGetRequest) String() string

type OnlineGetResponse added in v0.5.292

type OnlineGetResponse struct {
	Rows []*GetRowResult `protobuf:"bytes,1,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

Answer one row

func (*OnlineGetResponse) Descriptor deprecated added in v0.5.292

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

Deprecated: Use OnlineGetResponse.ProtoReflect.Descriptor instead.

func (*OnlineGetResponse) GetRows added in v0.5.343

func (x *OnlineGetResponse) GetRows() []*GetRowResult

func (*OnlineGetResponse) ProtoMessage added in v0.5.292

func (*OnlineGetResponse) ProtoMessage()

func (*OnlineGetResponse) ProtoReflect added in v0.5.292

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

func (*OnlineGetResponse) Reset added in v0.5.292

func (x *OnlineGetResponse) Reset()

func (*OnlineGetResponse) String added in v0.5.292

func (x *OnlineGetResponse) String() string

type PushRequest added in v0.5.316

type PushRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Rows      []*Row `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

Import data from a location to the online store.

func (*PushRequest) Descriptor deprecated added in v0.5.316

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

Deprecated: Use PushRequest.ProtoReflect.Descriptor instead.

func (*PushRequest) GetNamespace added in v0.5.343

func (x *PushRequest) GetNamespace() string

func (*PushRequest) GetRows added in v0.5.316

func (x *PushRequest) GetRows() []*Row

func (*PushRequest) ProtoMessage added in v0.5.316

func (*PushRequest) ProtoMessage()

func (*PushRequest) ProtoReflect added in v0.5.316

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

func (*PushRequest) Reset added in v0.5.316

func (x *PushRequest) Reset()

func (*PushRequest) String added in v0.5.316

func (x *PushRequest) String() string

type PushResponse added in v0.5.316

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

func (*PushResponse) Descriptor deprecated added in v0.5.316

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

Deprecated: Use PushResponse.ProtoReflect.Descriptor instead.

func (*PushResponse) ProtoMessage added in v0.5.316

func (*PushResponse) ProtoMessage()

func (*PushResponse) ProtoReflect added in v0.5.316

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

func (*PushResponse) Reset added in v0.5.316

func (x *PushResponse) Reset()

func (*PushResponse) String added in v0.5.316

func (x *PushResponse) String() string

type Row added in v0.5.316

type Row struct {
	Keyname string `protobuf:"bytes,1,opt,name=keyname,proto3" json:"keyname,omitempty"`
	Key     string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Field   string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
	Value   string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Row) Descriptor deprecated added in v0.5.316

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

Deprecated: Use Row.ProtoReflect.Descriptor instead.

func (*Row) GetField added in v0.5.343

func (x *Row) GetField() string

func (*Row) GetKey added in v0.5.316

func (x *Row) GetKey() string

func (*Row) GetKeyname added in v0.5.343

func (x *Row) GetKeyname() string

func (*Row) GetValue added in v0.5.343

func (x *Row) GetValue() string

func (*Row) ProtoMessage added in v0.5.316

func (*Row) ProtoMessage()

func (*Row) ProtoReflect added in v0.5.316

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

func (*Row) Reset added in v0.5.316

func (x *Row) Reset()

func (*Row) String added in v0.5.316

func (x *Row) String() string

type UnimplementedOnlineFeatureStoreServiceServer

type UnimplementedOnlineFeatureStoreServiceServer struct {
}

UnimplementedOnlineFeatureStoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOnlineFeatureStoreServiceServer) OnlineGet added in v0.5.292

func (UnimplementedOnlineFeatureStoreServiceServer) Push added in v0.5.316

type UnsafeOnlineFeatureStoreServiceServer added in v0.4.687

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

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

type Value added in v0.5.292

type Value struct {

	// Types that are assignable to Value:
	//	*Value_Int64
	//	*Value_Double
	//	*Value_String_
	//	*Value_Bool
	//	*Value_UnixMilli
	//	*Value_Bytes
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated added in v0.5.292

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBool added in v0.5.292

func (x *Value) GetBool() bool

func (*Value) GetBytes added in v0.5.292

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

func (*Value) GetDouble added in v0.5.292

func (x *Value) GetDouble() float64

func (*Value) GetInt64 added in v0.5.292

func (x *Value) GetInt64() int64

func (*Value) GetString_ added in v0.5.292

func (x *Value) GetString_() string

func (*Value) GetUnixMilli added in v0.5.292

func (x *Value) GetUnixMilli() int64

func (*Value) GetValue added in v0.5.292

func (m *Value) GetValue() isValue_Value

func (*Value) ProtoMessage added in v0.5.292

func (*Value) ProtoMessage()

func (*Value) ProtoReflect added in v0.5.292

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

func (*Value) Reset added in v0.5.292

func (x *Value) Reset()

func (*Value) String added in v0.5.292

func (x *Value) String() string

type Value_Bool added in v0.5.292

type Value_Bool struct {
	Bool bool `protobuf:"varint,4,opt,name=bool,proto3,oneof"`
}

type Value_Bytes added in v0.5.292

type Value_Bytes struct {
	Bytes []byte `protobuf:"bytes,6,opt,name=bytes,proto3,oneof"`
}

type Value_Double added in v0.5.292

type Value_Double struct {
	Double float64 `protobuf:"fixed64,2,opt,name=double,proto3,oneof"`
}

type Value_Int64 added in v0.5.292

type Value_Int64 struct {
	Int64 int64 `protobuf:"varint,1,opt,name=int64,proto3,oneof"`
}

type Value_String_ added in v0.5.292

type Value_String_ struct {
	String_ string `protobuf:"bytes,3,opt,name=string,proto3,oneof"`
}

type Value_UnixMilli added in v0.5.292

type Value_UnixMilli struct {
	UnixMilli int64 `protobuf:"varint,5,opt,name=unix_milli,json=unixMilli,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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