Class protos.google.cloud.dialogflow.cx.v3.Agents (4.6.0)

Represents an Agents

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.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.v3.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.CreateAgentCallback): void;

Calls CreateAgent.

Parameters
NameDescription
request ICreateAgentRequest

CreateAgentRequest message or plain object

callback CreateAgentCallback

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

Returns
TypeDescription
void

createAgent(request)

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

Calls CreateAgent.

Parameter
NameDescription
request ICreateAgentRequest

CreateAgentRequest message or plain object

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

Promise

deleteAgent(request, callback)

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

Calls DeleteAgent.

Parameters
NameDescription
request IDeleteAgentRequest

DeleteAgentRequest message or plain object

callback DeleteAgentCallback

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

Returns
TypeDescription
void

deleteAgent(request)

public deleteAgent(request: google.cloud.dialogflow.cx.v3.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.v3.IExportAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.ExportAgentCallback): void;

Calls ExportAgent.

Parameters
NameDescription
request IExportAgentRequest

ExportAgentRequest message or plain object

callback ExportAgentCallback

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

Returns
TypeDescription
void

exportAgent(request)

public exportAgent(request: google.cloud.dialogflow.cx.v3.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.v3.IGetAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.GetAgentCallback): void;

Calls GetAgent.

Parameters
NameDescription
request IGetAgentRequest

GetAgentRequest message or plain object

callback GetAgentCallback

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

Returns
TypeDescription
void

getAgent(request)

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

Calls GetAgent.

Parameter
NameDescription
request IGetAgentRequest

GetAgentRequest message or plain object

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

Promise

getAgentValidationResult(request, callback)

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

Calls GetAgentValidationResult.

Parameters
NameDescription
request IGetAgentValidationResultRequest

GetAgentValidationResultRequest message or plain object

callback GetAgentValidationResultCallback

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

Returns
TypeDescription
void

getAgentValidationResult(request)

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

Calls GetAgentValidationResult.

Parameter
NameDescription
request IGetAgentValidationResultRequest

GetAgentValidationResultRequest message or plain object

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

Promise

getGenerativeSettings(request, callback)

public getGenerativeSettings(request: google.cloud.dialogflow.cx.v3.IGetGenerativeSettingsRequest, callback: google.cloud.dialogflow.cx.v3.Agents.GetGenerativeSettingsCallback): void;

Calls GetGenerativeSettings.

Parameters
NameDescription
request IGetGenerativeSettingsRequest

GetGenerativeSettingsRequest message or plain object

callback GetGenerativeSettingsCallback

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

Returns
TypeDescription
void

getGenerativeSettings(request)

public getGenerativeSettings(request: google.cloud.dialogflow.cx.v3.IGetGenerativeSettingsRequest): Promise<google.cloud.dialogflow.cx.v3.GenerativeSettings>;

Calls GetGenerativeSettings.

Parameter
NameDescription
request IGetGenerativeSettingsRequest

GetGenerativeSettingsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.GenerativeSettings>

Promise

listAgents(request, callback)

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

Calls ListAgents.

Parameters
NameDescription
request IListAgentsRequest

ListAgentsRequest message or plain object

callback ListAgentsCallback

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

Returns
TypeDescription
void

listAgents(request)

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

Calls ListAgents.

Parameter
NameDescription
request IListAgentsRequest

ListAgentsRequest message or plain object

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

Promise

restoreAgent(request, callback)

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

Calls RestoreAgent.

Parameters
NameDescription
request IRestoreAgentRequest

RestoreAgentRequest message or plain object

callback RestoreAgentCallback

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

Returns
TypeDescription
void

restoreAgent(request)

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

Calls RestoreAgent.

Parameter
NameDescription
request IRestoreAgentRequest

RestoreAgentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateAgent(request, callback)

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

Calls UpdateAgent.

Parameters
NameDescription
request IUpdateAgentRequest

UpdateAgentRequest message or plain object

callback UpdateAgentCallback

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

Returns
TypeDescription
void

updateAgent(request)

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

Calls UpdateAgent.

Parameter
NameDescription
request IUpdateAgentRequest

UpdateAgentRequest message or plain object

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

Promise

updateGenerativeSettings(request, callback)

public updateGenerativeSettings(request: google.cloud.dialogflow.cx.v3.IUpdateGenerativeSettingsRequest, callback: google.cloud.dialogflow.cx.v3.Agents.UpdateGenerativeSettingsCallback): void;

Calls UpdateGenerativeSettings.

Parameters
NameDescription
request IUpdateGenerativeSettingsRequest

UpdateGenerativeSettingsRequest message or plain object

callback UpdateGenerativeSettingsCallback

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

Returns
TypeDescription
void

updateGenerativeSettings(request)

public updateGenerativeSettings(request: google.cloud.dialogflow.cx.v3.IUpdateGenerativeSettingsRequest): Promise<google.cloud.dialogflow.cx.v3.GenerativeSettings>;

Calls UpdateGenerativeSettings.

Parameter
NameDescription
request IUpdateGenerativeSettingsRequest

UpdateGenerativeSettingsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.cx.v3.GenerativeSettings>

Promise

validateAgent(request, callback)

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

Calls ValidateAgent.

Parameters
NameDescription
request IValidateAgentRequest

ValidateAgentRequest message or plain object

callback ValidateAgentCallback

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

Returns
TypeDescription
void

validateAgent(request)

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

Calls ValidateAgent.

Parameter
NameDescription
request IValidateAgentRequest

ValidateAgentRequest message or plain object

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

Promise