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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DeviceSession.SessionStateEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DeviceSession.SessionStateEvent build()
buildPartial()
public DeviceSession.SessionStateEvent buildPartial()
clear()
public DeviceSession.SessionStateEvent.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public DeviceSession.SessionStateEvent.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DeviceSession.SessionStateEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
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];
clone()
public DeviceSession.SessionStateEvent.Builder clone()
Overrides
getDefaultInstanceForType()
public DeviceSession.SessionStateEvent getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(DeviceSession.SessionStateEvent other)
public DeviceSession.SessionStateEvent.Builder mergeFrom(DeviceSession.SessionStateEvent other)
public DeviceSession.SessionStateEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DeviceSession.SessionStateEvent.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeviceSession.SessionStateEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public DeviceSession.SessionStateEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DeviceSession.SessionStateEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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.
|
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final DeviceSession.SessionStateEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides