Skip to main content

data_items

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

Overview

Namedata_items
TypeResource
Idgoogle.datalabeling.data_items

Fields

NameDatatypeDescription
namestringOutput only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
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_data_items_getSELECTannotatedDatasetsId, dataItemsId, datasetsId, projectsIdGets a data item in a dataset by resource name. This API can be called after data are imported into dataset.
projects_datasets_annotated_datasets_data_items_listSELECTannotatedDatasetsId, datasetsId, projectsIdLists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.
projects_datasets_data_items_getSELECTdataItemsId, datasetsId, projectsIdGets a data item in a dataset by resource name. This API can be called after data are imported into dataset.
projects_datasets_data_items_listSELECTdatasetsId, projectsIdLists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.

SELECT examples

Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.

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