class ProjectsLocationsAgentsFlowsVersions extends Resource (View source)

The "versions" collection of methods.

Typical usage is:

 $dialogflowService = new Google\Service\Dialogflow(...);
 $versions = $dialogflowService->projects_locations_agents_flows_versions;

Methods

compareVersions(string $baseVersion, GoogleCloudDialogflowCxV3CompareVersionsRequest $postBody, array $optParams = [])

Compares the specified base version with target version.

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

Creates a Version in the specified Flow. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: CreateVersionOperationMetadata - response: Version (versions.create)

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

Deletes the specified Version. (versions.delete)

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

Retrieves the specified Version. (versions.get)

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

Returns the list of all versions in the specified Flow.

load(string $name, GoogleCloudDialogflowCxV3LoadVersionRequest $postBody, array $optParams = [])

Loads resources in the specified version to the draft flow. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message (versions.load)

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

Updates the specified Version. (versions.patch)

Details

GoogleCloudDialogflowCxV3CompareVersionsResponse compareVersions(string $baseVersion, GoogleCloudDialogflowCxV3CompareVersionsRequest $postBody, array $optParams = [])

Compares the specified base version with target version.

(versions.compareVersions)

Parameters

string $baseVersion

Required. Name of the base flow version to compare with the target version. Use version ID 0 to indicate the draft version of the specified flow. Format: projects//locations//agents//flows//versions/.

GoogleCloudDialogflowCxV3CompareVersionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3CompareVersionsResponse

Exceptions

Exception

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

Creates a Version in the specified Flow. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: CreateVersionOperationMetadata - response: Version (versions.create)

Parameters

string $parent

Required. The Flow to create an Version for. Format: projects//locations//agents//flows/.

GoogleCloudDialogflowCxV3Version $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Deletes the specified Version. (versions.delete)

Parameters

string $name

Required. The name of the Version to delete. Format: projects//locations//agents//flows//versions/.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Retrieves the specified Version. (versions.get)

Parameters

string $name

Required. The name of the Version. Format: projects//locations//agents//flows//versions/.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Version

Exceptions

Exception

GoogleCloudDialogflowCxV3ListVersionsResponse listProjectsLocationsAgentsFlowsVersions(string $parent, array $optParams = [])

Returns the list of all versions in the specified Flow.

(versions.listProjectsLocationsAgentsFlowsVersions)

Parameters

string $parent

Required. The Flow to list all versions for. Format: projects//locations//agents//flows/.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3ListVersionsResponse

Exceptions

Exception

GoogleLongrunningOperation load(string $name, GoogleCloudDialogflowCxV3LoadVersionRequest $postBody, array $optParams = [])

Loads resources in the specified version to the draft flow. This method is a long-running operation. The returned Operation type has the following method-specific fields: - metadata: An empty Struct message - response: An Empty message (versions.load)

Parameters

string $name

Required. The Version to be loaded to draft flow. Format: projects//locations//agents//flows//versions/.

GoogleCloudDialogflowCxV3LoadVersionRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Updates the specified Version. (versions.patch)

Parameters

string $name

Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing number generated by Dialogflow upon version creation.

GoogleCloudDialogflowCxV3Version $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Version

Exceptions

Exception