Skip to main content

examples

Creates, updates, deletes, gets or lists a examples resource.

Overview

Nameexamples
TypeResource
Idgoogle.translate.examples

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the example, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}
sourceTextstringSentence in source language.
targetTextstringSentence in target language.
usagestringOutput only. Usage of the sentence pair. Options are TRAIN

Methods

NameAccessible byRequired ParamsDescription
projects_locations_datasets_examples_listSELECTdatasetsId, locationsId, projectsIdLists sentence pairs in the dataset.

SELECT examples

Lists sentence pairs in the dataset.

SELECT
name,
sourceText,
targetText,
usage
FROM google.translate.examples
WHERE datasetsId = '{{ datasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';