class ProjectsLocationsAdaptiveMtDatasets extends Resource (View source)

The "adaptiveMtDatasets" collection of methods.

Typical usage is:

 $translateService = new Google\Service\Translate(...);
 $adaptiveMtDatasets = $translateService->projects_locations_adaptiveMtDatasets;

Methods

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

Creates an Adaptive MT dataset. (adaptiveMtDatasets.create)

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

Deletes an Adaptive MT dataset, including all its entries and associated metadata. (adaptiveMtDatasets.delete)

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

Gets the Adaptive MT dataset. (adaptiveMtDatasets.get)

importAdaptiveMtFile(string $parent, ImportAdaptiveMtFileRequest $postBody, array $optParams = [])

Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset. (adaptiveMtDatasets.importAdaptiveMtFile)

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

Lists all Adaptive MT datasets for which the caller has read permission.

Details

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

Creates an Adaptive MT dataset. (adaptiveMtDatasets.create)

Parameters

string $parent

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

AdaptiveMtDataset $postBody
array $optParams

Optional parameters.

Return Value

AdaptiveMtDataset

Exceptions

Exception

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

Deletes an Adaptive MT dataset, including all its entries and associated metadata. (adaptiveMtDatasets.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

TranslateEmpty

Exceptions

Exception

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

Gets the Adaptive MT dataset. (adaptiveMtDatasets.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

AdaptiveMtDataset

Exceptions

Exception

ImportAdaptiveMtFileResponse importAdaptiveMtFile(string $parent, ImportAdaptiveMtFileRequest $postBody, array $optParams = [])

Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset. (adaptiveMtDatasets.importAdaptiveMtFile)

Parameters

string $parent

Required. The resource name of the file, in form of projects/{project-number-or- id}/locations/{location_id}/adaptiveMtDatasets/{dataset}

ImportAdaptiveMtFileRequest $postBody
array $optParams

Optional parameters.

Return Value

ImportAdaptiveMtFileResponse

Exceptions

Exception

ListAdaptiveMtDatasetsResponse listProjectsLocationsAdaptiveMtDatasets(string $parent, array $optParams = [])

Lists all Adaptive MT datasets for which the caller has read permission.

(adaptiveMtDatasets.listProjectsLocationsAdaptiveMtDatasets)

Parameters

string $parent

Required. The resource name of the project from which to list the Adaptive MT datasets. projects/{project-number-or- id}/locations/{location-id}

array $optParams

Optional parameters.

Return Value

ListAdaptiveMtDatasetsResponse

Exceptions

Exception