Represents a ServingConfigService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.ServingConfigServicePackage
@google-cloud/discoveryengineConstructors
(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
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. |
getServingConfig(request, callback)
public getServingConfig(request: google.cloud.discoveryengine.v1beta.IGetServingConfigRequest, callback: google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.IGetServingConfigRequest): Promise<google.cloud.discoveryengine.v1beta.ServingConfig>;
Calls GetServingConfig.
Parameter | |
---|---|
Name | Description |
request |
IGetServingConfigRequest
GetServingConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1beta.ServingConfig> | Promise |
listServingConfigs(request, callback)
public listServingConfigs(request: google.cloud.discoveryengine.v1beta.IListServingConfigsRequest, callback: google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.IListServingConfigsRequest): Promise<google.cloud.discoveryengine.v1beta.ListServingConfigsResponse>;
Calls ListServingConfigs.
Parameter | |
---|---|
Name | Description |
request |
IListServingConfigsRequest
ListServingConfigsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1beta.ListServingConfigsResponse> | Promise |
updateServingConfig(request, callback)
public updateServingConfig(request: google.cloud.discoveryengine.v1beta.IUpdateServingConfigRequest, callback: google.cloud.discoveryengine.v1beta.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.discoveryengine.v1beta.IUpdateServingConfigRequest): Promise<google.cloud.discoveryengine.v1beta.ServingConfig>;
Calls UpdateServingConfig.
Parameter | |
---|---|
Name | Description |
request |
IUpdateServingConfigRequest
UpdateServingConfigRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1beta.ServingConfig> | Promise |