Represents an Agents
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3.AgentsPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new Agents service.
| Name | Description |
| 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.
| Name | Description |
| rpcImpl |
$protobuf.RPCImpl
RPC implementation |
| requestDelimited |
boolean
Whether requests are length-delimited |
| responseDelimited |
boolean
Whether responses are length-delimited |
| Type | Description |
| 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.
| Name | Description |
| request |
ICreateAgentRequest
CreateAgentRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.CreateAgentCallback
Node-style callback called with the error, if any, and Agent |
| Type | Description |
| void |
createAgent(request)
public createAgent(request: google.cloud.dialogflow.cx.v3.ICreateAgentRequest): Promise<google.cloud.dialogflow.cx.v3.Agent>;Calls CreateAgent.
| Name | Description |
| request |
ICreateAgentRequest
CreateAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| request |
google.cloud.dialogflow.cx.v3.IDeleteAgentRequest
DeleteAgentRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.DeleteAgentCallback
Node-style callback called with the error, if any, and Empty |
| Type | Description |
| void |
deleteAgent(request)
public deleteAgent(request: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest): Promise<google.protobuf.Empty>;Calls DeleteAgent.
| Name | Description |
| request |
google.cloud.dialogflow.cx.v3.IDeleteAgentRequest
DeleteAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| request |
IExportAgentRequest
ExportAgentRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.ExportAgentCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
exportAgent(request)
public exportAgent(request: google.cloud.dialogflow.cx.v3.IExportAgentRequest): Promise<google.longrunning.Operation>;Calls ExportAgent.
| Name | Description |
| request |
IExportAgentRequest
ExportAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| request |
IGetAgentRequest
GetAgentRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.GetAgentCallback
Node-style callback called with the error, if any, and Agent |
| Type | Description |
| void |
getAgent(request)
public getAgent(request: google.cloud.dialogflow.cx.v3.IGetAgentRequest): Promise<google.cloud.dialogflow.cx.v3.Agent>;Calls GetAgent.
| Name | Description |
| request |
IGetAgentRequest
GetAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| request |
IGetAgentValidationResultRequest
GetAgentValidationResultRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResultCallback
Node-style callback called with the error, if any, and AgentValidationResult |
| Type | Description |
| void |
getAgentValidationResult(request)
public getAgentValidationResult(request: google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest): Promise<google.cloud.dialogflow.cx.v3.AgentValidationResult>;Calls GetAgentValidationResult.
| Name | Description |
| request |
IGetAgentValidationResultRequest
GetAgentValidationResultRequest message or plain object |
| Type | Description |
| Promise<google.cloud.dialogflow.cx.v3.AgentValidationResult> | Promise |
listAgents(request, callback)
public listAgents(request: google.cloud.dialogflow.cx.v3.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3.Agents.ListAgentsCallback): void;Calls ListAgents.
| Name | Description |
| request |
IListAgentsRequest
ListAgentsRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.ListAgentsCallback
Node-style callback called with the error, if any, and ListAgentsResponse |
| Type | Description |
| void |
listAgents(request)
public listAgents(request: google.cloud.dialogflow.cx.v3.IListAgentsRequest): Promise<google.cloud.dialogflow.cx.v3.ListAgentsResponse>;Calls ListAgents.
| Name | Description |
| request |
IListAgentsRequest
ListAgentsRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| request |
google.cloud.dialogflow.cx.v3.IRestoreAgentRequest
RestoreAgentRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.RestoreAgentCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
restoreAgent(request)
public restoreAgent(request: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest): Promise<google.longrunning.Operation>;Calls RestoreAgent.
| Name | Description |
| request |
google.cloud.dialogflow.cx.v3.IRestoreAgentRequest
RestoreAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| request |
IUpdateAgentRequest
UpdateAgentRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.UpdateAgentCallback
Node-style callback called with the error, if any, and Agent |
| Type | Description |
| void |
updateAgent(request)
public updateAgent(request: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest): Promise<google.cloud.dialogflow.cx.v3.Agent>;Calls UpdateAgent.
| Name | Description |
| request |
IUpdateAgentRequest
UpdateAgentRequest message or plain object |
| Type | Description |
| Promise<google.cloud.dialogflow.cx.v3.Agent> | Promise |
validateAgent(request, callback)
public validateAgent(request: google.cloud.dialogflow.cx.v3.IValidateAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.ValidateAgentCallback): void;Calls ValidateAgent.
| Name | Description |
| request |
IValidateAgentRequest
ValidateAgentRequest message or plain object |
| callback |
google.cloud.dialogflow.cx.v3.Agents.ValidateAgentCallback
Node-style callback called with the error, if any, and AgentValidationResult |
| Type | Description |
| void |
validateAgent(request)
public validateAgent(request: google.cloud.dialogflow.cx.v3.IValidateAgentRequest): Promise<google.cloud.dialogflow.cx.v3.AgentValidationResult>;Calls ValidateAgent.
| Name | Description |
| request |
IValidateAgentRequest
ValidateAgentRequest message or plain object |
| Type | Description |
| Promise<google.cloud.dialogflow.cx.v3.AgentValidationResult> | Promise |