# Google Cloud Ai Platform V1 Client - Class BatchPredictionJob (1.60.0)

1.60.0 (latest) 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.1 1.31.0 1.30.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.1 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.39.0 0.38.0 0.37.1 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.1 0.10.0 Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class BatchPredictionJob.

A job that uses a
[Model](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__) to produce
predictions on multiple [input
instances](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getInputConfig__). If
predictions for significant portion of the instances fail, the job may finish
without attempting predictions for all remaining instances.

Generated from protobuf message `google.cloud.aiplatform.v1.BatchPredictionJob`

## Namespace

Google \\ Cloud \\ AIPlatform \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Resource name of the BatchPredictionJob. |
| `↳ display_name` | `string` Required. The user-defined name of this BatchPredictionJob. |
| `↳ model` | `string` The name of the Model resource that produces the predictions via this job, must share the same ancestor Location. Starting this job has no impact on any existing deployments of the Model and their resources. Exactly one of model and unmanaged_container_model must be set. The model resource name may contain version id or version alias to specify the version. Example: `projects/{project}/locations/{location}/models/{model}\@2` or `projects/{project}/locations/{location}/models/{model}\@golden` if no version is specified, the default version will be deployed. The model resource could also be a publisher model. Example: `publishers/{publisher}/models/{model}` or `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}` |
| `↳ model_version_id` | `string` Output only. The version ID of the Model that produces the predictions via this job. |
| `↳ unmanaged_container_model` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.UnmanagedContainerModel` Contains model information necessary to perform batch prediction without requiring uploading to model registry. Exactly one of model and unmanaged_container_model must be set. |
| `↳ input_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.InputConfig` Required. Input configuration of the instances on which predictions are performed. The schema of any single instance may be specified via the [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__) [PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__) [instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__). |
| `↳ instance_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.InstanceConfig` Configuration for how to convert batch prediction input instances to the prediction instances that are sent to the Model. |
| `↳ model_parameters` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value` The parameters that govern the predictions. The schema of the parameters may be specified via the [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__) [PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__) [parameters_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getParametersSchemaUri__). |
| `↳ output_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig` Required. The Configuration specifying where output predictions should be written. The schema of any single prediction may be specified as a concatenation of [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__) [PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__) [instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__) and [prediction_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getPredictionSchemaUri__). |
| `↳ dedicated_resources` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchDedicatedResources` The config of resources used by the Model during the batch prediction. If the Model [supports](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getSupportedDeploymentResourcesTypes__) DEDICATED_RESOURCES this config may be provided (and the job will use these resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config must be provided. |
| `↳ service_account` | `string` The service account that the DeployedModel's container runs as. If not specified, a system generated one will be used, which has minimal permissions and the custom container, if used, may not have enough permission to access other Google Cloud resources. Users deploying the Model must have the `iam.serviceAccounts.actAs` permission on this service account. |
| `↳ manual_batch_tuning_parameters` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ManualBatchTuningParameters` Immutable. Parameters configuring the batch behavior. Currently only applicable when [dedicated_resources](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getDedicatedResources__) are used (in other cases Vertex AI does the tuning itself). |
| `↳ generate_explanation` | `bool` Generate explanation with the batch prediction results. When set to `true`, the batch prediction output changes based on the `predictions_format` field of the [BatchPredictionJob.output_config](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getOutputConfig__) object: \* \* `bigquery`: output includes a column named `explanation`. The value is a struct that conforms to the [Explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Explanation) object. \* \* `jsonl`: The JSON objects on each line include an additional entry keyed `explanation`. The value of the entry is a JSON object that conforms to the [Explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Explanation) object. \* \* `csv`: Generating explanations for CSV format is not supported. If this field is set to true, either the [Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__) or [explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__) must be populated. |
| `↳ explanation_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationSpec` Explanation configuration for this BatchPredictionJob. Can be specified only if [generate_explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getGenerateExplanation__) is set to `true`. This value overrides the value of [Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__). All fields of [explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__) are optional in the request. If a field of the [explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__) object is not populated, the corresponding field of the [Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__) object is inherited. |
| `↳ output_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputInfo` Output only. Information further describing the output of this job. |
| `↳ state` | `int` Output only. The detailed state of the job. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. Only populated when the job's state is JOB_STATE_FAILED or JOB_STATE_CANCELLED. |
| `↳ partial_failures` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` Output only. Partial failures encountered. For example, single files that can't be read. This field never exceeds 20 entries. Status details fields contain standard Google Cloud error details. |
| `↳ resources_consumed` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ResourcesConsumed` Output only. Information about resources that had been consumed by this job. Provided in real time at best effort basis, as well as a final value once the job completes. Note: This field currently may be not populated for batch predictions that use AutoML Models. |
| `↳ completion_stats` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.CompletionStats` Output only. Statistics on completed and failed prediction instances. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the BatchPredictionJob was created. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the BatchPredictionJob for the first time entered the `JOB_STATE_RUNNING` state. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the BatchPredictionJob entered any of the following states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when the BatchPredictionJob was most recently updated. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` The labels with user-defined metadata to organize BatchPredictionJobs. 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. See <https://goo.gl/xmQnxf> for more information and examples of labels. |
| `↳ encryption_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.EncryptionSpec` Customer-managed encryption key options for a BatchPredictionJob. If this is set, then all resources created by the BatchPredictionJob will be encrypted with the provided encryption key. |
| `↳ disable_container_logging` | `bool` For custom-trained Models and AutoML Tabular Models, the container of the DeployedModel instances will send `stderr` and `stdout` streams to Cloud Logging by default. Please note that the logs incur cost, which are subject to [Cloud Logging pricing](https://cloud.google.com/logging/pricing). User can disable container logging by setting this flag to true. |
| `↳ satisfies_pzs` | `bool` Output only. Reserved for future use. |
| `↳ satisfies_pzi` | `bool` Output only. Reserved for future use. |

### getName

Output only. Resource name of the BatchPredictionJob.

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

### setName

Output only. Resource name of the BatchPredictionJob.

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

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

### getDisplayName

Required. The user-defined name of this BatchPredictionJob.

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

### setDisplayName

Required. The user-defined name of this BatchPredictionJob.

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

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

### getModel

The name of the Model resource that produces the predictions via this job,
must share the same ancestor Location.

Starting this job has no impact on any existing deployments of the Model
and their resources.
Exactly one of model and unmanaged_container_model must be set.
The model resource name may contain version id or version alias to specify
the version.
Example: `projects/{project}/locations/{location}/models/{model}\@2`
or
`projects/{project}/locations/{location}/models/{model}\@golden`
if no version is specified, the default version will be deployed.
The model resource could also be a publisher model.
Example: `publishers/{publisher}/models/{model}`
or
`projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`

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

### setModel

The name of the Model resource that produces the predictions via this job,
must share the same ancestor Location.

Starting this job has no impact on any existing deployments of the Model
and their resources.
Exactly one of model and unmanaged_container_model must be set.
The model resource name may contain version id or version alias to specify
the version.
Example: `projects/{project}/locations/{location}/models/{model}\@2`
or
`projects/{project}/locations/{location}/models/{model}\@golden`
if no version is specified, the default version will be deployed.
The model resource could also be a publisher model.
Example: `publishers/{publisher}/models/{model}`
or
`projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`

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

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

### getModelVersionId

Output only. The version ID of the Model that produces the predictions via
this job.

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

### setModelVersionId

Output only. The version ID of the Model that produces the predictions via
this job.

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

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

### getUnmanagedContainerModel

Contains model information necessary to perform batch prediction without
requiring uploading to model registry.

Exactly one of model and unmanaged_container_model must be set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.UnmanagedContainerModel|null` |   |

### hasUnmanagedContainerModel

### clearUnmanagedContainerModel

### setUnmanagedContainerModel

Contains model information necessary to perform batch prediction without
requiring uploading to model registry.

Exactly one of model and unmanaged_container_model must be set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.UnmanagedContainerModel` |

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

### getInputConfig

Required. Input configuration of the instances on which predictions are
performed. The schema of any single instance may be specified via the
[Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__)
[PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__)
[instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.InputConfig|null` |   |

### hasInputConfig

### clearInputConfig

### setInputConfig

Required. Input configuration of the instances on which predictions are
performed. The schema of any single instance may be specified via the
[Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__)
[PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__)
[instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.InputConfig` |

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

### getInstanceConfig

Configuration for how to convert batch prediction input instances to the
prediction instances that are sent to the Model.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.InstanceConfig|null` |   |

### hasInstanceConfig

### clearInstanceConfig

### setInstanceConfig

Configuration for how to convert batch prediction input instances to the
prediction instances that are sent to the Model.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.InstanceConfig` |

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

### getModelParameters

The parameters that govern the predictions. The schema of the parameters
may be specified via the
[Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__)
[PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__)
[parameters_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getParametersSchemaUri__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value|null` |   |

### hasModelParameters

### clearModelParameters

### setModelParameters

The parameters that govern the predictions. The schema of the parameters
may be specified via the
[Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__)
[PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__)
[parameters_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getParametersSchemaUri__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value` |

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

### getOutputConfig

Required. The Configuration specifying where output predictions should
be written.

The schema of any single prediction may be specified as a concatenation
of [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__)
[PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__)
[instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__)
and
[prediction_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getPredictionSchemaUri__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig|null` |   |

### hasOutputConfig

### clearOutputConfig

### setOutputConfig

Required. The Configuration specifying where output predictions should
be written.

The schema of any single prediction may be specified as a concatenation
of [Model's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getModel__)
[PredictSchemata's](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getPredictSchemata__)
[instance_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getInstanceSchemaUri__)
and
[prediction_schema_uri](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.PredictSchemata#_Google_Cloud_AIPlatform_V1_PredictSchemata__getPredictionSchemaUri__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputConfig` |

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

### getDedicatedResources

The config of resources used by the Model during the batch prediction. If
the Model
[supports](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getSupportedDeploymentResourcesTypes__)
DEDICATED_RESOURCES this config may be provided (and the job will use these
resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config
must be provided.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchDedicatedResources|null` |   |

### hasDedicatedResources

### clearDedicatedResources

### setDedicatedResources

The config of resources used by the Model during the batch prediction. If
the Model
[supports](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getSupportedDeploymentResourcesTypes__)
DEDICATED_RESOURCES this config may be provided (and the job will use these
resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config
must be provided.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchDedicatedResources` |

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

### getServiceAccount

The service account that the DeployedModel's container runs as. If not
specified, a system generated one will be used, which
has minimal permissions and the custom container, if used, may not have
enough permission to access other Google Cloud resources.

Users deploying the Model must have the `iam.serviceAccounts.actAs`
permission on this service account.

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

### setServiceAccount

The service account that the DeployedModel's container runs as. If not
specified, a system generated one will be used, which
has minimal permissions and the custom container, if used, may not have
enough permission to access other Google Cloud resources.

Users deploying the Model must have the `iam.serviceAccounts.actAs`
permission on this service account.

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

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

### getManualBatchTuningParameters

Immutable. Parameters configuring the batch behavior. Currently only
applicable when
[dedicated_resources](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getDedicatedResources__)
are used (in other cases Vertex AI does the tuning itself).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ManualBatchTuningParameters|null` |   |

### hasManualBatchTuningParameters

### clearManualBatchTuningParameters

### setManualBatchTuningParameters

Immutable. Parameters configuring the batch behavior. Currently only
applicable when
[dedicated_resources](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getDedicatedResources__)
are used (in other cases Vertex AI does the tuning itself).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ManualBatchTuningParameters` |

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

### getGenerateExplanation

Generate explanation with the batch prediction results.

When set to `true`, the batch prediction output changes based on the
`predictions_format` field of the
[BatchPredictionJob.output_config](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getOutputConfig__)
object:

- `bigquery`: output includes a column named `explanation`. The value is a struct that conforms to the [Explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Explanation) object.
- `jsonl`: The JSON objects on each line include an additional entry keyed `explanation`. The value of the entry is a JSON object that conforms to the [Explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Explanation) object.
- `csv`: Generating explanations for CSV format is not supported. If this field is set to true, either the [Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__) or [explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__) must be populated.

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

### setGenerateExplanation

Generate explanation with the batch prediction results.

When set to `true`, the batch prediction output changes based on the
`predictions_format` field of the
[BatchPredictionJob.output_config](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getOutputConfig__)
object:

- `bigquery`: output includes a column named `explanation`. The value is a struct that conforms to the [Explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Explanation) object.
- `jsonl`: The JSON objects on each line include an additional entry keyed `explanation`. The value of the entry is a JSON object that conforms to the [Explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Explanation) object.
- `csv`: Generating explanations for CSV format is not supported. If this field is set to true, either the [Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__) or [explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__) must be populated.

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

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

### getExplanationSpec

Explanation configuration for this BatchPredictionJob. Can be
specified only if
[generate_explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getGenerateExplanation__)
is set to `true`.

This value overrides the value of
[Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__).
All fields of
[explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__)
are optional in the request. If a field of the
[explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__)
object is not populated, the corresponding field of the
[Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__)
object is inherited.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationSpec|null` |   |

### hasExplanationSpec

### clearExplanationSpec

### setExplanationSpec

Explanation configuration for this BatchPredictionJob. Can be
specified only if
[generate_explanation](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getGenerateExplanation__)
is set to `true`.

This value overrides the value of
[Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__).
All fields of
[explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__)
are optional in the request. If a field of the
[explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob#_Google_Cloud_AIPlatform_V1_BatchPredictionJob__getExplanationSpec__)
object is not populated, the corresponding field of the
[Model.explanation_spec](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.Model#_Google_Cloud_AIPlatform_V1_Model__getExplanationSpec__)
object is inherited.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ExplanationSpec` |

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

### getOutputInfo

Output only. Information further describing the output of this job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputInfo|null` |   |

### hasOutputInfo

### clearOutputInfo

### setOutputInfo

Output only. Information further describing the output of this job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.BatchPredictionJob.OutputInfo` |

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

### getState

Output only. The detailed state of the job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [JobState](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.JobState). |

### setState

Output only. The detailed state of the job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [JobState](https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.JobState). |

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

### getError

Output only. Only populated when the job's state is JOB_STATE_FAILED or
JOB_STATE_CANCELLED.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### clearError

### setError

Output only. Only populated when the job's state is JOB_STATE_FAILED or
JOB_STATE_CANCELLED.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getPartialFailures

Output only. Partial failures encountered.

For example, single files that can't be read.
This field never exceeds 20 entries.
Status details fields contain standard Google Cloud error details.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |   |

### setPartialFailures

Output only. Partial failures encountered.

For example, single files that can't be read.
This field never exceeds 20 entries.
Status details fields contain standard Google Cloud error details.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |

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

### getResourcesConsumed

Output only. Information about resources that had been consumed by this
job. Provided in real time at best effort basis, as well as a final value
once the job completes.

Note: This field currently may be not populated for batch predictions that
use AutoML Models.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ResourcesConsumed|null` |   |

### hasResourcesConsumed

### clearResourcesConsumed

### setResourcesConsumed

Output only. Information about resources that had been consumed by this
job. Provided in real time at best effort basis, as well as a final value
once the job completes.

Note: This field currently may be not populated for batch predictions that
use AutoML Models.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ResourcesConsumed` |

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

### getCompletionStats

Output only. Statistics on completed and failed prediction instances.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.CompletionStats|null` |   |

### hasCompletionStats

### clearCompletionStats

### setCompletionStats

Output only. Statistics on completed and failed prediction instances.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.CompletionStats` |

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

### getCreateTime

Output only. Time when the BatchPredictionJob was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when the BatchPredictionJob was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getStartTime

Output only. Time when the BatchPredictionJob for the first time entered
the `JOB_STATE_RUNNING` state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasStartTime

### clearStartTime

### setStartTime

Output only. Time when the BatchPredictionJob for the first time entered
the `JOB_STATE_RUNNING` state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getEndTime

Output only. Time when the BatchPredictionJob entered any of the following
states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

Output only. Time when the BatchPredictionJob entered any of the following
states: `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Time when the BatchPredictionJob was most recently updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Time when the BatchPredictionJob was most recently updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

The labels with user-defined metadata to organize BatchPredictionJobs.

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.
See <https://goo.gl/xmQnxf> for more information and examples of labels.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

The labels with user-defined metadata to organize BatchPredictionJobs.

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.
See <https://goo.gl/xmQnxf> for more information and examples of labels.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getEncryptionSpec

Customer-managed encryption key options for a BatchPredictionJob. If this
is set, then all resources created by the BatchPredictionJob will be
encrypted with the provided encryption key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.EncryptionSpec|null` |   |

### hasEncryptionSpec

### clearEncryptionSpec

### setEncryptionSpec

Customer-managed encryption key options for a BatchPredictionJob. If this
is set, then all resources created by the BatchPredictionJob will be
encrypted with the provided encryption key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.EncryptionSpec` |

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

### getDisableContainerLogging

For custom-trained Models and AutoML Tabular Models, the container of the
DeployedModel instances will send `stderr` and `stdout` streams to
Cloud Logging by default. Please note that the logs incur cost,
which are subject to [Cloud Logging
pricing](https://cloud.google.com/logging/pricing).

User can disable container logging by setting this flag to true.

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

### setDisableContainerLogging

For custom-trained Models and AutoML Tabular Models, the container of the
DeployedModel instances will send `stderr` and `stdout` streams to
Cloud Logging by default. Please note that the logs incur cost,
which are subject to [Cloud Logging
pricing](https://cloud.google.com/logging/pricing).

User can disable container logging by setting this flag to true.

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

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

### getSatisfiesPzs

Output only. Reserved for future use.

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

### setSatisfiesPzs

Output only. Reserved for future use.

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

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

### getSatisfiesPzi

Output only. Reserved for future use.

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

### setSatisfiesPzi

Output only. Reserved for future use.

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

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