Class JobMetadata.Builder (4.43.0)

public static final class JobMetadata.Builder extends GeneratedMessageV3.Builder<JobMetadata.Builder> implements JobMetadataOrBuilder

Job Operation metadata.

Protobuf type google.cloud.dataproc.v1.JobMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobMetadata.Builder
Overrides

build()

public JobMetadata build()
Returns
Type Description
JobMetadata

buildPartial()

public JobMetadata buildPartial()
Returns
Type Description
JobMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

public JobMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
JobMetadata.Builder
Overrides

clearJobId()

public JobMetadata.Builder clearJobId()

Output only. The job id.

string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public JobMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
JobMetadata.Builder
Overrides

clearOperationType()

public JobMetadata.Builder clearOperationType()

Output only. Operation type.

string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobMetadata.Builder

This builder for chaining.

clearStartTime()

public JobMetadata.Builder clearStartTime()

Output only. Job submission time.

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

Returns
Type Description
JobMetadata.Builder

clearStatus()

public JobMetadata.Builder clearStatus()

Output only. Most recent job status.

.google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobMetadata.Builder

clone()

public JobMetadata.Builder clone()
Returns
Type Description
JobMetadata.Builder
Overrides

getDefaultInstanceForType()

public JobMetadata getDefaultInstanceForType()
Returns
Type Description
JobMetadata

getDescriptorForType()

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

getJobId()

public String getJobId()

Output only. The job id.

string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

Output only. The job id.

string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for jobId.

getOperationType()

public String getOperationType()

Output only. Operation type.

string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The operationType.

getOperationTypeBytes()

public ByteString getOperationTypeBytes()

Output only. Operation type.

string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for operationType.

getStartTime()

public Timestamp getStartTime()

Output only. Job submission time.

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

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. Job submission time.

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

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Job submission time.

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

Returns
Type Description
TimestampOrBuilder

getStatus()

public JobStatus getStatus()

Output only. Most recent job status.

.google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobStatus

The status.

getStatusBuilder()

public JobStatus.Builder getStatusBuilder()

Output only. Most recent job status.

.google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobStatus.Builder

getStatusOrBuilder()

public JobStatusOrBuilder getStatusOrBuilder()

Output only. Most recent job status.

.google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobStatusOrBuilder

hasStartTime()

public boolean hasStartTime()

Output only. Job submission time.

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

Returns
Type Description
boolean

Whether the startTime field is set.

hasStatus()

public boolean hasStatus()

Output only. Most recent job status.

.google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(JobMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public JobMetadata.Builder mergeStartTime(Timestamp value)

Output only. Job submission time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
JobMetadata.Builder

mergeStatus(JobStatus value)

public JobMetadata.Builder mergeStatus(JobStatus value)

Output only. Most recent job status.

.google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value JobStatus
Returns
Type Description
JobMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public JobMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobMetadata.Builder
Overrides

setJobId(String value)

public JobMetadata.Builder setJobId(String value)

Output only. The job id.

string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The jobId to set.

Returns
Type Description
JobMetadata.Builder

This builder for chaining.

setJobIdBytes(ByteString value)

public JobMetadata.Builder setJobIdBytes(ByteString value)

Output only. The job id.

string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for jobId to set.

Returns
Type Description
JobMetadata.Builder

This builder for chaining.

setOperationType(String value)

public JobMetadata.Builder setOperationType(String value)

Output only. Operation type.

string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The operationType to set.

Returns
Type Description
JobMetadata.Builder

This builder for chaining.

setOperationTypeBytes(ByteString value)

public JobMetadata.Builder setOperationTypeBytes(ByteString value)

Output only. Operation type.

string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for operationType to set.

Returns
Type Description
JobMetadata.Builder

This builder for chaining.

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

public JobMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
JobMetadata.Builder
Overrides

setStartTime(Timestamp value)

public JobMetadata.Builder setStartTime(Timestamp value)

Output only. Job submission time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
JobMetadata.Builder

setStartTime(Timestamp.Builder builderForValue)

public JobMetadata.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. Job submission time.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
JobMetadata.Builder

setStatus(JobStatus value)

public JobMetadata.Builder setStatus(JobStatus value)

Output only. Most recent job status.

.google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value JobStatus
Returns
Type Description
JobMetadata.Builder

setStatus(JobStatus.Builder builderForValue)

public JobMetadata.Builder setStatus(JobStatus.Builder builderForValue)

Output only. Most recent job status.

.google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue JobStatus.Builder
Returns
Type Description
JobMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final JobMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobMetadata.Builder
Overrides