Class protos.google.cloud.discoveryengine.v1.ServingConfigService (2.2.0)

Represents a ServingConfigService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1.ServingConfigService

Package

@google-cloud/discoveryengine

Constructors

(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.

updateServingConfig(request, callback)

public updateServingConfig(request: google.cloud.discoveryengine.v1.IUpdateServingConfigRequest, callback: google.cloud.discoveryengine.v1.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.v1.IUpdateServingConfigRequest): Promise<google.cloud.discoveryengine.v1.ServingConfig>;

Calls UpdateServingConfig.

Parameter
Name Description
request IUpdateServingConfigRequest

UpdateServingConfigRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1.ServingConfig>

Promise