Class ClusterStatus.Builder (4.28.0)

public static final class ClusterStatus.Builder extends GeneratedMessageV3.Builder<ClusterStatus.Builder> implements ClusterStatusOrBuilder

The status of a cluster and its instances.

Protobuf type google.cloud.dataproc.v1.ClusterStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ClusterStatus build()
Returns
TypeDescription
ClusterStatus

buildPartial()

public ClusterStatus buildPartial()
Returns
TypeDescription
ClusterStatus

clear()

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

clearDetail()

public ClusterStatus.Builder clearDetail()

Optional. Output only. Details of cluster's state.

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

Returns
TypeDescription
ClusterStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public ClusterStatus.Builder clearState()

Output only. The cluster's state.

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

Returns
TypeDescription
ClusterStatus.Builder

This builder for chaining.

clearStateStartTime()

public ClusterStatus.Builder clearStateStartTime()

Output only. Time when this state was entered (see JSON representation of Timestamp).

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

Returns
TypeDescription
ClusterStatus.Builder

clearSubstate()

public ClusterStatus.Builder clearSubstate()

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

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

Returns
TypeDescription
ClusterStatus.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ClusterStatus getDefaultInstanceForType()
Returns
TypeDescription
ClusterStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetail()

public String getDetail()

Optional. Output only. Details of cluster's state.

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

Returns
TypeDescription
String

The detail.

getDetailBytes()

public ByteString getDetailBytes()

Optional. Output only. Details of cluster's state.

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

Returns
TypeDescription
ByteString

The bytes for detail.

getState()

public ClusterStatus.State getState()

Output only. The cluster's state.

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

Returns
TypeDescription
ClusterStatus.State

The state.

getStateStartTime()

public Timestamp getStateStartTime()

Output only. Time when this state was entered (see JSON representation of Timestamp).

.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. Time when this state was entered (see JSON representation of Timestamp).

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

Returns
TypeDescription
Builder

getStateStartTimeOrBuilder()

public TimestampOrBuilder getStateStartTimeOrBuilder()

Output only. Time when this state was entered (see JSON representation of Timestamp).

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

Returns
TypeDescription
TimestampOrBuilder

getStateValue()

public int getStateValue()

Output only. The cluster's state.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getSubstate()

public ClusterStatus.Substate getSubstate()

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

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

Returns
TypeDescription
ClusterStatus.Substate

The substate.

getSubstateValue()

public int getSubstateValue()

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for substate.

hasStateStartTime()

public boolean hasStateStartTime()

Output only. Time when this state was entered (see JSON representation of Timestamp).

.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(ClusterStatus other)

public ClusterStatus.Builder mergeFrom(ClusterStatus other)
Parameter
NameDescription
otherClusterStatus
Returns
TypeDescription
ClusterStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStateStartTime(Timestamp value)

public ClusterStatus.Builder mergeStateStartTime(Timestamp value)

Output only. Time when this state was entered (see JSON representation of Timestamp).

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ClusterStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDetail(String value)

public ClusterStatus.Builder setDetail(String value)

Optional. Output only. Details of cluster's state.

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

Parameter
NameDescription
valueString

The detail to set.

Returns
TypeDescription
ClusterStatus.Builder

This builder for chaining.

setDetailBytes(ByteString value)

public ClusterStatus.Builder setDetailBytes(ByteString value)

Optional. Output only. Details of cluster's state.

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

Parameter
NameDescription
valueByteString

The bytes for detail to set.

Returns
TypeDescription
ClusterStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(ClusterStatus.State value)

public ClusterStatus.Builder setState(ClusterStatus.State value)

Output only. The cluster's state.

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

Parameter
NameDescription
valueClusterStatus.State

The state to set.

Returns
TypeDescription
ClusterStatus.Builder

This builder for chaining.

setStateStartTime(Timestamp value)

public ClusterStatus.Builder setStateStartTime(Timestamp value)

Output only. Time when this state was entered (see JSON representation of Timestamp).

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ClusterStatus.Builder

setStateStartTime(Timestamp.Builder builderForValue)

public ClusterStatus.Builder setStateStartTime(Timestamp.Builder builderForValue)

Output only. Time when this state was entered (see JSON representation of Timestamp).

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ClusterStatus.Builder

setStateValue(int value)

public ClusterStatus.Builder setStateValue(int value)

Output only. The cluster's state.

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

This builder for chaining.

setSubstate(ClusterStatus.Substate value)

public ClusterStatus.Builder setSubstate(ClusterStatus.Substate value)

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

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

Parameter
NameDescription
valueClusterStatus.Substate

The substate to set.

Returns
TypeDescription
ClusterStatus.Builder

This builder for chaining.

setSubstateValue(int value)

public ClusterStatus.Builder setSubstateValue(int value)

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

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ClusterStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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