0.9.0 (latest) 0.8.3 0.7.2 0.6.3 0.5.7 0.4.2 0.3.1 0.2.0 0.1.14

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class EvaluationJob.

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

Generated from protobuf message `google.cloud.datalabeling.v1beta1.EvaluationJob`

## Namespace

Google \\ Cloud \\ DataLabeling \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. After you create a job, Data Labeling Service assigns a name to the job with the following format: "projects/<var translate="no">{project_id}</var>/evaluationJobs/<var translate="no">{evaluation_job_id}</var>" |
| `↳ description` | `string` Required. Description of the job. The description can be up to 25,000 characters long. |
| `↳ state` | `int` Output only. Describes the current state of the job. |
| `↳ schedule` | `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](https://docs.cloud.google.com/scheduler/docs/configuring/cron-job-schedules) or in an [English-like format](https://docs.cloud.google.com/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. |
| `↳ model_version` | `string` Required. The [AI Platform Prediction model version](https://docs.cloud.google.com/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 translate="no">{project_id}</var>/models/<var translate="no">{model_name}</var>/versions/<var translate="no">{version_name}</var>" There can only be one evaluation job per model version. |
| `↳ evaluation_job_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJobConfig` Required. Configuration details for the evaluation job. |
| `↳ annotation_spec_set` | `string` Required. Name of the [AnnotationSpecSet](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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 translate="no">{project_id}</var>/annotationSpecSets/<var translate="no">{annotation_spec_set_id}</var>" |
| `↳ label_missing_ground_truth` | `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`. |
| `↳ attempts` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.Attempt>` Output only. Every time the evaluation job runs and an error occurs, the failed attempt is appended to this array. |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Timestamp of when this evaluation job was created. |

### getName

Output only. After you create a job, Data Labeling Service assigns a name
to the job with the following format:
"projects/<var translate="no">{project_id}</var>/evaluationJobs/<var translate="no">{evaluation_job_id}</var>"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Output only. After you create a job, Data Labeling Service assigns a name
to the job with the following format:
"projects/<var translate="no">{project_id}</var>/evaluationJobs/<var translate="no">{evaluation_job_id}</var>"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. Describes the current state of the job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob.State). |

### setState

Output only. Describes the current state of the job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJob.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSchedule

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](https://docs.cloud.google.com/scheduler/docs/configuring/cron-job-schedules) or in an
[English-like
format](https://docs.cloud.google.com/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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSchedule

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](https://docs.cloud.google.com/scheduler/docs/configuring/cron-job-schedules) or in an
[English-like
format](https://docs.cloud.google.com/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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getModelVersion

Required. The [AI Platform Prediction model
version](https://docs.cloud.google.com/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 translate="no">{project_id}</var>/models/<var translate="no">{model_name}</var>/versions/<var translate="no">{version_name}</var>"
There can only be one evaluation job per model version.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setModelVersion

Required. The [AI Platform Prediction model
version](https://docs.cloud.google.com/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 translate="no">{project_id}</var>/models/<var translate="no">{model_name}</var>/versions/<var translate="no">{version_name}</var>"
There can only be one evaluation job per model version.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEvaluationJobConfig

Required. Configuration details for the evaluation job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJobConfig|null` |   |

### hasEvaluationJobConfig

### clearEvaluationJobConfig

### setEvaluationJobConfig

Required. Configuration details for the evaluation job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.EvaluationJobConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAnnotationSpecSet

Required. Name of the [AnnotationSpecSet](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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 translate="no">{project_id}</var>/annotationSpecSets/<var translate="no">{annotation_spec_set_id}</var>"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAnnotationSpecSet

Required. Name of the [AnnotationSpecSet](https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/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 translate="no">{project_id}</var>/annotationSpecSets/<var translate="no">{annotation_spec_set_id}</var>"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabelMissingGroundTruth

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setLabelMissingGroundTruth

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAttempts

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.Attempt>` |   |

### setAttempts

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.Attempt>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |