# Interface BucketOperationOrBuilder (0.33.0)

0.33.0 (latest) 0.31.0 0.28.0 0.27.0 0.25.0 0.23.0 0.22.0 0.20.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.10.0 0.8.0 0.7.0 0.4.0 0.3.0 0.2.0

    public interface BucketOperationOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getBucketName()

    public abstract String getBucketName()

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

`string bucket_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The bucketName. |

### getBucketNameBytes()

    public abstract ByteString getBucketNameBytes()

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

`string bucket_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for bucketName. |

### getCompleteTime()

    public abstract Timestamp getCompleteTime()

Output only. The time that the BucketOperation was completed.

`
.google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The completeTime. |

### getCompleteTimeOrBuilder()

    public abstract TimestampOrBuilder getCompleteTimeOrBuilder()

Output only. The time that the BucketOperation was completed.

`
.google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getCounters()

    public abstract Counters getCounters()

Output only. Information about the progress of the bucket operation.

`
.google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Counters` | The counters. |

### getCountersOrBuilder()

    public abstract CountersOrBuilder getCountersOrBuilder()

Output only. Information about the progress of the bucket operation.

`
.google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.CountersOrBuilder` |   |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The time that the BucketOperation was created.

`.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time that the BucketOperation was created.

`.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDeleteObject()

    public abstract DeleteObject getDeleteObject()

Delete objects.

`.google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.DeleteObject` | The deleteObject. |

### getDeleteObjectOrBuilder()

    public abstract DeleteObjectOrBuilder getDeleteObjectOrBuilder()

Delete objects.

`.google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.DeleteObjectOrBuilder` |   |

### getErrorSummaries(int index)

    public abstract ErrorSummary getErrorSummaries(int index)

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

`
repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ErrorSummary` |   |

### getErrorSummariesCount()

    public abstract int getErrorSummariesCount()

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

`
repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getErrorSummariesList()

    public abstract List<ErrorSummary> getErrorSummariesList()

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

`
repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ErrorSummary>` |   |

### getErrorSummariesOrBuilder(int index)

    public abstract ErrorSummaryOrBuilder getErrorSummariesOrBuilder(int index)

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

`
repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder` |   |

### getErrorSummariesOrBuilderList()

    public abstract List<? extends ErrorSummaryOrBuilder> getErrorSummariesOrBuilderList()

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

`
repeated .google.cloud.storagebatchoperations.v1.ErrorSummary error_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.storagebatchoperations.v1.ErrorSummaryOrBuilder>` |   |

### getManifest()

    public abstract Manifest getManifest()

Specifies objects in a manifest file.

`.google.cloud.storagebatchoperations.v1.Manifest manifest = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.Manifest` | The manifest. |

### getManifestOrBuilder()

    public abstract ManifestOrBuilder getManifestOrBuilder()

Specifies objects in a manifest file.

`.google.cloud.storagebatchoperations.v1.Manifest manifest = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.ManifestOrBuilder` |   |

### getName()

    public abstract String 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}.

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

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

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getObjectConfigurationCase()

    public abstract BucketOperation.ObjectConfigurationCase getObjectConfigurationCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.BucketOperation.ObjectConfigurationCase` |   |

### getPrefixList()

    public abstract PrefixList getPrefixList()

Specifies objects matching a prefix set.

`.google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.PrefixList` | The prefixList. |

### getPrefixListOrBuilder()

    public abstract PrefixListOrBuilder getPrefixListOrBuilder()

Specifies objects matching a prefix set.

`.google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.PrefixListOrBuilder` |   |

### getPutMetadata()

    public abstract PutMetadata 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.

`.google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.PutMetadata` | The putMetadata. |

### getPutMetadataOrBuilder()

    public abstract PutMetadataOrBuilder getPutMetadataOrBuilder()

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.

`.google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.PutMetadataOrBuilder` |   |

### getPutObjectHold()

    public abstract PutObjectHold getPutObjectHold()

Changes object hold status.

`.google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.PutObjectHold` | The putObjectHold. |

### getPutObjectHoldOrBuilder()

    public abstract PutObjectHoldOrBuilder getPutObjectHoldOrBuilder()

Changes object hold status.

`.google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.PutObjectHoldOrBuilder` |   |

### getRewriteObject()

    public abstract RewriteObject getRewriteObject()

Rewrite the object and updates metadata like KMS key.

`.google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.RewriteObject` | The rewriteObject. |

### getRewriteObjectOrBuilder()

    public abstract RewriteObjectOrBuilder getRewriteObjectOrBuilder()

Rewrite the object and updates metadata like KMS key.

`.google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.RewriteObjectOrBuilder` |   |

### getStartTime()

    public abstract Timestamp getStartTime()

Output only. The time that the BucketOperation was started.

`.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The startTime. |

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

Output only. The time that the BucketOperation was started.

`.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getState()

    public abstract BucketOperation.State getState()

Output only. State of the BucketOperation.

`
.google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.BucketOperation.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. State of the BucketOperation.

`
.google.cloud.storagebatchoperations.v1.BucketOperation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getTransformationCase()

    public abstract BucketOperation.TransformationCase getTransformationCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.BucketOperation.TransformationCase` |   |

### getUpdateObjectCustomContext()

    public abstract UpdateObjectCustomContext getUpdateObjectCustomContext()

Update object custom context.

`
.google.cloud.storagebatchoperations.v1.UpdateObjectCustomContext update_object_custom_context = 15;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.UpdateObjectCustomContext` | The updateObjectCustomContext. |

### getUpdateObjectCustomContextOrBuilder()

    public abstract UpdateObjectCustomContextOrBuilder getUpdateObjectCustomContextOrBuilder()

Update object custom context.

`
.google.cloud.storagebatchoperations.v1.UpdateObjectCustomContext update_object_custom_context = 15;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/com.google.cloud.storagebatchoperations.v1.UpdateObjectCustomContextOrBuilder` |   |

### hasCompleteTime()

    public abstract boolean hasCompleteTime()

Output only. The time that the BucketOperation was completed.

`
.google.protobuf.Timestamp complete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the completeTime field is set. |

### hasCounters()

    public abstract boolean hasCounters()

Output only. Information about the progress of the bucket operation.

`
.google.cloud.storagebatchoperations.v1.Counters counters = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the counters field is set. |

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The time that the BucketOperation was created.

`.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createTime field is set. |

### hasDeleteObject()

    public abstract boolean hasDeleteObject()

Delete objects.

`.google.cloud.storagebatchoperations.v1.DeleteObject delete_object = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the deleteObject field is set. |

### hasManifest()

    public abstract boolean hasManifest()

Specifies objects in a manifest file.

`.google.cloud.storagebatchoperations.v1.Manifest manifest = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the manifest field is set. |

### hasPrefixList()

    public abstract boolean hasPrefixList()

Specifies objects matching a prefix set.

`.google.cloud.storagebatchoperations.v1.PrefixList prefix_list = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the prefixList field is set. |

### hasPutMetadata()

    public abstract boolean hasPutMetadata()

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.

`.google.cloud.storagebatchoperations.v1.PutMetadata put_metadata = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the putMetadata field is set. |

### hasPutObjectHold()

    public abstract boolean hasPutObjectHold()

Changes object hold status.

`.google.cloud.storagebatchoperations.v1.PutObjectHold put_object_hold = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the putObjectHold field is set. |

### hasRewriteObject()

    public abstract boolean hasRewriteObject()

Rewrite the object and updates metadata like KMS key.

`.google.cloud.storagebatchoperations.v1.RewriteObject rewrite_object = 14;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the rewriteObject field is set. |

### hasStartTime()

    public abstract boolean hasStartTime()

Output only. The time that the BucketOperation was started.

`.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startTime field is set. |

### hasUpdateObjectCustomContext()

    public abstract boolean hasUpdateObjectCustomContext()

Update object custom context.

`
.google.cloud.storagebatchoperations.v1.UpdateObjectCustomContext update_object_custom_context = 15;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateObjectCustomContext field is set. |