Class Session.SessionStateHistory.Builder (4.39.0)

public static final class Session.SessionStateHistory.Builder extends GeneratedMessageV3.Builder<Session.SessionStateHistory.Builder> implements Session.SessionStateHistoryOrBuilder

Historical state information.

Protobuf type google.cloud.dataproc.v1.Session.SessionStateHistory

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Session.SessionStateHistory build()
Returns
Type Description
Session.SessionStateHistory

buildPartial()

public Session.SessionStateHistory buildPartial()
Returns
Type Description
Session.SessionStateHistory

clear()

public Session.SessionStateHistory.Builder clear()
Returns
Type Description
Session.SessionStateHistory.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Session.SessionStateHistory.Builder clearState()

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

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

Returns
Type Description
Session.SessionStateHistory.Builder

This builder for chaining.

clearStateMessage()

public Session.SessionStateHistory.Builder clearStateMessage()

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

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

Returns
Type Description
Session.SessionStateHistory.Builder

This builder for chaining.

clearStateStartTime()

public Session.SessionStateHistory.Builder clearStateStartTime()

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

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

Returns
Type Description
Session.SessionStateHistory.Builder

clone()

public Session.SessionStateHistory.Builder clone()
Returns
Type Description
Session.SessionStateHistory.Builder
Overrides

getDefaultInstanceForType()

public Session.SessionStateHistory getDefaultInstanceForType()
Returns
Type Description
Session.SessionStateHistory

getDescriptorForType()

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

getState()

public Session.State getState()

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

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

Returns
Type Description
Session.State

The state.

getStateMessage()

public String getStateMessage()

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

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

Returns
Type Description
String

The stateMessage.

getStateMessageBytes()

public ByteString getStateMessageBytes()

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

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

Returns
Type Description
ByteString

The bytes for stateMessage.

getStateStartTime()

public Timestamp getStateStartTime()

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

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

Returns
Type Description
Timestamp

The stateStartTime.

getStateStartTimeBuilder()

public Timestamp.Builder getStateStartTimeBuilder()

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

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

Returns
Type Description
Builder

getStateStartTimeOrBuilder()

public TimestampOrBuilder getStateStartTimeOrBuilder()

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

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

Returns
Type Description
TimestampOrBuilder

getStateValue()

public int getStateValue()

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

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

Returns
Type Description
int

The enum numeric value on the wire for state.

hasStateStartTime()

public boolean hasStateStartTime()

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

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

Returns
Type Description
boolean

Whether the stateStartTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Session.SessionStateHistory other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStateStartTime(Timestamp value)

public Session.SessionStateHistory.Builder mergeStateStartTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Session.SessionStateHistory.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(Session.State value)

public Session.SessionStateHistory.Builder setState(Session.State value)

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

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

Parameter
Name Description
value Session.State

The state to set.

Returns
Type Description
Session.SessionStateHistory.Builder

This builder for chaining.

setStateMessage(String value)

public Session.SessionStateHistory.Builder setStateMessage(String value)

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

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

Parameter
Name Description
value String

The stateMessage to set.

Returns
Type Description
Session.SessionStateHistory.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

public Session.SessionStateHistory.Builder setStateMessageBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for stateMessage to set.

Returns
Type Description
Session.SessionStateHistory.Builder

This builder for chaining.

setStateStartTime(Timestamp value)

public Session.SessionStateHistory.Builder setStateStartTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Session.SessionStateHistory.Builder

setStateStartTime(Timestamp.Builder builderForValue)

public Session.SessionStateHistory.Builder setStateStartTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Session.SessionStateHistory.Builder

setStateValue(int value)

public Session.SessionStateHistory.Builder setStateValue(int value)

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

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

Parameter
Name Description
value int

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

Returns
Type Description
Session.SessionStateHistory.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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