# Interface JobOrBuilder (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 JobOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getBucketList()

    public abstract BucketList getBucketList()

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

`.google.cloud.storagebatchoperations.v1.BucketList bucket_list = 19;`

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

### getBucketListOrBuilder()

    public abstract BucketListOrBuilder getBucketListOrBuilder()

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

`.google.cloud.storagebatchoperations.v1.BucketList bucket_list = 19;`

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

### getCompleteTime()

    public abstract Timestamp getCompleteTime()

Output only. The time that the job was completed.

`
.google.protobuf.Timestamp complete_time = 12 [(.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 job was completed.

`
.google.protobuf.Timestamp complete_time = 12 [(.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 job.

`
.google.cloud.storagebatchoperations.v1.Counters counters = 13 [(.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 job.

`
.google.cloud.storagebatchoperations.v1.Counters counters = 13 [(.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 job was created.

`.google.protobuf.Timestamp create_time = 10 [(.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 job was created.

`.google.protobuf.Timestamp create_time = 10 [(.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 = 6;`

| **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 = 6;`

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

### getDescription()

    public abstract String getDescription()

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

`string description = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

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

`string description = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDryRun()

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

`bool dry_run = 22 [(.google.api.field_behavior) = OPTIONAL];`

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

### 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 = 14 [(.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 = 14 [(.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 = 14 [(.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 = 14 [(.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 = 14 [(.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>` |   |

### getIsMultiBucketJob()

    public abstract boolean getIsMultiBucketJob()

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

`bool is_multi_bucket_job = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getLoggingConfig()

    public abstract LoggingConfig getLoggingConfig()

Optional. Logging configuration.

`
.google.cloud.storagebatchoperations.v1.LoggingConfig logging_config = 9 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getLoggingConfigOrBuilder()

    public abstract LoggingConfigOrBuilder getLoggingConfigOrBuilder()

Optional. Logging configuration.

`
.google.cloud.storagebatchoperations.v1.LoggingConfig logging_config = 9 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getName()

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

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

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

### 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 = 8;`

| **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 = 8;`

| **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 = 5;`

| **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 = 5;`

| **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 = 20;`

| **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 = 20;`

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

### getScheduleTime()

    public abstract Timestamp getScheduleTime()

Output only. The time that the job was scheduled.

`
.google.protobuf.Timestamp schedule_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getScheduleTimeOrBuilder()

    public abstract TimestampOrBuilder getScheduleTimeOrBuilder()

Output only. The time that the job was scheduled.

`
.google.protobuf.Timestamp schedule_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getSourceCase()

    public abstract Job.SourceCase getSourceCase()

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

### getState()

    public abstract Job.State getState()

Output only. State of the job.

`
.google.cloud.storagebatchoperations.v1.Job.State state = 15 [(.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.Job.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. State of the job.

`
.google.cloud.storagebatchoperations.v1.Job.State state = 15 [(.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 Job.TransformationCase getTransformationCase()

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

### getUpdateObjectCustomContext()

    public abstract UpdateObjectCustomContext getUpdateObjectCustomContext()

Update object custom context.

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

| **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 = 23;
`

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

### hasBucketList()

    public abstract boolean hasBucketList()

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

`.google.cloud.storagebatchoperations.v1.BucketList bucket_list = 19;`

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

### hasCompleteTime()

    public abstract boolean hasCompleteTime()

Output only. The time that the job was completed.

`
.google.protobuf.Timestamp complete_time = 12 [(.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 job.

`
.google.cloud.storagebatchoperations.v1.Counters counters = 13 [(.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 job was created.

`.google.protobuf.Timestamp create_time = 10 [(.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 = 6;`

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

### hasLoggingConfig()

    public abstract boolean hasLoggingConfig()

Optional. Logging configuration.

`
.google.cloud.storagebatchoperations.v1.LoggingConfig logging_config = 9 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the loggingConfig 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 = 8;`

| **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 = 5;`

| **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 = 20;`

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

### hasScheduleTime()

    public abstract boolean hasScheduleTime()

Output only. The time that the job was scheduled.

`
.google.protobuf.Timestamp schedule_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasUpdateObjectCustomContext()

    public abstract boolean hasUpdateObjectCustomContext()

Update object custom context.

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

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