adaptive_mt_datasets
Creates, updates, deletes, gets or lists a adaptive_mt_datasets
resource.
Overview
Name | adaptive_mt_datasets |
Type | Resource |
Id | google.translate.adaptive_mt_datasets |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. The resource name of the dataset, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id} |
createTime | string | Output only. Timestamp when this dataset was created. |
displayName | string | The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. |
exampleCount | integer | The number of examples in the dataset. |
sourceLanguageCode | string | The BCP-47 language code of the source language. |
targetLanguageCode | string | The BCP-47 language code of the target language. |
updateTime | string | Output only. Timestamp when this dataset was last updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_adaptive_mt_datasets_get | SELECT | adaptiveMtDatasetsId, locationsId, projectsId | Gets the Adaptive MT dataset. |
projects_locations_adaptive_mt_datasets_list | SELECT | locationsId, projectsId | Lists all Adaptive MT datasets for which the caller has read permission. |
projects_locations_adaptive_mt_datasets_create | INSERT | locationsId, projectsId | Creates an Adaptive MT dataset. |
projects_locations_adaptive_mt_datasets_delete | DELETE | adaptiveMtDatasetsId, locationsId, projectsId | Deletes an Adaptive MT dataset, including all its entries and associated metadata. |
projects_locations_adaptive_mt_datasets_import_adaptive_mt_file | EXEC | adaptiveMtDatasetsId, locationsId, projectsId | Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset. |
SELECT
examples
Lists all Adaptive MT datasets for which the caller has read permission.
SELECT
name,
createTime,
displayName,
exampleCount,
sourceLanguageCode,
targetLanguageCode,
updateTime
FROM google.translate.adaptive_mt_datasets
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new adaptive_mt_datasets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.translate.adaptive_mt_datasets (
locationsId,
projectsId,
name,
displayName,
sourceLanguageCode,
targetLanguageCode,
exampleCount
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ sourceLanguageCode }}',
'{{ targetLanguageCode }}',
'{{ exampleCount }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: displayName
value: string
- name: sourceLanguageCode
value: string
- name: targetLanguageCode
value: string
- name: exampleCount
value: integer
- name: createTime
value: string
- name: updateTime
value: string
DELETE
example
Deletes the specified adaptive_mt_datasets
resource.
/*+ delete */
DELETE FROM google.translate.adaptive_mt_datasets
WHERE adaptiveMtDatasetsId = '{{ adaptiveMtDatasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';