Skip to main content

annotations

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

Overview

Nameannotations
TypeResource
Idgoogle.aiplatform.annotations

Fields

NameDatatypeDescription
namestringOutput only. Resource name of the Annotation.
annotationSourceobjectReferences an API call. It contains more information about long running operation and Jobs that are triggered by the API call.
createTimestringOutput only. Timestamp when this Annotation was created.
etagstringOptional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
labelsobjectOptional. The labels with user-defined metadata to organize your Annotations. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Annotation(System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. Following system labels exist for each Annotation: "aiplatform.googleapis.com/annotation_set_name": optional, name of the UI's annotation set this Annotation belongs to. If not set, the Annotation is not visible in the UI. "aiplatform.googleapis.com/payload_schema": output only, its value is the payload_schema's title.
payloadanyRequired. The schema of the payload can be found in payload_schema.
payloadSchemaUristringRequired. Google Cloud Storage URI points to a YAML file describing payload. The schema is defined as an OpenAPI 3.0.2 Schema Object. The schema files that can be used here are found in gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the chosen schema must be consistent with the parent Dataset's metadata.
updateTimestringOutput only. Timestamp when this Annotation was last updated.

Methods

NameAccessible byRequired ParamsDescription
listSELECTdataItemsId, datasetsId, locationsId, projectsIdLists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights.

SELECT examples

Lists Annotations belongs to a dataitem This RPC is only available in InternalDatasetService. It is only used for exporting conversation data to CCAI Insights.

SELECT
name,
annotationSource,
createTime,
etag,
labels,
payload,
payloadSchemaUri,
updateTime
FROM google.aiplatform.annotations
WHERE dataItemsId = '{{ dataItemsId }}'
AND datasetsId = '{{ datasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';