Skip to main content

@swamp/gcp/datalabeling

v2026.04.04.1

Google Cloud datalabeling infrastructure models

Labels

gcpgoogle-clouddatalabelingcloudinfrastructure

Contents

Install

$ swamp extension pull @swamp/gcp/datalabeling

Release Notes

  • Updated: datasets_annotateddatasets_examples, datasets_evaluations, evaluationjobs

@swamp/gcp/datalabeling/annotationspecsetsv2026.04.03.3annotationspecsets.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
annotationSpecSet?objectAn AnnotationSpecSet is a collection of label definitions. For example, in image classification tasks, you define a set of possible labels for images as an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a annotationSpecSets
getGet a annotationSpecSets
ArgumentTypeDescription
identifierstringThe name of the annotationSpecSets
deleteDelete the annotationSpecSets
ArgumentTypeDescription
identifierstringThe name of the annotationSpecSets
syncSync annotationSpecSets state from GCP

Resources

state(infinite)— An AnnotationSpecSet is a collection of label definitions. For example, in im...
@swamp/gcp/datalabeling/datasetsv2026.04.03.3datasets.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
dataset?objectDataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a datasets
getGet a datasets
ArgumentTypeDescription
identifierstringThe name of the datasets
deleteDelete the datasets
ArgumentTypeDescription
identifierstringThe name of the datasets
syncSync datasets state from GCP
export_dataexport data
ArgumentTypeDescription
annotatedDataset?any
filter?any
outputConfig?any
userEmailAddress?any
import_dataimport data
ArgumentTypeDescription
inputConfig?any
userEmailAddress?any

Resources

state(infinite)— Dataset is the resource to hold your data. You can request multiple labeling ...
@swamp/gcp/datalabeling/datasets-annotateddatasetsv2026.04.03.3datasets_annotateddatasets.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a annotatedDatasets
ArgumentTypeDescription
identifierstringThe name of the annotatedDatasets
deleteDelete the annotatedDatasets
ArgumentTypeDescription
identifierstringThe name of the annotatedDatasets
syncSync annotatedDatasets state from GCP

Resources

state(infinite)— AnnotatedDataset is a set holding annotations for data in a Dataset. Each lab...
@swamp/gcp/datalabeling/datasets-annotateddatasets-dataitemsv2026.04.03.3datasets_annotateddatasets_dataitems.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a dataItems
ArgumentTypeDescription
identifierstringThe name of the dataItems
syncSync dataItems state from GCP

Resources

state(infinite)— DataItem is a piece of data, without annotation. For example, an image.
@swamp/gcp/datalabeling/datasets-annotateddatasets-examplesv2026.04.04.1datasets_annotateddatasets_examples.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a examples
ArgumentTypeDescription
identifierstringThe name of the examples
syncSync examples state from GCP

Resources

state(infinite)— An Example is a piece of data and its annotation. For example, an image with ...
@swamp/gcp/datalabeling/datasets-annotateddatasets-feedbackthreadsv2026.04.03.3datasets_annotateddatasets_feedbackthreads.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a feedbackThreads
ArgumentTypeDescription
identifierstringThe name of the feedbackThreads
deleteDelete the feedbackThreads
ArgumentTypeDescription
identifierstringThe name of the feedbackThreads
syncSync feedbackThreads state from GCP

Resources

state(infinite)— A feedback thread of a certain labeling task on a certain annotated dataset.
@swamp/gcp/datalabeling/datasets-annotateddatasets-feedbackthreads-feedbackmessagesv2026.04.03.3datasets_annotateddatasets_feedbackthreads_feedbackmessages.ts

Global Arguments

ArgumentTypeDescription
body?stringString content of the feedback. Maximum of 10000 characters.
createTime?stringCreate time.
image?stringThe image storing this feedback if the feedback is an image representing operator's comments.
name?stringName of the feedback message in a feedback thread. Format: 'project/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessage/{feedback_message_id}'
operatorFeedbackMetadata?objectMetadata describing the feedback from the operator.
requesterFeedbackMetadata?objectMetadata describing the feedback from the labeling task requester.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a feedbackMessages
getGet a feedbackMessages
ArgumentTypeDescription
identifierstringThe name of the feedbackMessages
deleteDelete the feedbackMessages
ArgumentTypeDescription
identifierstringThe name of the feedbackMessages
syncSync feedbackMessages state from GCP

Resources

state(infinite)— A feedback message inside a feedback thread.
@swamp/gcp/datalabeling/datasets-dataitemsv2026.04.03.3datasets_dataitems.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a dataItems
ArgumentTypeDescription
identifierstringThe name of the dataItems
syncSync dataItems state from GCP

Resources

state(infinite)— DataItem is a piece of data, without annotation. For example, an image.
@swamp/gcp/datalabeling/datasets-evaluationsv2026.04.04.1datasets_evaluations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
getGet a evaluations
ArgumentTypeDescription
identifierstringThe name of the evaluations
syncSync evaluations state from GCP

Resources

state(infinite)— Describes an evaluation between a machine learning model's predictions and gr...
@swamp/gcp/datalabeling/evaluationjobsv2026.04.04.1evaluationjobs.ts

Global Arguments

ArgumentTypeDescription
job?objectDefines an evaluation job that runs periodically to generate Evaluations. [Creating an evaluation job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point for using continuous evaluation.
annotationSpecSet?stringRequired. Name of the AnnotationSpecSet describing all the labels that your machine learning model outputs. You must create this resource before you create an evaluation job and provide its name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
attempts?arrayOutput only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array.
createTime?stringOutput only. Timestamp of when this evaluation job was created.
description?stringRequired. Description of the job. The description can be up to 25,000 characters long.
evaluationJobConfig?objectConfigures specific details of how a continuous evaluation job works. Provide this configuration when you create an EvaluationJob.
labelMissingGroundTruth?booleanRequired. Whether you want Data Labeling Service to provide ground truth labels for prediction input. If you want the service to assign human labelers to annotate your data, set this to `true`. If you want to provide your own ground truth labels in the evaluation job's BigQuery table, set this to `false`.
modelVersion?stringRequired. The [AI Platform Prediction model version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction input and output is sampled from this model version. When creating an evaluation job, specify the model version in the following format: "projects/{project_id}/models/{model_name}/versions/{version_name}" There can only be one evaluation job per model version.
name?stringOutput only. After you create a job, Data Labeling Service assigns a name to the job with the following format: "projects/{project_id}/evaluationJobs/ {evaluation_job_id}"
schedule?stringRequired. Describes the interval at which the job runs. This interval must be at least 1 day, and it is rounded to the nearest day. For example, if you specify a 50-hour interval, the job runs every 2 days. You can provide the schedule in [crontab format](/scheduler/docs/configuring/cron-job-schedules) or in an [English-like format](/appengine/docs/standard/python/config/cronref#schedule_format). Regardless of what you specify, the job will run at 10:00 AM UTC. Only the interval from this schedu
state?enumOutput only. Describes the current state of the job.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a evaluationJobs
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
getGet a evaluationJobs
ArgumentTypeDescription
identifierstringThe name of the evaluationJobs
updateUpdate evaluationJobs attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
deleteDelete the evaluationJobs
ArgumentTypeDescription
identifierstringThe name of the evaluationJobs
syncSync evaluationJobs state from GCP
pausepause
resumeresume

Resources

state(infinite)— Defines an evaluation job that runs periodically to generate Evaluations. [Cr...
@swamp/gcp/datalabeling/instructionsv2026.04.03.3instructions.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
instruction?objectInstruction of how to perform the labeling task for human operators. Currently only PDF instruction is supported.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a instructions
getGet a instructions
ArgumentTypeDescription
identifierstringThe name of the instructions
deleteDelete the instructions
ArgumentTypeDescription
identifierstringThe name of the instructions
syncSync instructions state from GCP

Resources

state(infinite)— Instruction of how to perform the labeling task for human operators. Currentl...