Constructor
new Agents(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Agents service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createAgent(request, callback) → {undefined}
Calls CreateAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest |
CreateAgentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback |
Node-style callback called with the error, if any, and Agent |
Returns:
Type | Description |
---|---|
undefined |
createAgent(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Agent>}
Calls CreateAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest |
CreateAgentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.Agent> |
Promise |
deleteAgent(request, callback) → {undefined}
Calls DeleteAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest |
DeleteAgentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
deleteAgent(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest |
DeleteAgentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
exportAgent(request, callback) → {undefined}
Calls ExportAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest |
ExportAgentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
exportAgent(request) → {Promise.<google.longrunning.Operation>}
Calls ExportAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest |
ExportAgentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
getAgent(request, callback) → {undefined}
Calls GetAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest |
GetAgentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback |
Node-style callback called with the error, if any, and Agent |
Returns:
Type | Description |
---|---|
undefined |
getAgent(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Agent>}
Calls GetAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest |
GetAgentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.Agent> |
Promise |
getAgentValidationResult(request, callback) → {undefined}
Calls GetAgentValidationResult.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest |
GetAgentValidationResultRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResultCallback |
Node-style callback called with the error, if any, and AgentValidationResult |
Returns:
Type | Description |
---|---|
undefined |
getAgentValidationResult(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.AgentValidationResult>}
Calls GetAgentValidationResult.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetAgentValidationResultRequest |
GetAgentValidationResultRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.AgentValidationResult> |
Promise |
getGenerativeSettings(request, callback) → {undefined}
Calls GetGenerativeSettings.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest |
GetGenerativeSettingsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.GetGenerativeSettingsCallback |
Node-style callback called with the error, if any, and GenerativeSettings |
Returns:
Type | Description |
---|---|
undefined |
getGenerativeSettings(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.GenerativeSettings>}
Calls GetGenerativeSettings.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IGetGenerativeSettingsRequest |
GetGenerativeSettingsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.GenerativeSettings> |
Promise |
listAgents(request, callback) → {undefined}
Calls ListAgents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest |
ListAgentsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback |
Node-style callback called with the error, if any, and ListAgentsResponse |
Returns:
Type | Description |
---|---|
undefined |
listAgents(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse>}
Calls ListAgents.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest |
ListAgentsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse> |
Promise |
restoreAgent(request, callback) → {undefined}
Calls RestoreAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest |
RestoreAgentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
restoreAgent(request) → {Promise.<google.longrunning.Operation>}
Calls RestoreAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest |
RestoreAgentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
updateAgent(request, callback) → {undefined}
Calls UpdateAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest |
UpdateAgentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback |
Node-style callback called with the error, if any, and Agent |
Returns:
Type | Description |
---|---|
undefined |
updateAgent(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.Agent>}
Calls UpdateAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest |
UpdateAgentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.Agent> |
Promise |
updateGenerativeSettings(request, callback) → {undefined}
Calls UpdateGenerativeSettings.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest |
UpdateGenerativeSettingsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.UpdateGenerativeSettingsCallback |
Node-style callback called with the error, if any, and GenerativeSettings |
Returns:
Type | Description |
---|---|
undefined |
updateGenerativeSettings(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.GenerativeSettings>}
Calls UpdateGenerativeSettings.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateGenerativeSettingsRequest |
UpdateGenerativeSettingsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.GenerativeSettings> |
Promise |
validateAgent(request, callback) → {undefined}
Calls ValidateAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest |
ValidateAgentRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgentCallback |
Node-style callback called with the error, if any, and AgentValidationResult |
Returns:
Type | Description |
---|---|
undefined |
validateAgent(request) → {Promise.<google.cloud.dialogflow.cx.v3beta1.AgentValidationResult>}
Calls ValidateAgent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.cx.v3beta1.IValidateAgentRequest |
ValidateAgentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.cx.v3beta1.AgentValidationResult> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Agents}
Creates new Agents service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
Agents |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateAgentCallback(error, responseopt)
Callback as used by createAgent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.Agent |
<optional> |
Agent |
DeleteAgentCallback(error, responseopt)
Callback as used by deleteAgent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
ExportAgentCallback(error, responseopt)
Callback as used by exportAgent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
GetAgentCallback(error, responseopt)
Callback as used by getAgent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.Agent |
<optional> |
Agent |
GetAgentValidationResultCallback(error, responseopt)
Callback as used by getAgentValidationResult.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.AgentValidationResult |
<optional> |
AgentValidationResult |
GetGenerativeSettingsCallback(error, responseopt)
Callback as used by getGenerativeSettings.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.GenerativeSettings |
<optional> |
GenerativeSettings |
ListAgentsCallback(error, responseopt)
Callback as used by listAgents.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse |
<optional> |
ListAgentsResponse |
RestoreAgentCallback(error, responseopt)
Callback as used by restoreAgent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
UpdateAgentCallback(error, responseopt)
Callback as used by updateAgent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.Agent |
<optional> |
Agent |
UpdateGenerativeSettingsCallback(error, responseopt)
Callback as used by updateGenerativeSettings.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.GenerativeSettings |
<optional> |
GenerativeSettings |
ValidateAgentCallback(error, responseopt)
Callback as used by validateAgent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.cx.v3beta1.AgentValidationResult |
<optional> |
AgentValidationResult |