Class JobMetadata.Builder (4.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobMetadata build()
Returns
TypeDescription
JobMetadata

buildPartial()

public JobMetadata buildPartial()
Returns
TypeDescription
JobMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

public JobMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
JobMetadata.Builder
Overrides

clearJobId()

public JobMetadata.Builder clearJobId()

Output only. The job id.

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

Returns
TypeDescription
JobMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperationType()

public JobMetadata.Builder clearOperationType()

Output only. Operation type.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
JobMetadata.Builder

clone()

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

getDefaultInstanceForType()

public JobMetadata getDefaultInstanceForType()
Returns
TypeDescription
JobMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getJobId()

public String getJobId()

Output only. The job id.

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

Returns
TypeDescription
String

The jobId.

getJobIdBytes()

public ByteString getJobIdBytes()

Output only. The job id.

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

Returns
TypeDescription
ByteString

The bytes for jobId.

getOperationType()

public String getOperationType()

Output only. Operation type.

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

Returns
TypeDescription
String

The operationType.

getOperationTypeBytes()

public ByteString getOperationTypeBytes()

Output only. Operation type.

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

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

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Job submission time.

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

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

hasStartTime()

public boolean hasStartTime()

Output only. Job submission time.

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

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

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobMetadata other)

public JobMetadata.Builder mergeFrom(JobMetadata other)
Parameter
NameDescription
otherJobMetadata
Returns
TypeDescription
JobMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public JobMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The jobId to set.

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

The bytes for jobId to set.

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

The operationType to set.

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

The bytes for operationType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueJobStatus
Returns
TypeDescription
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
NameDescription
builderForValueJobStatus.Builder
Returns
TypeDescription
JobMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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