Represents an Agents
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.AgentsPackage
@google-cloud/dialogflowConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Agents service.
Parameters | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IDeleteAgentRequest
DeleteAgentRequest message or plain object |
callback |
DeleteAgentCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteAgent(request)
public deleteAgent(request: google.cloud.dialogflow.v2.IDeleteAgentRequest): Promise<google.protobuf.Empty>;
Calls DeleteAgent.
Parameter | |
---|---|
Name | Description |
request |
IDeleteAgentRequest
DeleteAgentRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IExportAgentRequest
ExportAgentRequest message or plain object |
callback |
ExportAgentCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
exportAgent(request)
public exportAgent(request: google.cloud.dialogflow.v2.IExportAgentRequest): Promise<google.longrunning.Operation>;
Calls ExportAgent.
Parameter | |
---|---|
Name | Description |
request |
IExportAgentRequest
ExportAgentRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IGetAgentRequest
GetAgentRequest message or plain object |
callback |
GetAgentCallback
Node-style callback called with the error, if any, and Agent |
Returns | |
---|---|
Type | Description |
void |
getAgent(request)
public getAgent(request: google.cloud.dialogflow.v2.IGetAgentRequest): Promise<google.cloud.dialogflow.v2.Agent>;
Calls GetAgent.
Parameter | |
---|---|
Name | Description |
request |
IGetAgentRequest
GetAgentRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IGetValidationResultRequest
GetValidationResultRequest message or plain object |
callback |
GetValidationResultCallback
Node-style callback called with the error, if any, and ValidationResult |
Returns | |
---|---|
Type | Description |
void |
getValidationResult(request)
public getValidationResult(request: google.cloud.dialogflow.v2.IGetValidationResultRequest): Promise<google.cloud.dialogflow.v2.ValidationResult>;
Calls GetValidationResult.
Parameter | |
---|---|
Name | Description |
request |
IGetValidationResultRequest
GetValidationResultRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IImportAgentRequest
ImportAgentRequest message or plain object |
callback |
ImportAgentCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
importAgent(request)
public importAgent(request: google.cloud.dialogflow.v2.IImportAgentRequest): Promise<google.longrunning.Operation>;
Calls ImportAgent.
Parameter | |
---|---|
Name | Description |
request |
IImportAgentRequest
ImportAgentRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IRestoreAgentRequest
RestoreAgentRequest message or plain object |
callback |
RestoreAgentCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
restoreAgent(request)
public restoreAgent(request: google.cloud.dialogflow.v2.IRestoreAgentRequest): Promise<google.longrunning.Operation>;
Calls RestoreAgent.
Parameter | |
---|---|
Name | Description |
request |
IRestoreAgentRequest
RestoreAgentRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
ISearchAgentsRequest
SearchAgentsRequest message or plain object |
callback |
SearchAgentsCallback
Node-style callback called with the error, if any, and SearchAgentsResponse |
Returns | |
---|---|
Type | Description |
void |
searchAgents(request)
public searchAgents(request: google.cloud.dialogflow.v2.ISearchAgentsRequest): Promise<google.cloud.dialogflow.v2.SearchAgentsResponse>;
Calls SearchAgents.
Parameter | |
---|---|
Name | Description |
request |
ISearchAgentsRequest
SearchAgentsRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
ISetAgentRequest
SetAgentRequest message or plain object |
callback |
SetAgentCallback
Node-style callback called with the error, if any, and Agent |
Returns | |
---|---|
Type | Description |
void |
setAgent(request)
public setAgent(request: google.cloud.dialogflow.v2.ISetAgentRequest): Promise<google.cloud.dialogflow.v2.Agent>;
Calls SetAgent.
Parameter | |
---|---|
Name | Description |
request |
ISetAgentRequest
SetAgentRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
ITrainAgentRequest
TrainAgentRequest message or plain object |
callback |
TrainAgentCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
trainAgent(request)
public trainAgent(request: google.cloud.dialogflow.v2.ITrainAgentRequest): Promise<google.longrunning.Operation>;
Calls TrainAgent.
Parameter | |
---|---|
Name | Description |
request |
ITrainAgentRequest
TrainAgentRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |