class ProjectsLocationsAgentsSessionsEntityTypes extends Resource (View source)

The "entityTypes" collection of methods.

Typical usage is:

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

Methods

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

Creates a session entity type. (entityTypes.create)

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

Deletes the specified session entity type. (entityTypes.delete)

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

Retrieves the specified session entity type. (entityTypes.get)

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

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

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

Updates the specified session entity type. (entityTypes.patch)

Details

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

Creates a session entity type. (entityTypes.create)

Parameters

string $parent

Required. The session to create a session entity type for. Format: projects//locations//agents//sessions/ or projects//locations//agents//environments//sessions/. If Environment ID is not specified, we assume default 'draft' environment.

GoogleCloudDialogflowCxV3SessionEntityType $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3SessionEntityType

Exceptions

Exception

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

Deletes the specified session entity type. (entityTypes.delete)

Parameters

string $name

Required. The name of the session entity type to delete. Format: projects//locations//agents//sessions//entityTypes/ or projects//locations//agents//environments//sessions//entityTypes/. If Environment ID is not specified, we assume default 'draft' environment.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Retrieves the specified session entity type. (entityTypes.get)

Parameters

string $name

Required. The name of the session entity type. Format: projects//locations//agents//sessions//entityTypes/ or projects//locations//agents//environments//sessions//entityTypes/. If Environment ID is not specified, we assume default 'draft' environment.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3SessionEntityType

Exceptions

Exception

GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse listProjectsLocationsAgentsSessionsEntityTypes(string $parent, array $optParams = [])

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

(entityTypes.listProjectsLocationsAgentsSessionsEntityTypes)

Parameters

string $parent

Required. The session to list all session entity types from. Format: projects//locations//agents//sessions/ or projects//locations//agents//environments//sessions/. If Environment ID is not specified, we assume default 'draft' environment.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse

Exceptions

Exception

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

Updates the specified session entity type. (entityTypes.patch)

Parameters

string $name

Required. The unique identifier of the session entity type. Format: projects//locations//agents//sessions//entityTypes/ or projects//locations//agents//environments//sessions//entityTypes/. If Environment ID is not specified, we assume default 'draft' environment.

GoogleCloudDialogflowCxV3SessionEntityType $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3SessionEntityType

Exceptions

Exception