Skip to main content

adaptive_mt_sentences

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

Overview

Nameadaptive_mt_sentences
TypeResource
Idgoogle.translate.adaptive_mt_sentences

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}
createTimestring (google-datetime)Output only. Timestamp when this sentence was created.
sourceSentencestringRequired. The source sentence.
targetSentencestringRequired. The target sentence.
updateTimestring (google-datetime)Output only. Timestamp when this sentence was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_adaptive_mt_datasets_adaptive_mt_files_adaptive_mt_sentences_listselectprojectsId, locationsId, adaptiveMtDatasetsId, adaptiveMtFilesIdpageSize, pageTokenLists all AdaptiveMtSentences under a given file/dataset.
projects_locations_adaptive_mt_datasets_adaptive_mt_sentences_listselectprojectsId, locationsId, adaptiveMtDatasetsIdpageSize, pageTokenLists 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.

NameDatatypeDescription
adaptiveMtDatasetsIdstring
adaptiveMtFilesIdstring
locationsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

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 }}';