Class DeviceSession.SessionStateEvent.Builder (0.2.0)

public static final class DeviceSession.SessionStateEvent.Builder extends GeneratedMessageV3.Builder<DeviceSession.SessionStateEvent.Builder> implements DeviceSession.SessionStateEventOrBuilder

A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.

Protobuf type google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeviceSession.SessionStateEvent build()
Returns
Type Description
DeviceSession.SessionStateEvent

buildPartial()

public DeviceSession.SessionStateEvent buildPartial()
Returns
Type Description
DeviceSession.SessionStateEvent

clear()

public DeviceSession.SessionStateEvent.Builder clear()
Returns
Type Description
DeviceSession.SessionStateEvent.Builder
Overrides

clearEventTime()

public DeviceSession.SessionStateEvent.Builder clearEventTime()

Output only. The time that the session_state first encountered that state.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeviceSession.SessionStateEvent.Builder

clearField(Descriptors.FieldDescriptor field)

public DeviceSession.SessionStateEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeviceSession.SessionStateEvent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DeviceSession.SessionStateEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeviceSession.SessionStateEvent.Builder
Overrides

clearSessionState()

public DeviceSession.SessionStateEvent.Builder clearSessionState()

Output only. The session_state tracked by this event

.google.cloud.devicestreaming.v1.DeviceSession.SessionState session_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeviceSession.SessionStateEvent.Builder

This builder for chaining.

clearStateMessage()

public DeviceSession.SessionStateEvent.Builder clearStateMessage()

Output only. A human-readable message to explain the state.

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

Returns
Type Description
DeviceSession.SessionStateEvent.Builder

This builder for chaining.

clone()

public DeviceSession.SessionStateEvent.Builder clone()
Returns
Type Description
DeviceSession.SessionStateEvent.Builder
Overrides

getDefaultInstanceForType()

public DeviceSession.SessionStateEvent getDefaultInstanceForType()
Returns
Type Description
DeviceSession.SessionStateEvent

getDescriptorForType()

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

getEventTime()

public Timestamp getEventTime()

Output only. The time that the session_state first encountered that state.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The eventTime.

getEventTimeBuilder()

public Timestamp.Builder getEventTimeBuilder()

Output only. The time that the session_state first encountered that state.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Output only. The time that the session_state first encountered that state.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getSessionState()

public DeviceSession.SessionState getSessionState()

Output only. The session_state tracked by this event

.google.cloud.devicestreaming.v1.DeviceSession.SessionState session_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeviceSession.SessionState

The sessionState.

getSessionStateValue()

public int getSessionStateValue()

Output only. The session_state tracked by this event

.google.cloud.devicestreaming.v1.DeviceSession.SessionState session_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for sessionState.

getStateMessage()

public String getStateMessage()

Output only. A human-readable message to explain the state.

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

Returns
Type Description
String

The stateMessage.

getStateMessageBytes()

public ByteString getStateMessageBytes()

Output only. A human-readable message to explain the state.

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

Returns
Type Description
ByteString

The bytes for stateMessage.

hasEventTime()

public boolean hasEventTime()

Output only. The time that the session_state first encountered that state.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the eventTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEventTime(Timestamp value)

public DeviceSession.SessionStateEvent.Builder mergeEventTime(Timestamp value)

Output only. The time that the session_state first encountered that state.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DeviceSession.SessionStateEvent.Builder

mergeFrom(DeviceSession.SessionStateEvent other)

public DeviceSession.SessionStateEvent.Builder mergeFrom(DeviceSession.SessionStateEvent other)
Parameter
Name Description
other DeviceSession.SessionStateEvent
Returns
Type Description
DeviceSession.SessionStateEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DeviceSession.SessionStateEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeviceSession.SessionStateEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceSession.SessionStateEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeviceSession.SessionStateEvent.Builder
Overrides

setEventTime(Timestamp value)

public DeviceSession.SessionStateEvent.Builder setEventTime(Timestamp value)

Output only. The time that the session_state first encountered that state.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DeviceSession.SessionStateEvent.Builder

setEventTime(Timestamp.Builder builderForValue)

public DeviceSession.SessionStateEvent.Builder setEventTime(Timestamp.Builder builderForValue)

Output only. The time that the session_state first encountered that state.

.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DeviceSession.SessionStateEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSessionState(DeviceSession.SessionState value)

public DeviceSession.SessionStateEvent.Builder setSessionState(DeviceSession.SessionState value)

Output only. The session_state tracked by this event

.google.cloud.devicestreaming.v1.DeviceSession.SessionState session_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DeviceSession.SessionState

The sessionState to set.

Returns
Type Description
DeviceSession.SessionStateEvent.Builder

This builder for chaining.

setSessionStateValue(int value)

public DeviceSession.SessionStateEvent.Builder setSessionStateValue(int value)

Output only. The session_state tracked by this event

.google.cloud.devicestreaming.v1.DeviceSession.SessionState session_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
DeviceSession.SessionStateEvent.Builder

This builder for chaining.

setStateMessage(String value)

public DeviceSession.SessionStateEvent.Builder setStateMessage(String value)

Output only. A human-readable message to explain the state.

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

Parameter
Name Description
value String

The stateMessage to set.

Returns
Type Description
DeviceSession.SessionStateEvent.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

public DeviceSession.SessionStateEvent.Builder setStateMessageBytes(ByteString value)

Output only. A human-readable message to explain the state.

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

Parameter
Name Description
value ByteString

The bytes for stateMessage to set.

Returns
Type Description
DeviceSession.SessionStateEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DeviceSession.SessionStateEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeviceSession.SessionStateEvent.Builder
Overrides