Class protos.google.cloud.dialogflow.cx.v3beta1.Agents

Represents an Agents

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.Agents

Package

@google-cloud/dialogflow-cx

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.

createAgent(request, callback)

public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback): void;

Calls CreateAgent.

Parameters
NameDescription
request ICreateAgentRequest

CreateAgentRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback

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

Returns
TypeDescription
void

createAgent(request)

public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Agent>;

Calls CreateAgent.

Parameter
NameDescription
request ICreateAgentRequest

CreateAgentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.Agent>

Promise

deleteAgent(request, callback)

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

Calls DeleteAgent.

Parameters
NameDescription
request IDeleteAgentRequest

DeleteAgentRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback

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

Returns
TypeDescription
void

deleteAgent(request)

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

Calls DeleteAgent.

Parameter
NameDescription
request IDeleteAgentRequest

DeleteAgentRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

exportAgent(request, callback)

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

Calls ExportAgent.

Parameters
NameDescription
request IExportAgentRequest

ExportAgentRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback

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

Returns
TypeDescription
void

exportAgent(request)

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

Calls ExportAgent.

Parameter
NameDescription
request IExportAgentRequest

ExportAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getAgent(request, callback)

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

Calls GetAgent.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest

GetAgentRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback

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

Returns
TypeDescription
void

getAgent(request)

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

Calls GetAgent.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest

GetAgentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.Agent>

Promise

getAgentValidationResult(request, callback)

public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback): void;

Calls GetAgentValidationResult.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest

GetAgentValidationResultRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback

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

Returns
TypeDescription
void

getAgentValidationResult(request)

public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest): Promise<google.cloud.dialogflow.cx.v3beta1.AgentValidationResult>;

Calls GetAgentValidationResult.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest

GetAgentValidationResultRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.AgentValidationResult>

Promise

listAgents(request, callback)

public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback): void;

Calls ListAgents.

Parameters
NameDescription
request IListAgentsRequest

ListAgentsRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback

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

Returns
TypeDescription
void

listAgents(request)

public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse>;

Calls ListAgents.

Parameter
NameDescription
request IListAgentsRequest

ListAgentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse>

Promise

restoreAgent(request, callback)

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

Calls RestoreAgent.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest

RestoreAgentRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback

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

Returns
TypeDescription
void

restoreAgent(request)

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

Calls RestoreAgent.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest

RestoreAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateAgent(request, callback)

public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback): void;

Calls UpdateAgent.

Parameters
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest

UpdateAgentRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback

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

Returns
TypeDescription
void

updateAgent(request)

public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Agent>;

Calls UpdateAgent.

Parameter
NameDescription
request google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest

UpdateAgentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.Agent>

Promise

validateAgent(request, callback)

public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback): void;

Calls ValidateAgent.

Parameters
NameDescription
request IValidateAgentRequest

ValidateAgentRequest message or plain object

callback google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback

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

Returns
TypeDescription
void

validateAgent(request)

public validateAgent(request: google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest): Promise<google.cloud.dialogflow.cx.v3beta1.AgentValidationResult>;

Calls ValidateAgent.

Parameter
NameDescription
request IValidateAgentRequest

ValidateAgentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3beta1.AgentValidationResult>

Promise