Represents a ModelService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.ModelServicePackage
@google-cloud/retailConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ModelService service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService;
Creates new ModelService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
ModelService | RPC service. Useful where requests and/or responses are streamed. |
createModel(request, callback)
public createModel(request: google.cloud.retail.v2alpha.ICreateModelRequest, callback: google.cloud.retail.v2alpha.ModelService.CreateModelCallback): void;
Calls CreateModel.
Name | Description |
request |
google.cloud.retail.v2alpha.ICreateModelRequest
CreateModelRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ModelService.CreateModelCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
createModel(request)
public createModel(request: google.cloud.retail.v2alpha.ICreateModelRequest): Promise<google.longrunning.Operation>;
Calls CreateModel.
Name | Description |
request |
google.cloud.retail.v2alpha.ICreateModelRequest
CreateModelRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteModel(request, callback)
public deleteModel(request: google.cloud.retail.v2alpha.IDeleteModelRequest, callback: google.cloud.retail.v2alpha.ModelService.DeleteModelCallback): void;
Calls DeleteModel.
Name | Description |
request |
IDeleteModelRequest
DeleteModelRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ModelService.DeleteModelCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteModel(request)
public deleteModel(request: google.cloud.retail.v2alpha.IDeleteModelRequest): Promise<google.protobuf.Empty>;
Calls DeleteModel.
Name | Description |
request |
IDeleteModelRequest
DeleteModelRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
listModels(request, callback)
public listModels(request: google.cloud.retail.v2alpha.IListModelsRequest, callback: google.cloud.retail.v2alpha.ModelService.ListModelsCallback): void;
Calls ListModels.
Name | Description |
request |
google.cloud.retail.v2alpha.IListModelsRequest
ListModelsRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ModelService.ListModelsCallback
Node-style callback called with the error, if any, and ListModelsResponse |
Type | Description |
void |
listModels(request)
public listModels(request: google.cloud.retail.v2alpha.IListModelsRequest): Promise<google.cloud.retail.v2alpha.ListModelsResponse>;
Calls ListModels.
Name | Description |
request |
google.cloud.retail.v2alpha.IListModelsRequest
ListModelsRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2alpha.ListModelsResponse> | Promise |
pauseModel(request, callback)
public pauseModel(request: google.cloud.retail.v2alpha.IPauseModelRequest, callback: google.cloud.retail.v2alpha.ModelService.PauseModelCallback): void;
Calls PauseModel.
Name | Description |
request |
IPauseModelRequest
PauseModelRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ModelService.PauseModelCallback
Node-style callback called with the error, if any, and Model |
Type | Description |
void |
pauseModel(request)
public pauseModel(request: google.cloud.retail.v2alpha.IPauseModelRequest): Promise<google.cloud.retail.v2alpha.Model>;
Calls PauseModel.
Name | Description |
request |
IPauseModelRequest
PauseModelRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2alpha.Model> | Promise |
resumeModel(request, callback)
public resumeModel(request: google.cloud.retail.v2alpha.IResumeModelRequest, callback: google.cloud.retail.v2alpha.ModelService.ResumeModelCallback): void;
Calls ResumeModel.
Name | Description |
request |
google.cloud.retail.v2alpha.IResumeModelRequest
ResumeModelRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ModelService.ResumeModelCallback
Node-style callback called with the error, if any, and Model |
Type | Description |
void |
resumeModel(request)
public resumeModel(request: google.cloud.retail.v2alpha.IResumeModelRequest): Promise<google.cloud.retail.v2alpha.Model>;
Calls ResumeModel.
Name | Description |
request |
google.cloud.retail.v2alpha.IResumeModelRequest
ResumeModelRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2alpha.Model> | Promise |
tuneModel(request, callback)
public tuneModel(request: google.cloud.retail.v2alpha.ITuneModelRequest, callback: google.cloud.retail.v2alpha.ModelService.TuneModelCallback): void;
Calls TuneModel.
Name | Description |
request |
google.cloud.retail.v2alpha.ITuneModelRequest
TuneModelRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ModelService.TuneModelCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
tuneModel(request)
public tuneModel(request: google.cloud.retail.v2alpha.ITuneModelRequest): Promise<google.longrunning.Operation>;
Calls TuneModel.
Name | Description |
request |
google.cloud.retail.v2alpha.ITuneModelRequest
TuneModelRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
updateModel(request, callback)
public updateModel(request: google.cloud.retail.v2alpha.IUpdateModelRequest, callback: google.cloud.retail.v2alpha.ModelService.UpdateModelCallback): void;
Calls UpdateModel.
Name | Description |
request |
IUpdateModelRequest
UpdateModelRequest message or plain object |
callback |
google.cloud.retail.v2alpha.ModelService.UpdateModelCallback
Node-style callback called with the error, if any, and Model |
Type | Description |
void |
updateModel(request)
public updateModel(request: google.cloud.retail.v2alpha.IUpdateModelRequest): Promise<google.cloud.retail.v2alpha.Model>;
Calls UpdateModel.
Name | Description |
request |
IUpdateModelRequest
UpdateModelRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2alpha.Model> | Promise |