Class protos.google.cloud.dialogflow.v2beta1.Agents (3.5.0)

Represents an Agents

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2beta1.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.v2beta1.IDeleteAgentRequest, callback: google.cloud.dialogflow.v2beta1.Agents.DeleteAgentCallback): void;

Calls DeleteAgent.

Parameters
NameDescription
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
TypeDescription
void

deleteAgent(request)

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

Calls DeleteAgent.

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

DeleteAgentRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

exportAgent(request, callback)

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

Calls ExportAgent.

Parameters
NameDescription
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
TypeDescription
void

exportAgent(request)

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

Calls ExportAgent.

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

ExportAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getAgent(request, callback)

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

Calls GetAgent.

Parameters
NameDescription
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
TypeDescription
void

getAgent(request)

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

Calls GetAgent.

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

GetAgentRequest message or plain object

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

Promise

getValidationResult(request, callback)

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

Calls GetValidationResult.

Parameters
NameDescription
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
TypeDescription
void

getValidationResult(request)

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

Calls GetValidationResult.

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

GetValidationResultRequest message or plain object

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

Promise

importAgent(request, callback)

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

Calls ImportAgent.

Parameters
NameDescription
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
TypeDescription
void

importAgent(request)

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

Calls ImportAgent.

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

ImportAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

restoreAgent(request, callback)

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

Calls RestoreAgent.

Parameters
NameDescription
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
TypeDescription
void

restoreAgent(request)

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

Calls RestoreAgent.

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

RestoreAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

searchAgents(request, callback)

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

Calls SearchAgents.

Parameters
NameDescription
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
TypeDescription
void

searchAgents(request)

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

Calls SearchAgents.

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

SearchAgentsRequest message or plain object

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

Promise

setAgent(request, callback)

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

Calls SetAgent.

Parameters
NameDescription
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
TypeDescription
void

setAgent(request)

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

Calls SetAgent.

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

SetAgentRequest message or plain object

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

Promise

trainAgent(request, callback)

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

Calls TrainAgent.

Parameters
NameDescription
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
TypeDescription
void

trainAgent(request)

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

Calls TrainAgent.

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

TrainAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise