Represents a ServingConfigService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2.ServingConfigServicePackage
@google-cloud/retailConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ServingConfigService service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
request |
IAddControlRequest
AddControlRequest message or plain object |
callback |
AddControlCallback
Node-style callback called with the error, if any, and ServingConfig |
Returns | |
---|---|
Type | Description |
void |
addControl(request)
public addControl(request: google.cloud.retail.v2.IAddControlRequest): Promise<google.cloud.retail.v2.ServingConfig>;
Calls AddControl.
Parameter | |
---|---|
Name | Description |
request |
IAddControlRequest
AddControlRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ICreateServingConfigRequest
CreateServingConfigRequest message or plain object |
callback |
CreateServingConfigCallback
Node-style callback called with the error, if any, and ServingConfig |
Returns | |
---|---|
Type | Description |
void |
createServingConfig(request)
public createServingConfig(request: google.cloud.retail.v2.ICreateServingConfigRequest): Promise<google.cloud.retail.v2.ServingConfig>;
Calls CreateServingConfig.
Parameter | |
---|---|
Name | Description |
request |
ICreateServingConfigRequest
CreateServingConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IDeleteServingConfigRequest
DeleteServingConfigRequest message or plain object |
callback |
DeleteServingConfigCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteServingConfig(request)
public deleteServingConfig(request: google.cloud.retail.v2.IDeleteServingConfigRequest): Promise<google.protobuf.Empty>;
Calls DeleteServingConfig.
Parameter | |
---|---|
Name | Description |
request |
IDeleteServingConfigRequest
DeleteServingConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetServingConfigRequest
GetServingConfigRequest message or plain object |
callback |
GetServingConfigCallback
Node-style callback called with the error, if any, and ServingConfig |
Returns | |
---|---|
Type | Description |
void |
getServingConfig(request)
public getServingConfig(request: google.cloud.retail.v2.IGetServingConfigRequest): Promise<google.cloud.retail.v2.ServingConfig>;
Calls GetServingConfig.
Parameter | |
---|---|
Name | Description |
request |
IGetServingConfigRequest
GetServingConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListServingConfigsRequest
ListServingConfigsRequest message or plain object |
callback |
ListServingConfigsCallback
Node-style callback called with the error, if any, and ListServingConfigsResponse |
Returns | |
---|---|
Type | Description |
void |
listServingConfigs(request)
public listServingConfigs(request: google.cloud.retail.v2.IListServingConfigsRequest): Promise<google.cloud.retail.v2.ListServingConfigsResponse>;
Calls ListServingConfigs.
Parameter | |
---|---|
Name | Description |
request |
IListServingConfigsRequest
ListServingConfigsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IRemoveControlRequest
RemoveControlRequest message or plain object |
callback |
RemoveControlCallback
Node-style callback called with the error, if any, and ServingConfig |
Returns | |
---|---|
Type | Description |
void |
removeControl(request)
public removeControl(request: google.cloud.retail.v2.IRemoveControlRequest): Promise<google.cloud.retail.v2.ServingConfig>;
Calls RemoveControl.
Parameter | |
---|---|
Name | Description |
request |
IRemoveControlRequest
RemoveControlRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IUpdateServingConfigRequest
UpdateServingConfigRequest message or plain object |
callback |
UpdateServingConfigCallback
Node-style callback called with the error, if any, and ServingConfig |
Returns | |
---|---|
Type | Description |
void |
updateServingConfig(request)
public updateServingConfig(request: google.cloud.retail.v2.IUpdateServingConfigRequest): Promise<google.cloud.retail.v2.ServingConfig>;
Calls UpdateServingConfig.
Parameter | |
---|---|
Name | Description |
request |
IUpdateServingConfigRequest
UpdateServingConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.retail.v2.ServingConfig> | Promise |