class ProjectsLocationsAgentsGenerators extends Resource (View source)

The "generators" collection of methods.

Typical usage is:

 $dialogflowService = new Google\Service\Dialogflow(...);
 $generators = $dialogflowService->projects_locations_agents_generators;

Methods

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

Creates a generator in the specified agent. (generators.create)

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

Deletes the specified generators. (generators.delete)

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

Retrieves the specified generator. (generators.get)

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

Returns the list of all generators in the specified agent.

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

Update the specified generator. (generators.patch)

Details

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

Creates a generator in the specified agent. (generators.create)

Parameters

string $parent

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

GoogleCloudDialogflowCxV3Generator $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Generator

Exceptions

Exception

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

Deletes the specified generators. (generators.delete)

Parameters

string $name

Required. The name of the generator to delete. Format: projects//locations//agents//generators/.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Retrieves the specified generator. (generators.get)

Parameters

string $name

Required. The name of the generator. Format: projects//locations//agents//generators/.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Generator

Exceptions

Exception

GoogleCloudDialogflowCxV3ListGeneratorsResponse listProjectsLocationsAgentsGenerators(string $parent, array $optParams = [])

Returns the list of all generators in the specified agent.

(generators.listProjectsLocationsAgentsGenerators)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3ListGeneratorsResponse

Exceptions

Exception

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

Update the specified generator. (generators.patch)

Parameters

string $name

The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. Generators.CreateGenerate populates the name automatically. Format: projects//locations//agents//generators/.

GoogleCloudDialogflowCxV3Generator $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Generator

Exceptions

Exception