Skip to main content

examples

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

Overview

Nameexamples
TypeResource
Idgoogle.datalabeling.examples

Fields

NameDatatypeDescription
namestringOutput only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}
annotationsarrayOutput only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
imagePayloadobjectContainer of information about an image.
textPayloadobjectContainer of information about a piece of text.
videoPayloadobjectContainer of information of a video.

Methods

NameAccessible byRequired ParamsDescription
projects_datasets_annotated_datasets_examples_getSELECTannotatedDatasetsId, datasetsId, examplesId, projectsIdGets an example by resource name, including both data and annotation.
projects_datasets_annotated_datasets_examples_listSELECTannotatedDatasetsId, datasetsId, projectsIdLists examples in an annotated dataset. Pagination is supported.

SELECT examples

Lists examples in an annotated dataset. Pagination is supported.

SELECT
name,
annotations,
imagePayload,
textPayload,
videoPayload
FROM google.datalabeling.examples
WHERE annotatedDatasetsId = '{{ annotatedDatasetsId }}'
AND datasetsId = '{{ datasetsId }}'
AND projectsId = '{{ projectsId }}';