Skip to main content

adaptive_mt_files

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

Overview​

Nameadaptive_mt_files
TypeResource
Idgoogle.translate.adaptive_mt_files

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}
createTimestring (google-datetime)Output only. Timestamp when this file was created.
displayNamestringThe file's display name.
entryCountinteger (int32)The number of entries that the file contains.
updateTimestring (google-datetime)Output only. Timestamp when this file was last updated.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_adaptive_mt_datasets_adaptive_mt_files_getselectprojectsId, locationsId, adaptiveMtDatasetsId, adaptiveMtFilesIdGets and AdaptiveMtFile
projects_locations_adaptive_mt_datasets_adaptive_mt_files_listselectprojectsId, locationsId, adaptiveMtDatasetsIdpageSize, pageTokenLists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
projects_locations_adaptive_mt_datasets_adaptive_mt_files_deletedeleteprojectsId, locationsId, adaptiveMtDatasetsId, adaptiveMtFilesIdDeletes an AdaptiveMtFile along with its sentences.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
adaptiveMtDatasetsIdstring
adaptiveMtFilesIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Gets and AdaptiveMtFile

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

DELETE examples​

Deletes an AdaptiveMtFile along with its sentences.

DELETE FROM google.translate.adaptive_mt_files
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND adaptiveMtDatasetsId = '{{ adaptiveMtDatasetsId }}' --required
AND adaptiveMtFilesId = '{{ adaptiveMtFilesId }}' --required
;