Class UpdateJobRequest.Builder (4.80.0)

public static final class UpdateJobRequest.Builder extends GeneratedMessage.Builder<UpdateJobRequest.Builder> implements UpdateJobRequestOrBuilder

A request to update a job.

Protobuf type google.cloud.dataproc.v1.UpdateJobRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public UpdateJobRequest build()
Returns
Type Description
UpdateJobRequest

buildPartial()

public UpdateJobRequest buildPartial()
Returns
Type Description
UpdateJobRequest

clear()

public UpdateJobRequest.Builder clear()
Returns
Type Description
UpdateJobRequest.Builder
Overrides

clearJob()

public UpdateJobRequest.Builder clearJob()

Required. The changes to the job.

.google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateJobRequest.Builder

clearJobId()

public UpdateJobRequest.Builder clearJobId()

Required. The job ID.

string job_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

clearProjectId()

public UpdateJobRequest.Builder clearProjectId()

Required. The ID of the Google Cloud Platform project that the job belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

clearRegion()

public UpdateJobRequest.Builder clearRegion()

Required. The Dataproc region in which to handle the request.

string region = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

clearUpdateMask()

public UpdateJobRequest.Builder clearUpdateMask()

Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.

.google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateJobRequest.Builder

getDefaultInstanceForType()

public UpdateJobRequest getDefaultInstanceForType()
Returns
Type Description
UpdateJobRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getJob()

public Job getJob()

Required. The changes to the job.

.google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Job

The job.

getJobBuilder()

public Job.Builder getJobBuilder()

Required. The changes to the job.

.google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Job.Builder

getJobId()

public String getJobId()

Required. The job ID.

string job_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

Required. The job ID.

string job_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for jobId.

getJobOrBuilder()

public JobOrBuilder getJobOrBuilder()

Required. The changes to the job.

.google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobOrBuilder

getProjectId()

public String getProjectId()

Required. The ID of the Google Cloud Platform project that the job belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The ID of the Google Cloud Platform project that the job belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

getRegion()

public String getRegion()

Required. The Dataproc region in which to handle the request.

string region = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Required. The Dataproc region in which to handle the request.

string region = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for region.

getUpdateMask()

public FieldMask getUpdateMask()

Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.

.google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.

.google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.

.google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasJob()

public boolean hasJob()

Required. The changes to the job.

.google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the job field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.

.google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateJobRequest other)

public UpdateJobRequest.Builder mergeFrom(UpdateJobRequest other)
Parameter
Name Description
other UpdateJobRequest
Returns
Type Description
UpdateJobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateJobRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateJobRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateJobRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateJobRequest.Builder
Overrides

mergeJob(Job value)

public UpdateJobRequest.Builder mergeJob(Job value)

Required. The changes to the job.

.google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Job
Returns
Type Description
UpdateJobRequest.Builder

mergeUpdateMask(FieldMask value)

public UpdateJobRequest.Builder mergeUpdateMask(FieldMask value)

Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.

.google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateJobRequest.Builder

setJob(Job value)

public UpdateJobRequest.Builder setJob(Job value)

Required. The changes to the job.

.google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Job
Returns
Type Description
UpdateJobRequest.Builder

setJob(Job.Builder builderForValue)

public UpdateJobRequest.Builder setJob(Job.Builder builderForValue)

Required. The changes to the job.

.google.cloud.dataproc.v1.Job job = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Job.Builder
Returns
Type Description
UpdateJobRequest.Builder

setJobId(String value)

public UpdateJobRequest.Builder setJobId(String value)

Required. The job ID.

string job_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The jobId to set.

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

setJobIdBytes(ByteString value)

public UpdateJobRequest.Builder setJobIdBytes(ByteString value)

Required. The job ID.

string job_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for jobId to set.

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

setProjectId(String value)

public UpdateJobRequest.Builder setProjectId(String value)

Required. The ID of the Google Cloud Platform project that the job belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public UpdateJobRequest.Builder setProjectIdBytes(ByteString value)

Required. The ID of the Google Cloud Platform project that the job belongs to.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

setRegion(String value)

public UpdateJobRequest.Builder setRegion(String value)

Required. The Dataproc region in which to handle the request.

string region = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public UpdateJobRequest.Builder setRegionBytes(ByteString value)

Required. The Dataproc region in which to handle the request.

string region = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
UpdateJobRequest.Builder

This builder for chaining.

setUpdateMask(FieldMask value)

public UpdateJobRequest.Builder setUpdateMask(FieldMask value)

Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.

.google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateJobRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateJobRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update the labels of a Job the <code>update_mask</code> parameter would be specified as <code>labels</code>, and the PATCH request body would specify the new value. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.

.google.protobuf.FieldMask update_mask = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateJobRequest.Builder