# Google Cloud Storage Batch Operations V1 Client - Class Job (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.1 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Storage Batch Operations V1 Client class Job.

The Storage Batch Operations Job description.

Generated from protobuf message `google.cloud.storagebatchoperations.v1.Job`

## Namespace

Google \\ Cloud \\ StorageBatchOperations \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the Job. job_id is unique within the project, that is either set by the customer or defined by the service. Format: projects/{project}/locations/global/jobs/{job_id} . For example: "projects/123456/locations/global/jobs/job01". |
| `↳ description` | `string` Optional. A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded. |
| `↳ bucket_list` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.BucketList` Specifies a list of buckets and their objects to be transformed. |
| `↳ put_object_hold` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.PutObjectHold` Changes object hold status. |
| `↳ delete_object` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.DeleteObject` Delete objects. |
| `↳ put_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.PutMetadata` Updates object metadata. Allows updating fixed-key and custom metadata and fixed-key metadata i.e. Cache-Control, Content-Disposition, Content-Encoding, Content-Language, Content-Type, Custom-Time. |
| `↳ rewrite_object` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.RewriteObject` Rewrite the object and updates metadata like KMS key. |
| `↳ update_object_custom_context` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.UpdateObjectCustomContext` Update object custom context. |
| `↳ logging_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.LoggingConfig` Optional. Logging configuration. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time that the job was created. |
| `↳ schedule_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time that the job was scheduled. |
| `↳ complete_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time that the job was completed. |
| `↳ counters` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.Counters` Output only. Information about the progress of the job. |
| `↳ error_summaries` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.ErrorSummary>` Output only. Summarizes errors encountered with sample error log entries. |
| `↳ state` | `int` Output only. State of the job. |
| `↳ dry_run` | `bool` Optional. If true, the job will run in dry run mode, returning the total object count and, if the object configuration is a prefix list, the bytes found from source. No transformations will be performed. |
| `↳ is_multi_bucket_job` | `bool` Output only. If true, this Job operates on multiple buckets. Multibucket jobs are subject to different quota limits than single-bucket jobs. |

### getName

Identifier. The resource name of the Job. job_id is unique
within the project, that is either set by the customer or
defined by the service. Format:
projects/{project}/locations/global/jobs/{job_id} .

For example: "projects/123456/locations/global/jobs/job01".

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

### setName

Identifier. The resource name of the Job. job_id is unique
within the project, that is either set by the customer or
defined by the service. Format:
projects/{project}/locations/global/jobs/{job_id} .

For example: "projects/123456/locations/global/jobs/job01".

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

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

### getDescription

Optional. A description provided by the user for the job. Its max length is
1024 bytes when Unicode-encoded.

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

### setDescription

Optional. A description provided by the user for the job. Its max length is
1024 bytes when Unicode-encoded.

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

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

### getBucketList

Specifies a list of buckets and their objects to be transformed.

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

### hasBucketList

### setBucketList

Specifies a list of buckets and their objects to be transformed.

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

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

### getPutObjectHold

Changes object hold status.

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

### hasPutObjectHold

### setPutObjectHold

Changes object hold status.

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

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

### getDeleteObject

Delete objects.

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

### hasDeleteObject

### setDeleteObject

Delete objects.

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

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

### getPutMetadata

Updates object metadata. Allows updating fixed-key and custom metadata
and fixed-key metadata i.e. Cache-Control, Content-Disposition,
Content-Encoding, Content-Language, Content-Type, Custom-Time.

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

### hasPutMetadata

### setPutMetadata

Updates object metadata. Allows updating fixed-key and custom metadata
and fixed-key metadata i.e. Cache-Control, Content-Disposition,
Content-Encoding, Content-Language, Content-Type, Custom-Time.

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

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

### getRewriteObject

Rewrite the object and updates metadata like KMS key.

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

### hasRewriteObject

### setRewriteObject

Rewrite the object and updates metadata like KMS key.

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

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

### getUpdateObjectCustomContext

Update object custom context.

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

### hasUpdateObjectCustomContext

### setUpdateObjectCustomContext

Update object custom context.

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

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

### getLoggingConfig

Optional. Logging configuration.

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

### hasLoggingConfig

### clearLoggingConfig

### setLoggingConfig

Optional. Logging configuration.

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

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

### getCreateTime

Output only. The time that the job was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time that the job was created.

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

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

### getScheduleTime

Output only. The time that the job was scheduled.

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

### hasScheduleTime

### clearScheduleTime

### setScheduleTime

Output only. The time that the job was scheduled.

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

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

### getCompleteTime

Output only. The time that the job was completed.

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

### hasCompleteTime

### clearCompleteTime

### setCompleteTime

Output only. The time that the job was completed.

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

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

### getCounters

Output only. Information about the progress of the job.

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

### hasCounters

### clearCounters

### setCounters

Output only. Information about the progress of the job.

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

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

### getErrorSummaries

Output only. Summarizes errors encountered with sample error log entries.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.ErrorSummary>` |   |

### setErrorSummaries

Output only. Summarizes errors encountered with sample error log entries.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.ErrorSummary>` |

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

### getState

Output only. State of the job.

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

### setState

Output only. State of the job.

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

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

### getDryRun

Optional. If true, the job will run in dry run mode, returning the total
object count and, if the object configuration is a prefix list, the bytes
found from source. No transformations will be performed.

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

### setDryRun

Optional. If true, the job will run in dry run mode, returning the total
object count and, if the object configuration is a prefix list, the bytes
found from source. No transformations will be performed.

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

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

### getIsMultiBucketJob

Output only. If true, this Job operates on multiple buckets. Multibucket
jobs are subject to different quota limits than single-bucket jobs.

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

### setIsMultiBucketJob

Output only. If true, this Job operates on multiple buckets. Multibucket
jobs are subject to different quota limits than single-bucket jobs.

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

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

### getSource

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

### getTransformation

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