ProjectsLocationsAgentsIntents
class ProjectsLocationsAgentsIntents extends Resource (View source)
The "intents" collection of methods.
Typical usage is:
$dialogflowService = new Google\Service\Dialogflow(...);
$intents = $dialogflowService->projects_locations_agents_intents;
Methods
Creates an intent in the specified agent. Note: You should always train a flow prior to sending it queries. See the training documentation.
Deletes the specified intent. Note: You should always train a flow prior to sending it queries. See the training documentation.
Exports the selected intents. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: ExportIntentsMetadata - response
:
ExportIntentsResponse (intents.export)
Retrieves the specified intent. (intents.get)
Imports the specified intents into the agent. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: ImportIntentsMetadata - response
:
ImportIntentsResponse (intents.import)
Returns the list of all intents in the specified agent.
Updates the specified intent. Note: You should always train a flow prior to sending it queries. See the training documentation.
Details
GoogleCloudDialogflowCxV3Intent
create(string $parent, GoogleCloudDialogflowCxV3Intent $postBody, array $optParams = [])
Creates an intent in the specified agent. Note: You should always train a flow prior to sending it queries. See the training documentation.
(intents.create)
GoogleProtobufEmpty
delete(string $name, array $optParams = [])
Deletes the specified intent. Note: You should always train a flow prior to sending it queries. See the training documentation.
(intents.delete)
GoogleLongrunningOperation
export(string $parent, GoogleCloudDialogflowCxV3ExportIntentsRequest $postBody, array $optParams = [])
Exports the selected intents. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: ExportIntentsMetadata - response
:
ExportIntentsResponse (intents.export)
GoogleCloudDialogflowCxV3Intent
get(string $name, array $optParams = [])
Retrieves the specified intent. (intents.get)
GoogleLongrunningOperation
import(string $parent, GoogleCloudDialogflowCxV3ImportIntentsRequest $postBody, array $optParams = [])
Imports the specified intents into the agent. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: ImportIntentsMetadata - response
:
ImportIntentsResponse (intents.import)
GoogleCloudDialogflowCxV3ListIntentsResponse
listProjectsLocationsAgentsIntents(string $parent, array $optParams = [])
Returns the list of all intents in the specified agent.
(intents.listProjectsLocationsAgentsIntents)
GoogleCloudDialogflowCxV3Intent
patch(string $name, GoogleCloudDialogflowCxV3Intent $postBody, array $optParams = [])
Updates the specified intent. Note: You should always train a flow prior to sending it queries. See the training documentation.
(intents.patch)