Class protos.google.cloud.retail.v2alpha.ModelService (2.1.1)

Represents a ModelService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.ModelService

Package

@google-cloud/retail

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new ModelService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

createModel(request)

public createModel(request: google.cloud.retail.v2alpha.ICreateModelRequest): Promise<google.longrunning.Operation>;

Calls CreateModel.

Parameter
NameDescription
request google.cloud.retail.v2alpha.ICreateModelRequest

CreateModelRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

deleteModel(request)

public deleteModel(request: google.cloud.retail.v2alpha.IDeleteModelRequest): Promise<google.protobuf.Empty>;

Calls DeleteModel.

Parameter
NameDescription
request IDeleteModelRequest

DeleteModelRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

listModels(request)

public listModels(request: google.cloud.retail.v2alpha.IListModelsRequest): Promise<google.cloud.retail.v2alpha.ListModelsResponse>;

Calls ListModels.

Parameter
NameDescription
request google.cloud.retail.v2alpha.IListModelsRequest

ListModelsRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

pauseModel(request)

public pauseModel(request: google.cloud.retail.v2alpha.IPauseModelRequest): Promise<google.cloud.retail.v2alpha.Model>;

Calls PauseModel.

Parameter
NameDescription
request IPauseModelRequest

PauseModelRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

resumeModel(request)

public resumeModel(request: google.cloud.retail.v2alpha.IResumeModelRequest): Promise<google.cloud.retail.v2alpha.Model>;

Calls ResumeModel.

Parameter
NameDescription
request google.cloud.retail.v2alpha.IResumeModelRequest

ResumeModelRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

tuneModel(request)

public tuneModel(request: google.cloud.retail.v2alpha.ITuneModelRequest): Promise<google.longrunning.Operation>;

Calls TuneModel.

Parameter
NameDescription
request google.cloud.retail.v2alpha.ITuneModelRequest

TuneModelRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

updateModel(request)

public updateModel(request: google.cloud.retail.v2alpha.IUpdateModelRequest): Promise<google.cloud.retail.v2alpha.Model>;

Calls UpdateModel.

Parameter
NameDescription
request IUpdateModelRequest

UpdateModelRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2alpha.Model>

Promise