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

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

Returns:
Type Description
undefined

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

Calls DeleteAgent.

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

DeleteAgentRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

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

Returns:
Type Description
undefined

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

Calls ExportAgent.

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

ExportAgentRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.Agent>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.ValidationResult>

Promise

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

Returns:
Type Description
undefined

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

Calls ImportAgent.

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

ImportAgentRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

Returns:
Type Description
undefined

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

Calls RestoreAgent.

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

RestoreAgentRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.SearchAgentsResponse>

Promise

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

Returns:
Type Description
undefined

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

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.Agent>

Promise

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

Returns:
Type Description
undefined

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

Calls TrainAgent.

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

TrainAgentRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(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

Returns:
Type Description
Agents

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

DeleteAgentCallback(error, responseopt)

Callback as used by 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 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 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 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 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 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 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 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 trainAgent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation