Intents

google.cloud.dialogflow.v2. Intents

Represents an Intents

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

(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

batchDeleteIntents(request, callback) → {undefined}

Calls BatchDeleteIntents.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IBatchDeleteIntentsRequest

BatchDeleteIntentsRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.BatchDeleteIntentsCallback

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

batchDeleteIntents(request) → {Promise.<google.longrunning.Operation>}

Calls BatchDeleteIntents.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IBatchDeleteIntentsRequest

BatchDeleteIntentsRequest message or plain object

batchUpdateIntents(request, callback) → {undefined}

Calls BatchUpdateIntents.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IBatchUpdateIntentsRequest

BatchUpdateIntentsRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.BatchUpdateIntentsCallback

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

batchUpdateIntents(request) → {Promise.<google.longrunning.Operation>}

Calls BatchUpdateIntents.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IBatchUpdateIntentsRequest

BatchUpdateIntentsRequest message or plain object

createIntent(request, callback) → {undefined}

Calls CreateIntent.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.ICreateIntentRequest

CreateIntentRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.CreateIntentCallback

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

createIntent(request) → {Promise.<google.cloud.dialogflow.v2.Intent>}

Calls CreateIntent.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.ICreateIntentRequest

CreateIntentRequest message or plain object

deleteIntent(request, callback) → {undefined}

Calls DeleteIntent.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IDeleteIntentRequest

DeleteIntentRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.DeleteIntentCallback

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

deleteIntent(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteIntent.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IDeleteIntentRequest

DeleteIntentRequest message or plain object

getIntent(request, callback) → {undefined}

Calls GetIntent.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IGetIntentRequest

GetIntentRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.GetIntentCallback

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

getIntent(request) → {Promise.<google.cloud.dialogflow.v2.Intent>}

Calls GetIntent.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IGetIntentRequest

GetIntentRequest message or plain object

listIntents(request, callback) → {undefined}

Calls ListIntents.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IListIntentsRequest

ListIntentsRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.ListIntentsCallback

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

listIntents(request) → {Promise.<google.cloud.dialogflow.v2.ListIntentsResponse>}

Calls ListIntents.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IListIntentsRequest

ListIntentsRequest message or plain object

updateIntent(request, callback) → {undefined}

Calls UpdateIntent.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IUpdateIntentRequest

UpdateIntentRequest message or plain object

callback google.cloud.dialogflow.v2.Intents.UpdateIntentCallback

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

updateIntent(request) → {Promise.<google.cloud.dialogflow.v2.Intent>}

Calls UpdateIntent.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2.IUpdateIntentRequest

UpdateIntentRequest message or plain object

Type Definitions

BatchDeleteIntentsCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Intents#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 google.cloud.dialogflow.v2.Intents#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 google.cloud.dialogflow.v2.Intents#createIntent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Intent <optional>

Intent

DeleteIntentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Intents#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 google.cloud.dialogflow.v2.Intents#getIntent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Intent <optional>

Intent

ListIntentsCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Intents#listIntents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.ListIntentsResponse <optional>

ListIntentsResponse

UpdateIntentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Intents#updateIntent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2.Intent <optional>

Intent