Documentation
¶
Index ¶
- Variables
- func RegisterBatchServer(s grpc.ServiceRegistrar, srv BatchServer)
- type BatchClient
- type BatchPredictModelClassRequest
- func (*BatchPredictModelClassRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchPredictModelClassRequest) GetDatasource() *v1alpha12.DataSource
- func (x *BatchPredictModelClassRequest) GetEntities() []*v1alpha12.Entity
- func (x *BatchPredictModelClassRequest) GetGroups() []*v1alpha12.FeatureGroup
- func (x *BatchPredictModelClassRequest) GetModel() *v1alpha11.Model
- func (x *BatchPredictModelClassRequest) GetModelClass() *v1alpha11.ModelClass
- func (x *BatchPredictModelClassRequest) GetPrediction() *v1alpha1.Prediction
- func (*BatchPredictModelClassRequest) ProtoMessage()
- func (x *BatchPredictModelClassRequest) ProtoReflect() protoreflect.Message
- func (x *BatchPredictModelClassRequest) Reset()
- func (x *BatchPredictModelClassRequest) String() string
- type BatchPredictRequest
- func (*BatchPredictRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchPredictRequest) GetDatasource() *v1alpha12.DataSource
- func (x *BatchPredictRequest) GetModel() *v1alpha11.Model
- func (x *BatchPredictRequest) GetPrediction() *v1alpha1.Prediction
- func (x *BatchPredictRequest) GetTenant() string
- func (*BatchPredictRequest) ProtoMessage()
- func (x *BatchPredictRequest) ProtoReflect() protoreflect.Message
- func (x *BatchPredictRequest) Reset()
- func (x *BatchPredictRequest) String() string
- type BatchPredictResponse
- func (*BatchPredictResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchPredictResponse) GetRows() int32
- func (*BatchPredictResponse) ProtoMessage()
- func (x *BatchPredictResponse) ProtoReflect() protoreflect.Message
- func (x *BatchPredictResponse) Reset()
- func (x *BatchPredictResponse) String() string
- type BatchServer
- type ShutdownRequest
- type ShutdownResponse
- type UnimplementedBatchServer
- func (UnimplementedBatchServer) BatchPredict(context.Context, *BatchPredictRequest) (*BatchPredictResponse, error)
- func (UnimplementedBatchServer) BatchPredictModelClass(context.Context, *BatchPredictModelClassRequest) (*BatchPredictResponse, error)
- func (UnimplementedBatchServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
- type UnsafeBatchServer
Constants ¶
This section is empty.
Variables ¶
var Batch_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.metaprov.modelaapi.services.batchpredictord.v1.Batch", HandlerType: (*BatchServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "BatchPredict", Handler: _Batch_BatchPredict_Handler, }, { MethodName: "BatchPredictModelClass", Handler: _Batch_BatchPredictModelClass_Handler, }, { MethodName: "Shutdown", Handler: _Batch_Shutdown_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/metaprov/modelaapi/services/batchpredictord/v1/batchpredictord.proto", }
Batch_ServiceDesc is the grpc.ServiceDesc for Batch service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_github_com_metaprov_modelaapi_services_batchpredictord_v1_batchpredictord_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBatchServer ¶
func RegisterBatchServer(s grpc.ServiceRegistrar, srv BatchServer)
Types ¶
type BatchClient ¶
type BatchClient interface { BatchPredict(ctx context.Context, in *BatchPredictRequest, opts ...grpc.CallOption) (*BatchPredictResponse, error) BatchPredictModelClass(ctx context.Context, in *BatchPredictModelClassRequest, opts ...grpc.CallOption) (*BatchPredictResponse, error) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) }
BatchClient is the client API for Batch 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.
func NewBatchClient ¶
func NewBatchClient(cc grpc.ClientConnInterface) BatchClient
type BatchPredictModelClassRequest ¶ added in v0.5.628
type BatchPredictModelClassRequest struct { Prediction *v1alpha1.Prediction `protobuf:"bytes,1,opt,name=prediction,proto3" json:"prediction,omitempty"` Datasource *v1alpha12.DataSource `protobuf:"bytes,2,opt,name=datasource,proto3" json:"datasource,omitempty"` Model *v1alpha11.Model `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` ModelClass *v1alpha11.ModelClass `protobuf:"bytes,4,opt,name=modelClass,proto3" json:"modelClass,omitempty"` Entities []*v1alpha12.Entity `protobuf:"bytes,5,rep,name=entities,proto3" json:"entities,omitempty"` Groups []*v1alpha12.FeatureGroup `protobuf:"bytes,6,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*BatchPredictModelClassRequest) Descriptor
deprecated
added in
v0.5.628
func (*BatchPredictModelClassRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchPredictModelClassRequest.ProtoReflect.Descriptor instead.
func (*BatchPredictModelClassRequest) GetDatasource ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) GetDatasource() *v1alpha12.DataSource
func (*BatchPredictModelClassRequest) GetEntities ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) GetEntities() []*v1alpha12.Entity
func (*BatchPredictModelClassRequest) GetGroups ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) GetGroups() []*v1alpha12.FeatureGroup
func (*BatchPredictModelClassRequest) GetModel ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) GetModel() *v1alpha11.Model
func (*BatchPredictModelClassRequest) GetModelClass ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) GetModelClass() *v1alpha11.ModelClass
func (*BatchPredictModelClassRequest) GetPrediction ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) GetPrediction() *v1alpha1.Prediction
func (*BatchPredictModelClassRequest) ProtoMessage ¶ added in v0.5.628
func (*BatchPredictModelClassRequest) ProtoMessage()
func (*BatchPredictModelClassRequest) ProtoReflect ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) ProtoReflect() protoreflect.Message
func (*BatchPredictModelClassRequest) Reset ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) Reset()
func (*BatchPredictModelClassRequest) String ¶ added in v0.5.628
func (x *BatchPredictModelClassRequest) String() string
type BatchPredictRequest ¶
type BatchPredictRequest struct { Prediction *v1alpha1.Prediction `protobuf:"bytes,1,opt,name=prediction,proto3" json:"prediction,omitempty"` Model *v1alpha11.Model `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` Datasource *v1alpha12.DataSource `protobuf:"bytes,3,opt,name=datasource,proto3" json:"datasource,omitempty"` Tenant string `protobuf:"bytes,4,opt,name=tenant,proto3" json:"tenant,omitempty"` // contains filtered or unexported fields }
func (*BatchPredictRequest) Descriptor
deprecated
func (*BatchPredictRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchPredictRequest.ProtoReflect.Descriptor instead.
func (*BatchPredictRequest) GetDatasource ¶ added in v0.6.252
func (x *BatchPredictRequest) GetDatasource() *v1alpha12.DataSource
func (*BatchPredictRequest) GetModel ¶ added in v0.6.252
func (x *BatchPredictRequest) GetModel() *v1alpha11.Model
func (*BatchPredictRequest) GetPrediction ¶
func (x *BatchPredictRequest) GetPrediction() *v1alpha1.Prediction
func (*BatchPredictRequest) GetTenant ¶ added in v0.6.252
func (x *BatchPredictRequest) GetTenant() string
func (*BatchPredictRequest) ProtoMessage ¶
func (*BatchPredictRequest) ProtoMessage()
func (*BatchPredictRequest) ProtoReflect ¶
func (x *BatchPredictRequest) ProtoReflect() protoreflect.Message
func (*BatchPredictRequest) Reset ¶
func (x *BatchPredictRequest) Reset()
func (*BatchPredictRequest) String ¶
func (x *BatchPredictRequest) String() string
type BatchPredictResponse ¶
type BatchPredictResponse struct { Rows int32 `protobuf:"varint,1,opt,name=rows,proto3" json:"rows,omitempty"` // contains filtered or unexported fields }
func (*BatchPredictResponse) Descriptor
deprecated
func (*BatchPredictResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchPredictResponse.ProtoReflect.Descriptor instead.
func (*BatchPredictResponse) GetRows ¶ added in v0.4.726
func (x *BatchPredictResponse) GetRows() int32
func (*BatchPredictResponse) ProtoMessage ¶
func (*BatchPredictResponse) ProtoMessage()
func (*BatchPredictResponse) ProtoReflect ¶
func (x *BatchPredictResponse) ProtoReflect() protoreflect.Message
func (*BatchPredictResponse) Reset ¶
func (x *BatchPredictResponse) Reset()
func (*BatchPredictResponse) String ¶
func (x *BatchPredictResponse) String() string
type BatchServer ¶
type BatchServer interface { BatchPredict(context.Context, *BatchPredictRequest) (*BatchPredictResponse, error) BatchPredictModelClass(context.Context, *BatchPredictModelClassRequest) (*BatchPredictResponse, error) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error) // contains filtered or unexported methods }
BatchServer is the server API for Batch service. All implementations must embed UnimplementedBatchServer for forward compatibility
type ShutdownRequest ¶ added in v0.4.644
type ShutdownRequest struct {
// contains filtered or unexported fields
}
func (*ShutdownRequest) Descriptor
deprecated
added in
v0.4.644
func (*ShutdownRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) ProtoMessage ¶ added in v0.4.644
func (*ShutdownRequest) ProtoMessage()
func (*ShutdownRequest) ProtoReflect ¶ added in v0.4.644
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message
func (*ShutdownRequest) Reset ¶ added in v0.4.644
func (x *ShutdownRequest) Reset()
func (*ShutdownRequest) String ¶ added in v0.4.644
func (x *ShutdownRequest) String() string
type ShutdownResponse ¶ added in v0.4.643
type ShutdownResponse struct {
// contains filtered or unexported fields
}
func (*ShutdownResponse) Descriptor
deprecated
added in
v0.4.643
func (*ShutdownResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.
func (*ShutdownResponse) ProtoMessage ¶ added in v0.4.643
func (*ShutdownResponse) ProtoMessage()
func (*ShutdownResponse) ProtoReflect ¶ added in v0.4.643
func (x *ShutdownResponse) ProtoReflect() protoreflect.Message
func (*ShutdownResponse) Reset ¶ added in v0.4.643
func (x *ShutdownResponse) Reset()
func (*ShutdownResponse) String ¶ added in v0.4.643
func (x *ShutdownResponse) String() string
type UnimplementedBatchServer ¶
type UnimplementedBatchServer struct { }
UnimplementedBatchServer must be embedded to have forward compatible implementations.
func (UnimplementedBatchServer) BatchPredict ¶
func (UnimplementedBatchServer) BatchPredict(context.Context, *BatchPredictRequest) (*BatchPredictResponse, error)
func (UnimplementedBatchServer) BatchPredictModelClass ¶ added in v0.5.628
func (UnimplementedBatchServer) BatchPredictModelClass(context.Context, *BatchPredictModelClassRequest) (*BatchPredictResponse, error)
func (UnimplementedBatchServer) Shutdown ¶
func (UnimplementedBatchServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
type UnsafeBatchServer ¶ added in v0.4.687
type UnsafeBatchServer interface {
// contains filtered or unexported methods
}
UnsafeBatchServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BatchServer will result in compilation errors.