class ProjectsLocationsDatasets extends Resource (View source)

The "datasets" collection of methods.

Typical usage is:

 $translateService = new Google\Service\Translate(...);
 $datasets = $translateService->projects_locations_datasets;

Methods

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

Creates a Dataset. (datasets.create)

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

Deletes a dataset and all of its contents. (datasets.delete)

exportData(string $dataset, ExportDataRequest $postBody, array $optParams = [])

Exports dataset's data to the provided output location. (datasets.exportData)

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

Gets a Dataset. (datasets.get)

importData(string $dataset, ImportDataRequest $postBody, array $optParams = [])

Import sentence pairs into translation Dataset. (datasets.importData)

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

Lists datasets. (datasets.listProjectsLocationsDatasets)

Details

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

Creates a Dataset. (datasets.create)

Parameters

string $parent

Required. The project name.

Dataset $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a dataset and all of its contents. (datasets.delete)

Parameters

string $name

Required. The name of the dataset to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation exportData(string $dataset, ExportDataRequest $postBody, array $optParams = [])

Exports dataset's data to the provided output location. (datasets.exportData)

Parameters

string $dataset

Required. Name of the dataset. In form of projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset- id}

ExportDataRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets a Dataset. (datasets.get)

Parameters

string $name

Required. The resource name of the dataset to retrieve.

array $optParams

Optional parameters.

Return Value

Dataset

Exceptions

Exception

Operation importData(string $dataset, ImportDataRequest $postBody, array $optParams = [])

Import sentence pairs into translation Dataset. (datasets.importData)

Parameters

string $dataset

Required. Name of the dataset. In form of projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset- id}

ImportDataRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

ListDatasetsResponse listProjectsLocationsDatasets(string $parent, array $optParams = [])

Lists datasets. (datasets.listProjectsLocationsDatasets)

Parameters

string $parent

Required. Name of the parent project. In form of projects/{project-number-or-id}/locations/{location-id}

array $optParams

Optional parameters.

Return Value

ListDatasetsResponse

Exceptions

Exception