Class protos.google.cloud.discoveryengine.v1alpha.ServingConfigService (1.7.0)

Represents a ServingConfigService

Inheritance

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

Package

@google-cloud/discoveryengine

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

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.

getServingConfig(request, callback)

public getServingConfig(request: google.cloud.discoveryengine.v1alpha.IGetServingConfigRequest, callback: google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.IGetServingConfigRequest): Promise<google.cloud.discoveryengine.v1alpha.ServingConfig>;

Calls GetServingConfig.

Parameter
NameDescription
request IGetServingConfigRequest

GetServingConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1alpha.ServingConfig>

Promise

listServingConfigs(request, callback)

public listServingConfigs(request: google.cloud.discoveryengine.v1alpha.IListServingConfigsRequest, callback: google.cloud.discoveryengine.v1alpha.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.discoveryengine.v1alpha.IListServingConfigsRequest): Promise<google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse>;

Calls ListServingConfigs.

Parameter
NameDescription
request IListServingConfigsRequest

ListServingConfigsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse>

Promise

updateServingConfig(request, callback)

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

Calls UpdateServingConfig.

Parameter
NameDescription
request IUpdateServingConfigRequest

UpdateServingConfigRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1alpha.ServingConfig>

Promise