examples
Creates, updates, deletes, gets or lists an examples
resource.
Overview
Name | examples |
Type | Resource |
Id | google.translate.examples |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_datasets_examples_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the example, in form of projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id} |
sourceText | string | Sentence in source language. |
targetText | string | Sentence in target language. |
usage | string | Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_datasets_examples_list | select | projectsId , locationsId , datasetsId | filter , pageSize , pageToken | Lists sentence pairs in the 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 |
---|---|---|
datasetsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- projects_locations_datasets_examples_list
Lists sentence pairs in the dataset.
SELECT
name,
sourceText,
targetText,
usage
FROM google.translate.examples
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND datasetsId = '{{ datasetsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';