Class Batch.StateHistory.Builder (4.8.0)

public static final class Batch.StateHistory.Builder extends GeneratedMessageV3.Builder<Batch.StateHistory.Builder> implements Batch.StateHistoryOrBuilder

Historical state information.

Protobuf type google.cloud.dataproc.v1.Batch.StateHistory

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Batch.StateHistory build()
Returns
TypeDescription
Batch.StateHistory

buildPartial()

public Batch.StateHistory buildPartial()
Returns
TypeDescription
Batch.StateHistory

clear()

public Batch.StateHistory.Builder clear()
Returns
TypeDescription
Batch.StateHistory.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Batch.StateHistory.Builder clearState()

Output only. The state of the batch at this point in history.

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

Returns
TypeDescription
Batch.StateHistory.Builder

This builder for chaining.

clearStateMessage()

public Batch.StateHistory.Builder clearStateMessage()

Output only. Details about the state at this point in history.

string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Batch.StateHistory.Builder

This builder for chaining.

clearStateStartTime()

public Batch.StateHistory.Builder clearStateStartTime()

Output only. The time when the batch entered the historical state.

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

Returns
TypeDescription
Batch.StateHistory.Builder

clone()

public Batch.StateHistory.Builder clone()
Returns
TypeDescription
Batch.StateHistory.Builder
Overrides

getDefaultInstanceForType()

public Batch.StateHistory getDefaultInstanceForType()
Returns
TypeDescription
Batch.StateHistory

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getState()

public Batch.State getState()

Output only. The state of the batch at this point in history.

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

Returns
TypeDescription
Batch.State

The state.

getStateMessage()

public String getStateMessage()

Output only. Details about the state at this point in history.

string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The stateMessage.

getStateMessageBytes()

public ByteString getStateMessageBytes()

Output only. Details about the state at this point in history.

string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for stateMessage.

getStateStartTime()

public Timestamp getStateStartTime()

Output only. The time when the batch entered the historical state.

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

Returns
TypeDescription
Timestamp

The stateStartTime.

getStateStartTimeBuilder()

public Timestamp.Builder getStateStartTimeBuilder()

Output only. The time when the batch entered the historical state.

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

Returns
TypeDescription
Builder

getStateStartTimeOrBuilder()

public TimestampOrBuilder getStateStartTimeOrBuilder()

Output only. The time when the batch entered the historical state.

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

Returns
TypeDescription
TimestampOrBuilder

getStateValue()

public int getStateValue()

Output only. The state of the batch at this point in history.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

hasStateStartTime()

public boolean hasStateStartTime()

Output only. The time when the batch entered the historical state.

.google.protobuf.Timestamp state_start_time = 3 [(.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(Batch.StateHistory other)

public Batch.StateHistory.Builder mergeFrom(Batch.StateHistory other)
Parameter
NameDescription
otherBatch.StateHistory
Returns
TypeDescription
Batch.StateHistory.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStateStartTime(Timestamp value)

public Batch.StateHistory.Builder mergeStateStartTime(Timestamp value)

Output only. The time when the batch entered the historical state.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Batch.StateHistory.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(Batch.State value)

public Batch.StateHistory.Builder setState(Batch.State value)

Output only. The state of the batch at this point in history.

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

Parameter
NameDescription
valueBatch.State

The state to set.

Returns
TypeDescription
Batch.StateHistory.Builder

This builder for chaining.

setStateMessage(String value)

public Batch.StateHistory.Builder setStateMessage(String value)

Output only. Details about the state at this point in history.

string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The stateMessage to set.

Returns
TypeDescription
Batch.StateHistory.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

public Batch.StateHistory.Builder setStateMessageBytes(ByteString value)

Output only. Details about the state at this point in history.

string state_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for stateMessage to set.

Returns
TypeDescription
Batch.StateHistory.Builder

This builder for chaining.

setStateStartTime(Timestamp value)

public Batch.StateHistory.Builder setStateStartTime(Timestamp value)

Output only. The time when the batch entered the historical state.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Batch.StateHistory.Builder

setStateStartTime(Timestamp.Builder builderForValue)

public Batch.StateHistory.Builder setStateStartTime(Timestamp.Builder builderForValue)

Output only. The time when the batch entered the historical state.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Batch.StateHistory.Builder

setStateValue(int value)

public Batch.StateHistory.Builder setStateValue(int value)

Output only. The state of the batch at this point in history.

.google.cloud.dataproc.v1.Batch.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
Batch.StateHistory.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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