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

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.

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.

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)

get(string $name, array $optParams = [])

Retrieves the specified intent. (intents.get)

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)

listProjectsLocationsAgentsIntents(string $parent, array $optParams = [])

Returns the list of all intents in the specified agent.

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.

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)

Parameters

string $parent

Required. The agent to create an intent for. Format: projects//locations//agents/.

GoogleCloudDialogflowCxV3Intent $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Intent

Exceptions

Exception

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)

Parameters

string $name

Required. The name of the intent to delete. Format: projects//locations//agents//intents/.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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)

Parameters

string $parent

Required. The name of the parent agent to export intents. Format: projects//locations//agents/.

GoogleCloudDialogflowCxV3ExportIntentsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudDialogflowCxV3Intent get(string $name, array $optParams = [])

Retrieves the specified intent. (intents.get)

Parameters

string $name

Required. The name of the intent. Format: projects//locations//agents//intents/.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Intent

Exceptions

Exception

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)

Parameters

string $parent

Required. The agent to import the intents into. Format: projects//locations//agents/.

GoogleCloudDialogflowCxV3ImportIntentsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudDialogflowCxV3ListIntentsResponse listProjectsLocationsAgentsIntents(string $parent, array $optParams = [])

Returns the list of all intents in the specified agent.

(intents.listProjectsLocationsAgentsIntents)

Parameters

string $parent

Required. The agent to list all intents for. Format: projects//locations//agents/.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3ListIntentsResponse

Exceptions

Exception

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)

Parameters

string $name

The unique identifier of the intent. Required for the Intents.UpdateIntent method. Intents.CreateIntent populates the name automatically. Format: projects//locations//agents//intents/.

GoogleCloudDialogflowCxV3Intent $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Intent

Exceptions

Exception