Represents an AssistantService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1.AssistantServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new AssistantService 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): AssistantService;Creates new AssistantService 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 |
AssistantService |
RPC service. Useful where requests and/or responses are streamed. |
streamAssist(request, callback)
public streamAssist(request: google.cloud.discoveryengine.v1.IStreamAssistRequest, callback: google.cloud.discoveryengine.v1.AssistantService.StreamAssistCallback): void;Calls StreamAssist.
| Parameters | |
|---|---|
| Name | Description |
request |
IStreamAssistRequest
StreamAssistRequest message or plain object |
callback |
StreamAssistCallback
Node-style callback called with the error, if any, and StreamAssistResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
streamAssist(request)
public streamAssist(request: google.cloud.discoveryengine.v1.IStreamAssistRequest): Promise<google.cloud.discoveryengine.v1.StreamAssistResponse>;Calls StreamAssist.
| Parameter | |
|---|---|
| Name | Description |
request |
IStreamAssistRequest
StreamAssistRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.discoveryengine.v1.StreamAssistResponse> |
Promise |