Class protos.google.cloud.discoveryengine.v1beta.GroundedGenerationService (2.6.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
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.

generateGroundedContent(request, callback)

public generateGroundedContent(request: google.cloud.discoveryengine.v1beta.IGenerateGroundedContentRequest, callback: google.cloud.discoveryengine.v1beta.GroundedGenerationService.GenerateGroundedContentCallback): void;

Calls GenerateGroundedContent.

Parameters
Name Description
request IGenerateGroundedContentRequest

GenerateGroundedContentRequest message or plain object

callback GenerateGroundedContentCallback

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

Returns
Type Description
void

generateGroundedContent(request)

public generateGroundedContent(request: google.cloud.discoveryengine.v1beta.IGenerateGroundedContentRequest): Promise<google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse>;

Calls GenerateGroundedContent.

Parameter
Name Description
request IGenerateGroundedContentRequest

GenerateGroundedContentRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse>

Promise

streamGenerateGroundedContent(request, callback)

public streamGenerateGroundedContent(request: google.cloud.discoveryengine.v1beta.IGenerateGroundedContentRequest, callback: google.cloud.discoveryengine.v1beta.GroundedGenerationService.StreamGenerateGroundedContentCallback): void;

Calls StreamGenerateGroundedContent.

Parameters
Name Description
request IGenerateGroundedContentRequest

GenerateGroundedContentRequest message or plain object

callback StreamGenerateGroundedContentCallback

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

Returns
Type Description
void

streamGenerateGroundedContent(request)

public streamGenerateGroundedContent(request: google.cloud.discoveryengine.v1beta.IGenerateGroundedContentRequest): Promise<google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse>;

Calls StreamGenerateGroundedContent.

Parameter
Name Description
request IGenerateGroundedContentRequest

GenerateGroundedContentRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse>

Promise