class ProjectsLocationsAgentsEntityTypes extends Resource (View source)

The "entityTypes" collection of methods.

Typical usage is:

 $dialogflowService = new Google\Service\Dialogflow(...);
 $entityTypes = $dialogflowService->projects_locations_agents_entityTypes;

Methods

create(string $parent, GoogleCloudDialogflowCxV3EntityType $postBody, array $optParams = [])

Creates an entity type 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 entity type. Note: You should always train a flow prior to sending it queries. See the training documentation.

export(string $parent, GoogleCloudDialogflowCxV3ExportEntityTypesRequest $postBody, array $optParams = [])

Exports the selected entity types. (entityTypes.export)

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

Retrieves the specified entity type. (entityTypes.get)

import(string $parent, GoogleCloudDialogflowCxV3ImportEntityTypesRequest $postBody, array $optParams = [])

Imports the specified entitytypes into the agent. (entityTypes.import)

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

Returns the list of all entity types in the specified agent.

patch(string $name, GoogleCloudDialogflowCxV3EntityType $postBody, array $optParams = [])

Updates the specified entity type. Note: You should always train a flow prior to sending it queries. See the training documentation.

Details

GoogleCloudDialogflowCxV3EntityType create(string $parent, GoogleCloudDialogflowCxV3EntityType $postBody, array $optParams = [])

Creates an entity type in the specified agent. Note: You should always train a flow prior to sending it queries. See the training documentation.

(entityTypes.create)

Parameters

string $parent

Required. The agent to create a entity type for. Format: projects//locations//agents/.

GoogleCloudDialogflowCxV3EntityType $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3EntityType

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes the specified entity type. Note: You should always train a flow prior to sending it queries. See the training documentation.

(entityTypes.delete)

Parameters

string $name

Required. The name of the entity type to delete. Format: projects//locations//agents//entityTypes/.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleLongrunningOperation export(string $parent, GoogleCloudDialogflowCxV3ExportEntityTypesRequest $postBody, array $optParams = [])

Exports the selected entity types. (entityTypes.export)

Parameters

string $parent

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

GoogleCloudDialogflowCxV3ExportEntityTypesRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Retrieves the specified entity type. (entityTypes.get)

Parameters

string $name

Required. The name of the entity type. Format: projects//locations//agents//entityTypes/.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3EntityType

Exceptions

Exception

GoogleLongrunningOperation import(string $parent, GoogleCloudDialogflowCxV3ImportEntityTypesRequest $postBody, array $optParams = [])

Imports the specified entitytypes into the agent. (entityTypes.import)

Parameters

string $parent

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

GoogleCloudDialogflowCxV3ImportEntityTypesRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudDialogflowCxV3ListEntityTypesResponse listProjectsLocationsAgentsEntityTypes(string $parent, array $optParams = [])

Returns the list of all entity types in the specified agent.

(entityTypes.listProjectsLocationsAgentsEntityTypes)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3ListEntityTypesResponse

Exceptions

Exception

GoogleCloudDialogflowCxV3EntityType patch(string $name, GoogleCloudDialogflowCxV3EntityType $postBody, array $optParams = [])

Updates the specified entity type. Note: You should always train a flow prior to sending it queries. See the training documentation.

(entityTypes.patch)

Parameters

string $name

The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType. Format: projects//locations//agents//entityTypes/.

GoogleCloudDialogflowCxV3EntityType $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3EntityType

Exceptions

Exception