Class UpdateJobRequest.Builder (3.1.1)

public static final class UpdateJobRequest.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateJobRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides

build()

public UpdateJobRequest build()
Returns
TypeDescription
UpdateJobRequest

buildPartial()

public UpdateJobRequest buildPartial()
Returns
TypeDescription
UpdateJobRequest

clear()

public UpdateJobRequest.Builder clear()
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateJobRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateJobRequest.Builder

clearJobId()

public UpdateJobRequest.Builder clearJobId()

Required. The job ID.

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

Returns
TypeDescription
UpdateJobRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateJobRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateJobRequest.Builder

clone()

public UpdateJobRequest.Builder clone()
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateJobRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateJobRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Job.Builder

getJobId()

public String getJobId()

Required. The job ID.

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

Returns
TypeDescription
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

Required. The job ID.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

hasJob()

public boolean hasJob()

Required. The changes to the job.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateJobRequest other)

public UpdateJobRequest.Builder mergeFrom(UpdateJobRequest other)
Parameter
NameDescription
otherUpdateJobRequest
Returns
TypeDescription
UpdateJobRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateJobRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateJobRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueJob
Returns
TypeDescription
UpdateJobRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateJobRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides

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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateJobRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateJobRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides

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
NameDescription
valueJob
Returns
TypeDescription
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
NameDescription
builderForValueJob.Builder
Returns
TypeDescription
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
NameDescription
valueString

The jobId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for jobId to set.

Returns
TypeDescription
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
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
UpdateJobRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateJobRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateJobRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateJobRequest.Builder
Overrides

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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateJobRequest.Builder