Class protos.google.cloud.discoveryengine.v1beta.GroundedGenerationService (1.7.0)

Represents a GroundedGenerationService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.GroundedGenerationService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new GroundedGenerationService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

checkGrounding(request, callback)

public checkGrounding(request: google.cloud.discoveryengine.v1beta.ICheckGroundingRequest, callback: google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGroundingCallback): void;

Calls CheckGrounding.

Parameters
NameDescription
request ICheckGroundingRequest

CheckGroundingRequest message or plain object

callback CheckGroundingCallback

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

Returns
TypeDescription
void

checkGrounding(request)

public checkGrounding(request: google.cloud.discoveryengine.v1beta.ICheckGroundingRequest): Promise<google.cloud.discoveryengine.v1beta.CheckGroundingResponse>;

Calls CheckGrounding.

Parameter
NameDescription
request ICheckGroundingRequest

CheckGroundingRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1beta.CheckGroundingResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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