Class protos.google.cloud.dialogflow.v2.Agents (4.3.1)

Represents an Agents

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.Agents

Package

@google-cloud/dialogflow!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Agents service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Agents;

Creates new Agents service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Agents

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

deleteAgent(request, callback)

public deleteAgent(request: google.cloud.dialogflow.v2.IDeleteAgentRequest, callback: google.cloud.dialogflow.v2.Agents.DeleteAgentCallback): void;

Calls DeleteAgent.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IDeleteAgentRequest

DeleteAgentRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.DeleteAgentCallback

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

Returns
TypeDescription
void

deleteAgent(request)

public deleteAgent(request: google.cloud.dialogflow.v2.IDeleteAgentRequest): Promise<google.protobuf.Empty>;

Calls DeleteAgent.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IDeleteAgentRequest

DeleteAgentRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

exportAgent(request, callback)

public exportAgent(request: google.cloud.dialogflow.v2.IExportAgentRequest, callback: google.cloud.dialogflow.v2.Agents.ExportAgentCallback): void;

Calls ExportAgent.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IExportAgentRequest

ExportAgentRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.ExportAgentCallback

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

Returns
TypeDescription
void

exportAgent(request)

public exportAgent(request: google.cloud.dialogflow.v2.IExportAgentRequest): Promise<google.longrunning.Operation>;

Calls ExportAgent.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IExportAgentRequest

ExportAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getAgent(request, callback)

public getAgent(request: google.cloud.dialogflow.v2.IGetAgentRequest, callback: google.cloud.dialogflow.v2.Agents.GetAgentCallback): void;

Calls GetAgent.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IGetAgentRequest

GetAgentRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.GetAgentCallback

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

Returns
TypeDescription
void

getAgent(request)

public getAgent(request: google.cloud.dialogflow.v2.IGetAgentRequest): Promise<google.cloud.dialogflow.v2.Agent>;

Calls GetAgent.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IGetAgentRequest

GetAgentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Agent>

Promise

getValidationResult(request, callback)

public getValidationResult(request: google.cloud.dialogflow.v2.IGetValidationResultRequest, callback: google.cloud.dialogflow.v2.Agents.GetValidationResultCallback): void;

Calls GetValidationResult.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IGetValidationResultRequest

GetValidationResultRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.GetValidationResultCallback

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

Returns
TypeDescription
void

getValidationResult(request)

public getValidationResult(request: google.cloud.dialogflow.v2.IGetValidationResultRequest): Promise<google.cloud.dialogflow.v2.ValidationResult>;

Calls GetValidationResult.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IGetValidationResultRequest

GetValidationResultRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.ValidationResult>

Promise

importAgent(request, callback)

public importAgent(request: google.cloud.dialogflow.v2.IImportAgentRequest, callback: google.cloud.dialogflow.v2.Agents.ImportAgentCallback): void;

Calls ImportAgent.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IImportAgentRequest

ImportAgentRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.ImportAgentCallback

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

Returns
TypeDescription
void

importAgent(request)

public importAgent(request: google.cloud.dialogflow.v2.IImportAgentRequest): Promise<google.longrunning.Operation>;

Calls ImportAgent.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IImportAgentRequest

ImportAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

restoreAgent(request, callback)

public restoreAgent(request: google.cloud.dialogflow.v2.IRestoreAgentRequest, callback: google.cloud.dialogflow.v2.Agents.RestoreAgentCallback): void;

Calls RestoreAgent.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IRestoreAgentRequest

RestoreAgentRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.RestoreAgentCallback

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

Returns
TypeDescription
void

restoreAgent(request)

public restoreAgent(request: google.cloud.dialogflow.v2.IRestoreAgentRequest): Promise<google.longrunning.Operation>;

Calls RestoreAgent.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IRestoreAgentRequest

RestoreAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

searchAgents(request, callback)

public searchAgents(request: google.cloud.dialogflow.v2.ISearchAgentsRequest, callback: google.cloud.dialogflow.v2.Agents.SearchAgentsCallback): void;

Calls SearchAgents.

Parameters
NameDescription
request google.cloud.dialogflow.v2.ISearchAgentsRequest

SearchAgentsRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.SearchAgentsCallback

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

Returns
TypeDescription
void

searchAgents(request)

public searchAgents(request: google.cloud.dialogflow.v2.ISearchAgentsRequest): Promise<google.cloud.dialogflow.v2.SearchAgentsResponse>;

Calls SearchAgents.

Parameter
NameDescription
request google.cloud.dialogflow.v2.ISearchAgentsRequest

SearchAgentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.SearchAgentsResponse>

Promise

setAgent(request, callback)

public setAgent(request: google.cloud.dialogflow.v2.ISetAgentRequest, callback: google.cloud.dialogflow.v2.Agents.SetAgentCallback): void;

Calls SetAgent.

Parameters
NameDescription
request google.cloud.dialogflow.v2.ISetAgentRequest

SetAgentRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.SetAgentCallback

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

Returns
TypeDescription
void

setAgent(request)

public setAgent(request: google.cloud.dialogflow.v2.ISetAgentRequest): Promise<google.cloud.dialogflow.v2.Agent>;

Calls SetAgent.

Parameter
NameDescription
request google.cloud.dialogflow.v2.ISetAgentRequest

SetAgentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Agent>

Promise

trainAgent(request, callback)

public trainAgent(request: google.cloud.dialogflow.v2.ITrainAgentRequest, callback: google.cloud.dialogflow.v2.Agents.TrainAgentCallback): void;

Calls TrainAgent.

Parameters
NameDescription
request google.cloud.dialogflow.v2.ITrainAgentRequest

TrainAgentRequest message or plain object

callback google.cloud.dialogflow.v2.Agents.TrainAgentCallback

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

Returns
TypeDescription
void

trainAgent(request)

public trainAgent(request: google.cloud.dialogflow.v2.ITrainAgentRequest): Promise<google.longrunning.Operation>;

Calls TrainAgent.

Parameter
NameDescription
request google.cloud.dialogflow.v2.ITrainAgentRequest

TrainAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise