Represents a GroundedGenerationService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.GroundedGenerationServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new GroundedGenerationService service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
request |
ICheckGroundingRequest
CheckGroundingRequest message or plain object |
callback |
CheckGroundingCallback
Node-style callback called with the error, if any, and CheckGroundingResponse |
Returns | |
---|---|
Type | Description |
void |
checkGrounding(request)
public checkGrounding(request: google.cloud.discoveryengine.v1beta.ICheckGroundingRequest): Promise<google.cloud.discoveryengine.v1beta.CheckGroundingResponse>;
Calls CheckGrounding.
Parameter | |
---|---|
Name | Description |
request |
ICheckGroundingRequest
CheckGroundingRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
GroundedGenerationService |
RPC service. Useful where requests and/or responses are streamed. |