adaptive_mt_files
Creates, updates, deletes, gets or lists an adaptive_mt_files
resource.
Overview
Name | adaptive_mt_files |
Type | Resource |
Id | google.translate.adaptive_mt_files |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_adaptive_mt_datasets_adaptive_mt_files_get
- projects_locations_adaptive_mt_datasets_adaptive_mt_files_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file} |
createTime | string (google-datetime) | Output only. Timestamp when this file was created. |
displayName | string | The file's display name. |
entryCount | integer (int32) | The number of entries that the file contains. |
updateTime | string (google-datetime) | Output only. Timestamp when this file was last updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file} |
createTime | string (google-datetime) | Output only. Timestamp when this file was created. |
displayName | string | The file's display name. |
entryCount | integer (int32) | The number of entries that the file contains. |
updateTime | string (google-datetime) | Output only. Timestamp when this file was last updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_adaptive_mt_datasets_adaptive_mt_files_get | select | projectsId , locationsId , adaptiveMtDatasetsId , adaptiveMtFilesId | Gets and AdaptiveMtFile | |
projects_locations_adaptive_mt_datasets_adaptive_mt_files_list | select | projectsId , locationsId , adaptiveMtDatasetsId | pageSize , pageToken | Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset. |
projects_locations_adaptive_mt_datasets_adaptive_mt_files_delete | delete | projectsId , locationsId , adaptiveMtDatasetsId , adaptiveMtFilesId | Deletes 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.
Name | Datatype | Description |
---|---|---|
adaptiveMtDatasetsId | string | |
adaptiveMtFilesId | string | |
locationsId | string | |
projectsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- projects_locations_adaptive_mt_datasets_adaptive_mt_files_get
- projects_locations_adaptive_mt_datasets_adaptive_mt_files_list
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;
Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
DELETE
examples
- projects_locations_adaptive_mt_datasets_adaptive_mt_files_delete
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;