Constructor
new Intents(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Intents 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
batchDeleteIntents(request, callback) → {undefined}
Calls BatchDeleteIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IBatchDeleteIntentsRequest |
BatchDeleteIntentsRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Intents.BatchDeleteIntentsCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
batchDeleteIntents(request) → {Promise.<google.longrunning.Operation>}
Calls BatchDeleteIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IBatchDeleteIntentsRequest |
BatchDeleteIntentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
batchUpdateIntents(request, callback) → {undefined}
Calls BatchUpdateIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IBatchUpdateIntentsRequest |
BatchUpdateIntentsRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntentsCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
batchUpdateIntents(request) → {Promise.<google.longrunning.Operation>}
Calls BatchUpdateIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IBatchUpdateIntentsRequest |
BatchUpdateIntentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
createIntent(request, callback) → {undefined}
Calls CreateIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ICreateIntentRequest |
CreateIntentRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Intents.CreateIntentCallback |
Node-style callback called with the error, if any, and Intent |
Returns:
Type | Description |
---|---|
undefined |
createIntent(request) → {Promise.<google.cloud.dialogflow.v2beta1.Intent>}
Calls CreateIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ICreateIntentRequest |
CreateIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.Intent> |
Promise |
deleteIntent(request, callback) → {undefined}
Calls DeleteIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IDeleteIntentRequest |
DeleteIntentRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Intents.DeleteIntentCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
deleteIntent(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IDeleteIntentRequest |
DeleteIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
getIntent(request, callback) → {undefined}
Calls GetIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IGetIntentRequest |
GetIntentRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Intents.GetIntentCallback |
Node-style callback called with the error, if any, and Intent |
Returns:
Type | Description |
---|---|
undefined |
getIntent(request) → {Promise.<google.cloud.dialogflow.v2beta1.Intent>}
Calls GetIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IGetIntentRequest |
GetIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.Intent> |
Promise |
listIntents(request, callback) → {undefined}
Calls ListIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IListIntentsRequest |
ListIntentsRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Intents.ListIntentsCallback |
Node-style callback called with the error, if any, and ListIntentsResponse |
Returns:
Type | Description |
---|---|
undefined |
listIntents(request) → {Promise.<google.cloud.dialogflow.v2beta1.ListIntentsResponse>}
Calls ListIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IListIntentsRequest |
ListIntentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.ListIntentsResponse> |
Promise |
updateIntent(request, callback) → {undefined}
Calls UpdateIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IUpdateIntentRequest |
UpdateIntentRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Intents.UpdateIntentCallback |
Node-style callback called with the error, if any, and Intent |
Returns:
Type | Description |
---|---|
undefined |
updateIntent(request) → {Promise.<google.cloud.dialogflow.v2beta1.Intent>}
Calls UpdateIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IUpdateIntentRequest |
UpdateIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.Intent> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Intents}
Creates new Intents 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 |
---|---|
Intents |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
BatchDeleteIntentsCallback(error, responseopt)
Callback as used by batchDeleteIntents.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
BatchUpdateIntentsCallback(error, responseopt)
Callback as used by batchUpdateIntents.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
CreateIntentCallback(error, responseopt)
Callback as used by createIntent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.Intent |
<optional> |
Intent |
DeleteIntentCallback(error, responseopt)
Callback as used by deleteIntent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
GetIntentCallback(error, responseopt)
Callback as used by getIntent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.Intent |
<optional> |
Intent |
ListIntentsCallback(error, responseopt)
Callback as used by listIntents.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.ListIntentsResponse |
<optional> |
ListIntentsResponse |
UpdateIntentCallback(error, responseopt)
Callback as used by updateIntent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.Intent |
<optional> |
Intent |