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