Agents

google.cloud.dialogflow.v2beta1. Agents

Represents an Agents

Constructor

new Agents(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Agents 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) → {Agents}

Creates new Agents 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

deleteAgent(request, callback) → {undefined}

Calls DeleteAgent.

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

DeleteAgentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.DeleteAgentCallback

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

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

Calls DeleteAgent.

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

DeleteAgentRequest message or plain object

exportAgent(request, callback) → {undefined}

Calls ExportAgent.

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

ExportAgentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.ExportAgentCallback

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

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

Calls ExportAgent.

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

ExportAgentRequest message or plain object

getAgent(request, callback) → {undefined}

Calls GetAgent.

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

GetAgentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.GetAgentCallback

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

getAgent(request) → {Promise.<google.cloud.dialogflow.v2beta1.Agent>}

Calls GetAgent.

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

GetAgentRequest message or plain object

getValidationResult(request, callback) → {undefined}

Calls GetValidationResult.

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

GetValidationResultRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.GetValidationResultCallback

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

getValidationResult(request) → {Promise.<google.cloud.dialogflow.v2beta1.ValidationResult>}

Calls GetValidationResult.

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

GetValidationResultRequest message or plain object

importAgent(request, callback) → {undefined}

Calls ImportAgent.

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

ImportAgentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.ImportAgentCallback

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

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

Calls ImportAgent.

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

ImportAgentRequest message or plain object

restoreAgent(request, callback) → {undefined}

Calls RestoreAgent.

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

RestoreAgentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.RestoreAgentCallback

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

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

Calls RestoreAgent.

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

RestoreAgentRequest message or plain object

searchAgents(request, callback) → {undefined}

Calls SearchAgents.

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

SearchAgentsRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.SearchAgentsCallback

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

searchAgents(request) → {Promise.<google.cloud.dialogflow.v2beta1.SearchAgentsResponse>}

Calls SearchAgents.

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

SearchAgentsRequest message or plain object

setAgent(request, callback) → {undefined}

Calls SetAgent.

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

SetAgentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.SetAgentCallback

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

setAgent(request) → {Promise.<google.cloud.dialogflow.v2beta1.Agent>}

Calls SetAgent.

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

SetAgentRequest message or plain object

trainAgent(request, callback) → {undefined}

Calls TrainAgent.

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

TrainAgentRequest message or plain object

callback google.cloud.dialogflow.v2beta1.Agents.TrainAgentCallback

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

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

Calls TrainAgent.

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

TrainAgentRequest message or plain object

Type Definitions

DeleteAgentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#deleteAgent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

ExportAgentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#exportAgent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetAgentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#getAgent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Agent

GetValidationResultCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#getValidationResult.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ValidationResult

ImportAgentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#importAgent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

RestoreAgentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#restoreAgent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

SearchAgentsCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#searchAgents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SearchAgentsResponse

SetAgentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#setAgent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Agent

TrainAgentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.Agents#trainAgent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation