class ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFiles extends Resource (View source)

The "adaptiveMtFiles" collection of methods.

Typical usage is:

 $translateService = new Google\Service\Translate(...);
 $adaptiveMtFiles = $translateService->projects_locations_adaptiveMtDatasets_adaptiveMtFiles;

Methods

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

Deletes an AdaptiveMtFile along with its sentences. (adaptiveMtFiles.delete)

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

Gets and AdaptiveMtFile (adaptiveMtFiles.get)

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

Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

Details

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

Deletes an AdaptiveMtFile along with its sentences. (adaptiveMtFiles.delete)

Parameters

string $name

Required. The resource name of the file to delete, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDa tasets/{dataset}/adaptiveMtFiles/{file}

array $optParams

Optional parameters.

Return Value

TranslateEmpty

Exceptions

Exception

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

Gets and AdaptiveMtFile (adaptiveMtFiles.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

AdaptiveMtFile

Exceptions

Exception

ListAdaptiveMtFilesResponse listProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFiles(string $parent, array $optParams = [])

Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

(adaptiveMtFiles.listProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFiles)

Parameters

string $parent

Required. The resource name of the project from which to list the Adaptive MT files. projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}

array $optParams

Optional parameters.

Return Value

ListAdaptiveMtFilesResponse

Exceptions

Exception