adaptive_mt_sentences
Creates, updates, deletes, gets or lists an adaptive_mt_sentences resource.
Overview
| Name | adaptive_mt_sentences |
| Type | Resource |
| Id | google.translate.adaptive_mt_sentences |
Fields
The following fields are returned by SELECT queries:
- projects_locations_adaptive_mt_datasets_adaptive_mt_files_adaptive_mt_sentences_list
- projects_locations_adaptive_mt_datasets_adaptive_mt_sentences_list
| 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}/adaptiveMtSentences/{sentence} |
createTime | string (google-datetime) | Output only. Timestamp when this sentence was created. |
sourceSentence | string | Required. The source sentence. |
targetSentence | string | Required. The target sentence. |
updateTime | string (google-datetime) | Output only. Timestamp when this sentence was last updated. |
| 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}/adaptiveMtSentences/{sentence} |
createTime | string (google-datetime) | Output only. Timestamp when this sentence was created. |
sourceSentence | string | Required. The source sentence. |
targetSentence | string | Required. The target sentence. |
updateTime | string (google-datetime) | Output only. Timestamp when this sentence 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_adaptive_mt_sentences_list | select | projectsId, locationsId, adaptiveMtDatasetsId, adaptiveMtFilesId | pageSize, pageToken | Lists all AdaptiveMtSentences under a given file/dataset. |
projects_locations_adaptive_mt_datasets_adaptive_mt_sentences_list | select | projectsId, locationsId, adaptiveMtDatasetsId | pageSize, pageToken | Lists all AdaptiveMtSentences under a given file/dataset. |
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_adaptive_mt_sentences_list
- projects_locations_adaptive_mt_datasets_adaptive_mt_sentences_list
Lists all AdaptiveMtSentences under a given file/dataset.
SELECT
name,
createTime,
sourceSentence,
targetSentence,
updateTime
FROM google.translate.adaptive_mt_sentences
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND adaptiveMtDatasetsId = '{{ adaptiveMtDatasetsId }}' -- required
AND adaptiveMtFilesId = '{{ adaptiveMtFilesId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;
Lists all AdaptiveMtSentences under a given file/dataset.
SELECT
name,
createTime,
sourceSentence,
targetSentence,
updateTime
FROM google.translate.adaptive_mt_sentences
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND adaptiveMtDatasetsId = '{{ adaptiveMtDatasetsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;