Class protos.google.cloud.retail.v2.ServingConfigService (3.1.0)

Represents a ServingConfigService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2.ServingConfigService

Package

@google-cloud/retail

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ServingConfigService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

addControl(request, callback)

public addControl(request: google.cloud.retail.v2.IAddControlRequest, callback: google.cloud.retail.v2.ServingConfigService.AddControlCallback): void;

Calls AddControl.

Parameters
NameDescription
request IAddControlRequest

AddControlRequest message or plain object

callback AddControlCallback

Node-style callback called with the error, if any, and ServingConfig

Returns
TypeDescription
void

addControl(request)

public addControl(request: google.cloud.retail.v2.IAddControlRequest): Promise<google.cloud.retail.v2.ServingConfig>;

Calls AddControl.

Parameter
NameDescription
request IAddControlRequest

AddControlRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.ServingConfig>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ServingConfigService;

Creates new ServingConfigService 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
ServingConfigService

RPC service. Useful where requests and/or responses are streamed.

createServingConfig(request, callback)

public createServingConfig(request: google.cloud.retail.v2.ICreateServingConfigRequest, callback: google.cloud.retail.v2.ServingConfigService.CreateServingConfigCallback): void;

Calls CreateServingConfig.

Parameters
NameDescription
request ICreateServingConfigRequest

CreateServingConfigRequest message or plain object

callback CreateServingConfigCallback

Node-style callback called with the error, if any, and ServingConfig

Returns
TypeDescription
void

createServingConfig(request)

public createServingConfig(request: google.cloud.retail.v2.ICreateServingConfigRequest): Promise<google.cloud.retail.v2.ServingConfig>;

Calls CreateServingConfig.

Parameter
NameDescription
request ICreateServingConfigRequest

CreateServingConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.ServingConfig>

Promise

deleteServingConfig(request, callback)

public deleteServingConfig(request: google.cloud.retail.v2.IDeleteServingConfigRequest, callback: google.cloud.retail.v2.ServingConfigService.DeleteServingConfigCallback): void;

Calls DeleteServingConfig.

Parameters
NameDescription
request IDeleteServingConfigRequest

DeleteServingConfigRequest message or plain object

callback DeleteServingConfigCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

deleteServingConfig(request)

public deleteServingConfig(request: google.cloud.retail.v2.IDeleteServingConfigRequest): Promise<google.protobuf.Empty>;

Calls DeleteServingConfig.

Parameter
NameDescription
request IDeleteServingConfigRequest

DeleteServingConfigRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getServingConfig(request, callback)

public getServingConfig(request: google.cloud.retail.v2.IGetServingConfigRequest, callback: google.cloud.retail.v2.ServingConfigService.GetServingConfigCallback): void;

Calls GetServingConfig.

Parameters
NameDescription
request IGetServingConfigRequest

GetServingConfigRequest message or plain object

callback GetServingConfigCallback

Node-style callback called with the error, if any, and ServingConfig

Returns
TypeDescription
void

getServingConfig(request)

public getServingConfig(request: google.cloud.retail.v2.IGetServingConfigRequest): Promise<google.cloud.retail.v2.ServingConfig>;

Calls GetServingConfig.

Parameter
NameDescription
request IGetServingConfigRequest

GetServingConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.ServingConfig>

Promise

listServingConfigs(request, callback)

public listServingConfigs(request: google.cloud.retail.v2.IListServingConfigsRequest, callback: google.cloud.retail.v2.ServingConfigService.ListServingConfigsCallback): void;

Calls ListServingConfigs.

Parameters
NameDescription
request IListServingConfigsRequest

ListServingConfigsRequest message or plain object

callback ListServingConfigsCallback

Node-style callback called with the error, if any, and ListServingConfigsResponse

Returns
TypeDescription
void

listServingConfigs(request)

public listServingConfigs(request: google.cloud.retail.v2.IListServingConfigsRequest): Promise<google.cloud.retail.v2.ListServingConfigsResponse>;

Calls ListServingConfigs.

Parameter
NameDescription
request IListServingConfigsRequest

ListServingConfigsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.ListServingConfigsResponse>

Promise

removeControl(request, callback)

public removeControl(request: google.cloud.retail.v2.IRemoveControlRequest, callback: google.cloud.retail.v2.ServingConfigService.RemoveControlCallback): void;

Calls RemoveControl.

Parameters
NameDescription
request IRemoveControlRequest

RemoveControlRequest message or plain object

callback RemoveControlCallback

Node-style callback called with the error, if any, and ServingConfig

Returns
TypeDescription
void

removeControl(request)

public removeControl(request: google.cloud.retail.v2.IRemoveControlRequest): Promise<google.cloud.retail.v2.ServingConfig>;

Calls RemoveControl.

Parameter
NameDescription
request IRemoveControlRequest

RemoveControlRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.ServingConfig>

Promise

updateServingConfig(request, callback)

public updateServingConfig(request: google.cloud.retail.v2.IUpdateServingConfigRequest, callback: google.cloud.retail.v2.ServingConfigService.UpdateServingConfigCallback): void;

Calls UpdateServingConfig.

Parameters
NameDescription
request IUpdateServingConfigRequest

UpdateServingConfigRequest message or plain object

callback UpdateServingConfigCallback

Node-style callback called with the error, if any, and ServingConfig

Returns
TypeDescription
void

updateServingConfig(request)

public updateServingConfig(request: google.cloud.retail.v2.IUpdateServingConfigRequest): Promise<google.cloud.retail.v2.ServingConfig>;

Calls UpdateServingConfig.

Parameter
NameDescription
request IUpdateServingConfigRequest

UpdateServingConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2.ServingConfig>

Promise