Constructor
new Sessions(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Sessions service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Sessions}
Creates new Sessions service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
Sessions |
RPC service. Useful where requests and/or responses are streamed. |
detectIntent(request, callback) → {undefined}
Calls DetectIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IDetectIntentRequest |
DetectIntentRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Sessions.DetectIntentCallback |
Node-style callback called with the error, if any, and DetectIntentResponse |
Returns:
Type | Description |
---|---|
undefined |
detectIntent(request) → {Promise.<google.cloud.dialogflow.v2beta1.DetectIntentResponse>}
Calls DetectIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IDetectIntentRequest |
DetectIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.DetectIntentResponse> |
Promise |
streamingDetectIntent(request, callback) → {undefined}
Calls StreamingDetectIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IStreamingDetectIntentRequest |
StreamingDetectIntentRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntentCallback |
Node-style callback called with the error, if any, and StreamingDetectIntentResponse |
Returns:
Type | Description |
---|---|
undefined |
streamingDetectIntent(request) → {Promise.<google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse>}
Calls StreamingDetectIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IStreamingDetectIntentRequest |
StreamingDetectIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse> |
Promise |
Type Definitions
DetectIntentCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Sessions#detectIntent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.DetectIntentResponse |
<optional> |
DetectIntentResponse |
StreamingDetectIntentCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Sessions#streamingDetectIntent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse |
<optional> |
StreamingDetectIntentResponse |