Class JobStatus.Builder (4.27.0)

public static final class JobStatus.Builder extends GeneratedMessageV3.Builder<JobStatus.Builder> implements JobStatusOrBuilder

Dataproc job status.

Protobuf type google.cloud.dataproc.v1.JobStatus

Implements

JobStatusOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobStatus build()
Returns
TypeDescription
JobStatus

buildPartial()

public JobStatus buildPartial()
Returns
TypeDescription
JobStatus

clear()

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

clearDetails()

public JobStatus.Builder clearDetails()

Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.

string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public JobStatus.Builder clearState()

Output only. A state message specifying the overall job state.

.google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

clearStateStartTime()

public JobStatus.Builder clearStateStartTime()

Output only. The time when this state was entered.

.google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
JobStatus.Builder

clearSubstate()

public JobStatus.Builder clearSubstate()

Output only. Additional state information, which includes status reported by the agent.

.google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public JobStatus getDefaultInstanceForType()
Returns
TypeDescription
JobStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetails()

public String getDetails()

Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.

string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The details.

getDetailsBytes()

public ByteString getDetailsBytes()

Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.

string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for details.

getState()

public JobStatus.State getState()

Output only. A state message specifying the overall job state.

.google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
JobStatus.State

The state.

getStateStartTime()

public Timestamp getStateStartTime()

Output only. The time when this state was entered.

.google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The stateStartTime.

getStateStartTimeBuilder()

public Timestamp.Builder getStateStartTimeBuilder()

Output only. The time when this state was entered.

.google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getStateStartTimeOrBuilder()

public TimestampOrBuilder getStateStartTimeOrBuilder()

Output only. The time when this state was entered.

.google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getStateValue()

public int getStateValue()

Output only. A state message specifying the overall job state.

.google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getSubstate()

public JobStatus.Substate getSubstate()

Output only. Additional state information, which includes status reported by the agent.

.google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
JobStatus.Substate

The substate.

getSubstateValue()

public int getSubstateValue()

Output only. Additional state information, which includes status reported by the agent.

.google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for substate.

hasStateStartTime()

public boolean hasStateStartTime()

Output only. The time when this state was entered.

.google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the stateStartTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobStatus other)

public JobStatus.Builder mergeFrom(JobStatus other)
Parameter
NameDescription
otherJobStatus
Returns
TypeDescription
JobStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public JobStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
JobStatus.Builder
Overrides

mergeStateStartTime(Timestamp value)

public JobStatus.Builder mergeStateStartTime(Timestamp value)

Output only. The time when this state was entered.

.google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
JobStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDetails(String value)

public JobStatus.Builder setDetails(String value)

Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.

string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The details to set.

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

setDetailsBytes(ByteString value)

public JobStatus.Builder setDetailsBytes(ByteString value)

Optional. Output only. Job state details, such as an error description if the state is <code>ERROR</code>.

string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for details to set.

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(JobStatus.State value)

public JobStatus.Builder setState(JobStatus.State value)

Output only. A state message specifying the overall job state.

.google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueJobStatus.State

The state to set.

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

setStateStartTime(Timestamp value)

public JobStatus.Builder setStateStartTime(Timestamp value)

Output only. The time when this state was entered.

.google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
JobStatus.Builder

setStateStartTime(Timestamp.Builder builderForValue)

public JobStatus.Builder setStateStartTime(Timestamp.Builder builderForValue)

Output only. The time when this state was entered.

.google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
JobStatus.Builder

setStateValue(int value)

public JobStatus.Builder setStateValue(int value)

Output only. A state message specifying the overall job state.

.google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

setSubstate(JobStatus.Substate value)

public JobStatus.Builder setSubstate(JobStatus.Substate value)

Output only. Additional state information, which includes status reported by the agent.

.google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueJobStatus.Substate

The substate to set.

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

setSubstateValue(int value)

public JobStatus.Builder setSubstateValue(int value)

Output only. Additional state information, which includes status reported by the agent.

.google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for substate to set.

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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