NAME

Google::Cloud::Datalabeling::V1beta1::EvaluationJob - Compiled Protocol Buffers messages for google/cloud/datalabeling/v1beta1/evaluation_job.proto

SYNOPSIS

use Google::Cloud::Datalabeling::V1beta1::EvaluationJob;

my $msg = Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJob->new({
    name => $name,
    description => $description,
    state => $state,
    schedule => $schedule,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJob->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/datalabeling/v1beta1/evaluation_job.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJob

Defines an evaluation job that runs periodically to generate [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation job](/ml-engine/docs/continuous-evaluation/create-job) is the starting point for using continuous evaluation.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. After you create a job, Data Labeling Service assigns a name to the job with the following format:

    "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"

  • $msg->description() / $msg->description($value)

    Type: String

    Required. Description of the job. The description can be up to 25,000 characters long.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Datalabeling::V1beta1::EvaluationJob::State)

    Output only. Describes the current state of the job.

  • $msg->schedule() / $msg->schedule($value)

    Type: String

    Required. 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 schedule is used, not the specific time of day.

  • $msg->model_version() / $msg->model_version($value)

    Type: String

    Required. 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/<var>{project_id}</var>/models/<var>{model_name}</var>/versions/<var>{version_name}</var>"

    There can only be one evaluation job per model version.

  • $msg->evaluation_job_config() / $msg->evaluation_job_config($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig)

    Required. Configuration details for the evaluation job.

  • $msg->annotation_spec_set() / $msg->annotation_spec_set($value)

    Type: String

    Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.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/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"

  • $msg->label_missing_ground_truth() / $msg->label_missing_ground_truth($value)

    Type: Bool

    Required. 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`.

  • $msg->attempts() / $msg->attempts($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::EvaluationJob::Attempt)

    Output only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp of when this evaluation job was created.

Enum: EvaluationJob::State

  • STATE_UNSPECIFIED => 0

  • SCHEDULED => 1

  • RUNNING => 2

  • PAUSED => 3

  • STOPPED => 4

Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig

Configures specific details of how a continuous evaluation job works. Provide this configuration when you create an EvaluationJob.

Inherits from Protobuf::Message.

Accessors

  • $msg->image_classification_config() / $msg->image_classification_config($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::ImageClassificationConfig)

    Specify this field if your model version performs image classification or general classification.

    `annotationSpecSet` in this configuration must match [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set]. `allowMultiLabel` in this configuration must match `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].

  • $msg->bounding_poly_config() / $msg->bounding_poly_config($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::BoundingPolyConfig)

    Specify this field if your model version performs image object detection (bounding box detection).

    `annotationSpecSet` in this configuration must match [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set].

  • $msg->text_classification_config() / $msg->text_classification_config($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::TextClassificationConfig)

    Specify this field if your model version performs text classification.

    `annotationSpecSet` in this configuration must match [EvaluationJob.annotationSpecSet][google.cloud.datalabeling.v1beta1.EvaluationJob.annotation_spec_set]. `allowMultiLabel` in this configuration must match `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].

  • $msg->input_config() / $msg->input_config($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::Dataset::InputConfig)

    Rquired. Details for the sampled prediction input. Within this configuration, there are requirements for several fields:

    * `dataType` must be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`. * `annotationType` must be one of `IMAGE_CLASSIFICATION_ANNOTATION`, `TEXT_CLASSIFICATION_ANNOTATION`, `GENERAL_CLASSIFICATION_ANNOTATION`, or `IMAGE_BOUNDING_BOX_ANNOTATION` (image object detection). * If your machine learning model performs classification, you must specify `classificationMetadata.isMultiLabel`. * You must specify `bigquerySource` (not `gcsSource`).

  • $msg->evaluation_config() / $msg->evaluation_config($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::Evaluation::EvaluationConfig)

    Required. Details for calculating evaluation metrics and creating [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object detection, you must specify the `boundingBoxEvaluationOptions` field within this configuration. Otherwise, provide an empty object for this configuration.

  • $msg->human_annotation_config() / $msg->human_annotation_config($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::HumanAnnotationConfig)

    Optional. Details for human annotation of your data. If you set [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to `true` for this evaluation job, then you must specify this field. If you plan to provide your own ground truth labels, then omit this field.

    Note that you must create an [Instruction][google.cloud.datalabeling.v1beta1.Instruction] resource before you can specify this field. Provide the name of the instruction resource in the `instruction` field within this configuration.

  • $msg->bigquery_import_keys() / $msg->bigquery_import_keys($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobConfig::BigqueryImportKeysEntry)

    Required. Prediction keys that tell Data Labeling Service where to find the data for evaluation in your BigQuery table. When the service samples prediction input and output from your model version and saves it to BigQuery, the data gets stored as JSON strings in the BigQuery table. These keys tell Data Labeling Service how to parse the JSON.

    You can provide the following entries in this field:

    * `data_json_key`: the data key for prediction input. You must provide either this key or `reference_json_key`. * `reference_json_key`: the data reference key for prediction input. You must provide either this key or `data_json_key`. * `label_json_key`: the label key for prediction output. Required. * `label_score_json_key`: the score key for prediction output. Required. * `bounding_box_json_key`: the bounding box key for prediction output. Required if your model version perform image object detection.

    Learn [how to configure prediction keys](/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).

  • $msg->example_count() / $msg->example_count($value)

    Type: Int32

    Required. The maximum number of predictions to sample and save to BigQuery during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit overrides `example_sample_percentage`: even if the service has not sampled enough predictions to fulfill `example_sample_perecentage` during an interval, it stops sampling predictions when it meets this limit.

  • $msg->example_sample_percentage() / $msg->example_sample_percentage($value)

    Type: Double

    Required. Fraction of predictions to sample and save to BigQuery during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means 10% of predictions served by your model version get saved to BigQuery.

  • $msg->evaluation_job_alert_config() / $msg->evaluation_job_alert_config($value)

    Type: Message (Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobAlertConfig)

    Optional. Configuration details for evaluation job alerts. Specify this field if you want to receive email alerts if the evaluation job finds that your predictions have low mean average precision during a run.

Google::Cloud::Datalabeling::V1beta1::EvaluationJob::EvaluationJobAlertConfig

Provides details for how an evaluation job sends email alerts based on the results of a run.

Inherits from Protobuf::Message.

Accessors

  • $msg->email() / $msg->email($value)

    Type: String

    Required. An email address to send alerts to.

  • $msg->min_acceptable_mean_average_precision() / $msg->min_acceptable_mean_average_precision($value)

    Type: Double

    Required. A number between 0 and 1 that describes a minimum mean average precision threshold. When the evaluation job runs, if it calculates that your model version's predictions from the recent interval have [meanAveragePrecision][google.cloud.datalabeling.v1beta1.PrCurve.mean_average_precision] below this threshold, then it sends an alert to your specified email.

Google::Cloud::Datalabeling::V1beta1::EvaluationJob::Attempt

Records a failed evaluation job run.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Datalabeling::V1beta1::EvaluationJob::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.