Class DeviceSession
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.devicestreaming.v1.DeviceSession
- All Implemented Interfaces:
DeviceSessionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class DeviceSession
extends com.google.protobuf.GeneratedMessage
implements DeviceSessionOrBuilder
Protobuf message describing the device message, used from several RPCs.Protobuf type
google.cloud.devicestreaming.v1.DeviceSession- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf message describing the device message, used from several RPCs.static enumstatic enumThe state that the DeviceSession resides.static final classA message encapsulating a series of Session states and the time that the DeviceSession first entered those states.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Required.Required.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static DeviceSessionstatic final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.com.google.protobuf.DurationOutput only.com.google.protobuf.DurationOrBuilderOutput only.getName()Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.Parser<DeviceSession>intgetState()Output only.getStateHistories(int index) Output only.intOutput only.Output only.getStateHistoriesOrBuilder(int index) Output only.List<? extends DeviceSession.SessionStateEventOrBuilder>Output only.intOutput only.com.google.protobuf.DurationgetTtl()Optional.com.google.protobuf.DurationOrBuilderOptional.booleanOutput only.booleanRequired.booleanOutput only.booleanOptional.inthashCode()booleanOutput only.booleanhasTtl()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic DeviceSession.Builderstatic DeviceSession.BuildernewBuilder(DeviceSession prototype) protected DeviceSession.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DeviceSessionparseDelimitedFrom(InputStream input) static DeviceSessionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeviceSessionparseFrom(byte[] data) static DeviceSessionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeviceSessionparseFrom(com.google.protobuf.ByteString data) static DeviceSessionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeviceSessionparseFrom(com.google.protobuf.CodedInputStream input) static DeviceSessionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeviceSessionparseFrom(InputStream input) static DeviceSessionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeviceSessionparseFrom(ByteBuffer data) static DeviceSessionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DeviceSession>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
STATE_HISTORIES_FIELD_NUMBER
public static final int STATE_HISTORIES_FIELD_NUMBER- See Also:
-
TTL_FIELD_NUMBER
public static final int TTL_FIELD_NUMBER- See Also:
-
EXPIRE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER- See Also:
-
INACTIVITY_TIMEOUT_FIELD_NUMBER
public static final int INACTIVITY_TIMEOUT_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
ACTIVE_START_TIME_FIELD_NUMBER
public static final int ACTIVE_START_TIME_FIELD_NUMBER- See Also:
-
ANDROID_DEVICE_FIELD_NUMBER
public static final int ANDROID_DEVICE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getExpirationCase
- Specified by:
getExpirationCasein interfaceDeviceSessionOrBuilder
-
getName
Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNamein interfaceDeviceSessionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNameBytesin interfaceDeviceSessionOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Output only. The title of the DeviceSession to be presented in the UI.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNamein interfaceDeviceSessionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Output only. The title of the DeviceSession to be presented in the UI.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNameBytesin interfaceDeviceSessionOrBuilder- Returns:
- The bytes for displayName.
-
getStateValue
public int getStateValue()Output only. Current state of the DeviceSession.
.google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceDeviceSessionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
Output only. Current state of the DeviceSession.
.google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceDeviceSessionOrBuilder- Returns:
- The state.
-
getStateHistoriesList
Output only. The historical state transitions of the session_state message including the current session state.
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateHistoriesListin interfaceDeviceSessionOrBuilder
-
getStateHistoriesOrBuilderList
Output only. The historical state transitions of the session_state message including the current session state.
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateHistoriesOrBuilderListin interfaceDeviceSessionOrBuilder
-
getStateHistoriesCount
public int getStateHistoriesCount()Output only. The historical state transitions of the session_state message including the current session state.
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateHistoriesCountin interfaceDeviceSessionOrBuilder
-
getStateHistories
Output only. The historical state transitions of the session_state message including the current session state.
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateHistoriesin interfaceDeviceSessionOrBuilder
-
getStateHistoriesOrBuilder
Output only. The historical state transitions of the session_state message including the current session state.
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateHistoriesOrBuilderin interfaceDeviceSessionOrBuilder
-
hasTtl
public boolean hasTtl()Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
.google.protobuf.Duration ttl = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTtlin interfaceDeviceSessionOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.Duration getTtl()Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
.google.protobuf.Duration ttl = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTtlin interfaceDeviceSessionOrBuilder- Returns:
- The ttl.
-
getTtlOrBuilder
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
.google.protobuf.Duration ttl = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTtlOrBuilderin interfaceDeviceSessionOrBuilder
-
hasExpireTime
public boolean hasExpireTime()Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasExpireTimein interfaceDeviceSessionOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExpireTimein interfaceDeviceSessionOrBuilder- Returns:
- The expireTime.
-
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExpireTimeOrBuilderin interfaceDeviceSessionOrBuilder
-
hasInactivityTimeout
public boolean hasInactivityTimeout()Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
.google.protobuf.Duration inactivity_timeout = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasInactivityTimeoutin interfaceDeviceSessionOrBuilder- Returns:
- Whether the inactivityTimeout field is set.
-
getInactivityTimeout
public com.google.protobuf.Duration getInactivityTimeout()Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
.google.protobuf.Duration inactivity_timeout = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInactivityTimeoutin interfaceDeviceSessionOrBuilder- Returns:
- The inactivityTimeout.
-
getInactivityTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getInactivityTimeoutOrBuilder()Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.
.google.protobuf.Duration inactivity_timeout = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInactivityTimeoutOrBuilderin interfaceDeviceSessionOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. The time that the Session was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceDeviceSessionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time that the Session was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceDeviceSessionOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time that the Session was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceDeviceSessionOrBuilder
-
hasActiveStartTime
public boolean hasActiveStartTime()Output only. The timestamp that the session first became ACTIVE.
.google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasActiveStartTimein interfaceDeviceSessionOrBuilder- Returns:
- Whether the activeStartTime field is set.
-
getActiveStartTime
public com.google.protobuf.Timestamp getActiveStartTime()Output only. The timestamp that the session first became ACTIVE.
.google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getActiveStartTimein interfaceDeviceSessionOrBuilder- Returns:
- The activeStartTime.
-
getActiveStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getActiveStartTimeOrBuilder()Output only. The timestamp that the session first became ACTIVE.
.google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getActiveStartTimeOrBuilderin interfaceDeviceSessionOrBuilder
-
hasAndroidDevice
public boolean hasAndroidDevice()Required. The requested device
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasAndroidDevicein interfaceDeviceSessionOrBuilder- Returns:
- Whether the androidDevice field is set.
-
getAndroidDevice
Required. The requested device
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAndroidDevicein interfaceDeviceSessionOrBuilder- Returns:
- The androidDevice.
-
getAndroidDeviceOrBuilder
Required. The requested device
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAndroidDeviceOrBuilderin interfaceDeviceSessionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DeviceSession parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeviceSession parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeviceSession parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeviceSession parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeviceSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeviceSession parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DeviceSession parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DeviceSession parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DeviceSession parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DeviceSession parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DeviceSession.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-