Class Session.SessionStateHistory.Builder (4.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Session.SessionStateHistory build()
Returns
TypeDescription
Session.SessionStateHistory

buildPartial()

public Session.SessionStateHistory buildPartial()
Returns
TypeDescription
Session.SessionStateHistory

clear()

public Session.SessionStateHistory.Builder clear()
Returns
TypeDescription
Session.SessionStateHistory.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Session.SessionStateHistory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Session.SessionStateHistory.Builder

clone()

public Session.SessionStateHistory.Builder clone()
Returns
TypeDescription
Session.SessionStateHistory.Builder
Overrides

getDefaultInstanceForType()

public Session.SessionStateHistory getDefaultInstanceForType()
Returns
TypeDescription
Session.SessionStateHistory

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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(Session.SessionStateHistory other)

public Session.SessionStateHistory.Builder mergeFrom(Session.SessionStateHistory other)
Parameter
NameDescription
otherSession.SessionStateHistory
Returns
TypeDescription
Session.SessionStateHistory.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Session.SessionStateHistory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSession.State

The state to set.

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

The stateMessage to set.

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

The bytes for stateMessage to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Session.SessionStateHistory.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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