# Google Cloud Storage Batch Operations V1 Client - Class BucketOperation (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 BucketOperation.

BucketOperation represents a bucket-level breakdown of a Job.

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

## 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 BucketOperation. This is defined by the service. Format: projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}. |
| `↳ bucket_name` | `string` The bucket name of the objects to be transformed in the BucketOperation. |
| `↳ prefix_list` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.PrefixList` Specifies objects matching a prefix set. |
| `↳ manifest` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.Manifest` Specifies objects in a manifest file. |
| `↳ 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. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time that the BucketOperation was created. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time that the BucketOperation was started. |
| `↳ complete_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time that the BucketOperation was completed. |
| `↳ counters` | `https://docs.cloud.google.com/php/docs/reference/cloud-storagebatchoperations/latest/V1.Counters` Output only. Information about the progress of the bucket operation. |
| `↳ 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 BucketOperation. |

### getName

Identifier. The resource name of the BucketOperation. This is defined by
the service. Format:
projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.

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

### setName

Identifier. The resource name of the BucketOperation. This is defined by
the service. Format:
projects/{project}/locations/global/jobs/{job_id}/bucketOperations/{bucket_operation}.

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

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

### getBucketName

The bucket name of the objects to be transformed in the BucketOperation.

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

### setBucketName

The bucket name of the objects to be transformed in the BucketOperation.

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

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

### getPrefixList

Specifies objects matching a prefix set.

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

### hasPrefixList

### setPrefixList

Specifies objects matching a prefix set.

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

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

### getManifest

Specifies objects in a manifest file.

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

### hasManifest

### setManifest

Specifies objects in a manifest file.

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

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

### getCreateTime

Output only. The time that the BucketOperation 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 BucketOperation was created.

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

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

### getStartTime

Output only. The time that the BucketOperation was started.

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

### hasStartTime

### clearStartTime

### setStartTime

Output only. The time that the BucketOperation was started.

| **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 BucketOperation 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 BucketOperation 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 bucket operation.

| **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 bucket operation.

| **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 BucketOperation.

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

### setState

Output only. State of the BucketOperation.

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

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

### getObjectConfiguration

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

### getTransformation

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