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
createIntent(request, callback) → {undefined}
Calls CreateIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest |
CreateIntentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback |
Node-style callback called with the error, if any, and Intent |
Returns:
Type | Description |
---|---|
undefined |
createIntent(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Intent>}
Calls CreateIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest |
CreateIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.Intent> |
Promise |
deleteIntent(request, callback) → {undefined}
Calls DeleteIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest |
DeleteIntentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.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.cx.v3beta1.IDeleteIntentRequest |
DeleteIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
exportIntents(request, callback) → {undefined}
Calls ExportIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest |
ExportIntentsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntentsCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
exportIntents(request) → {Promise.<google.longrunning.Operation>}
Calls ExportIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IExportIntentsRequest |
ExportIntentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
getIntent(request, callback) → {undefined}
Calls GetIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest |
GetIntentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback |
Node-style callback called with the error, if any, and Intent |
Returns:
Type | Description |
---|---|
undefined |
getIntent(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Intent>}
Calls GetIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest |
GetIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.Intent> |
Promise |
importIntents(request, callback) → {undefined}
Calls ImportIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest |
ImportIntentsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntentsCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
importIntents(request) → {Promise.<google.longrunning.Operation>}
Calls ImportIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IImportIntentsRequest |
ImportIntentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
listIntents(request, callback) → {undefined}
Calls ListIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest |
ListIntentsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback |
Node-style callback called with the error, if any, and ListIntentsResponse |
Returns:
Type | Description |
---|---|
undefined |
listIntents(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse>}
Calls ListIntents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest |
ListIntentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse> |
Promise |
updateIntent(request, callback) → {undefined}
Calls UpdateIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest |
UpdateIntentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback |
Node-style callback called with the error, if any, and Intent |
Returns:
Type | Description |
---|---|
undefined |
updateIntent(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Intent>}
Calls UpdateIntent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest |
UpdateIntentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.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
CreateIntentCallback(error, responseopt)
Callback as used by createIntent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.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 |
ExportIntentsCallback(error, responseopt)
Callback as used by exportIntents.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
GetIntentCallback(error, responseopt)
Callback as used by getIntent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.Intent |
<optional> |
Intent |
ImportIntentsCallback(error, responseopt)
Callback as used by importIntents.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
ListIntentsCallback(error, responseopt)
Callback as used by listIntents.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.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.cx.v3beta1.Intent |
<optional> |
Intent |