public static final class DeviceSession.SessionStateEvent.Builder extends GeneratedMessage.Builder<DeviceSession.SessionStateEvent.Builder> implements DeviceSession.SessionStateEventOrBuilderA 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DeviceSession.SessionStateEvent.BuilderImplements
DeviceSession.SessionStateEventOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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. |
getDefaultInstanceForType()
public DeviceSession.SessionStateEvent getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DeviceSession.SessionStateEvent |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
|
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.SessionStateThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for stateMessage to set. |
| Returns | |
|---|---|
| Type | Description |
DeviceSession.SessionStateEvent.Builder |
This builder for chaining. |