Represents an Agents
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.AgentsPackage
@google-cloud/dialogflow!Constructors
(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. |
deleteAgent(request, callback)
public deleteAgent(request: google.cloud.dialogflow.v2.IDeleteAgentRequest, callback: google.cloud.dialogflow.v2.Agents.DeleteAgentCallback): void;Calls DeleteAgent.
| Name | Description |
| 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 |
| Type | Description |
| void |
deleteAgent(request)
public deleteAgent(request: google.cloud.dialogflow.v2.IDeleteAgentRequest): Promise<google.protobuf.Empty>;Calls DeleteAgent.
| Name | Description |
| request |
google.cloud.dialogflow.v2.IDeleteAgentRequest
DeleteAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
exportAgent(request)
public exportAgent(request: google.cloud.dialogflow.v2.IExportAgentRequest): Promise<google.longrunning.Operation>;Calls ExportAgent.
| Name | Description |
| request |
google.cloud.dialogflow.v2.IExportAgentRequest
ExportAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
getAgent(request)
public getAgent(request: google.cloud.dialogflow.v2.IGetAgentRequest): Promise<google.cloud.dialogflow.v2.Agent>;Calls GetAgent.
| Name | Description |
| request |
google.cloud.dialogflow.v2.IGetAgentRequest
GetAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
getValidationResult(request)
public getValidationResult(request: google.cloud.dialogflow.v2.IGetValidationResultRequest): Promise<google.cloud.dialogflow.v2.ValidationResult>;Calls GetValidationResult.
| Name | Description |
| request |
google.cloud.dialogflow.v2.IGetValidationResultRequest
GetValidationResultRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
importAgent(request)
public importAgent(request: google.cloud.dialogflow.v2.IImportAgentRequest): Promise<google.longrunning.Operation>;Calls ImportAgent.
| Name | Description |
| request |
google.cloud.dialogflow.v2.IImportAgentRequest
ImportAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
restoreAgent(request)
public restoreAgent(request: google.cloud.dialogflow.v2.IRestoreAgentRequest): Promise<google.longrunning.Operation>;Calls RestoreAgent.
| Name | Description |
| request |
google.cloud.dialogflow.v2.IRestoreAgentRequest
RestoreAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
searchAgents(request)
public searchAgents(request: google.cloud.dialogflow.v2.ISearchAgentsRequest): Promise<google.cloud.dialogflow.v2.SearchAgentsResponse>;Calls SearchAgents.
| Name | Description |
| request |
google.cloud.dialogflow.v2.ISearchAgentsRequest
SearchAgentsRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
setAgent(request)
public setAgent(request: google.cloud.dialogflow.v2.ISetAgentRequest): Promise<google.cloud.dialogflow.v2.Agent>;Calls SetAgent.
| Name | Description |
| request |
google.cloud.dialogflow.v2.ISetAgentRequest
SetAgentRequest message or plain object |
| Type | Description |
| 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.
| Name | Description |
| 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 |
| Type | Description |
| void |
trainAgent(request)
public trainAgent(request: google.cloud.dialogflow.v2.ITrainAgentRequest): Promise<google.longrunning.Operation>;Calls TrainAgent.
| Name | Description |
| request |
google.cloud.dialogflow.v2.ITrainAgentRequest
TrainAgentRequest message or plain object |
| Type | Description |
| Promise<google.longrunning.Operation> | Promise |