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