Intents

google.cloud.dialogflow.v2beta1. 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.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

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

Calls BatchDeleteIntents.

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

BatchDeleteIntentsRequest message or plain object

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

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

Calls BatchUpdateIntents.

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

BatchUpdateIntentsRequest message or plain object

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

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

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

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

Calls DeleteIntent.

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

DeleteIntentRequest message or plain object

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

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

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

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

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

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

Type Definitions

BatchDeleteIntentsCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Intent