Skip to main content

adaptive_mt_files

Creates, updates, deletes, gets or lists a adaptive_mt_files resource.

Overview

Nameadaptive_mt_files
TypeResource
Idgoogle.translate.adaptive_mt_files

Fields

NameDatatypeDescription
namestringRequired. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}
createTimestringOutput only. Timestamp when this file was created.
displayNamestringThe file's display name.
entryCountintegerThe number of entries that the file contains.
updateTimestringOutput only. Timestamp when this file was last updated.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_adaptive_mt_datasets_adaptive_mt_files_getSELECTadaptiveMtDatasetsId, adaptiveMtFilesId, locationsId, projectsIdGets and AdaptiveMtFile
projects_locations_adaptive_mt_datasets_adaptive_mt_files_listSELECTadaptiveMtDatasetsId, locationsId, projectsIdLists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
projects_locations_adaptive_mt_datasets_adaptive_mt_files_deleteDELETEadaptiveMtDatasetsId, adaptiveMtFilesId, locationsId, projectsIdDeletes an AdaptiveMtFile along with its sentences.

SELECT examples

Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

SELECT
name,
createTime,
displayName,
entryCount,
updateTime
FROM google.translate.adaptive_mt_files
WHERE adaptiveMtDatasetsId = '{{ adaptiveMtDatasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified adaptive_mt_files resource.

/*+ delete */
DELETE FROM google.translate.adaptive_mt_files
WHERE adaptiveMtDatasetsId = '{{ adaptiveMtDatasetsId }}'
AND adaptiveMtFilesId = '{{ adaptiveMtFilesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';