Class DeviceSession.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeviceSession.Builder>
com.google.cloud.devicestreaming.v1.DeviceSession.Builder
All Implemented Interfaces:
DeviceSessionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DeviceSession

public static final class DeviceSession.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeviceSession.Builder> implements DeviceSessionOrBuilder
 Protobuf message describing the device message, used from several RPCs.
 
Protobuf type google.cloud.devicestreaming.v1.DeviceSession
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DeviceSession.Builder>
    • clear

      public DeviceSession.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DeviceSession.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DeviceSession.Builder>
    • getDefaultInstanceForType

      public DeviceSession getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DeviceSession build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DeviceSession buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DeviceSession.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceSession.Builder>
    • mergeFrom

      public DeviceSession.Builder mergeFrom(DeviceSession other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DeviceSession.Builder>
    • mergeFrom

      public DeviceSession.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeviceSession.Builder>
      Throws:
      IOException
    • getExpirationCase

      public DeviceSession.ExpirationCase getExpirationCase()
      Specified by:
      getExpirationCase in interface DeviceSessionOrBuilder
    • clearExpiration

      public DeviceSession.Builder clearExpiration()
    • getName

      public String getName()
       Optional. Name of the DeviceSession, e.g.
       "projects/{project_id}/deviceSessions/{session_id}"
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getName in interface DeviceSessionOrBuilder
      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:
      getNameBytes in interface DeviceSessionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DeviceSession.Builder setName(String value)
       Optional. Name of the DeviceSession, e.g.
       "projects/{project_id}/deviceSessions/{session_id}"
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DeviceSession.Builder clearName()
       Optional. Name of the DeviceSession, e.g.
       "projects/{project_id}/deviceSessions/{session_id}"
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNameBytes

      public DeviceSession.Builder setNameBytes(com.google.protobuf.ByteString value)
       Optional. Name of the DeviceSession, e.g.
       "projects/{project_id}/deviceSessions/{session_id}"
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String 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:
      getDisplayName in interface DeviceSessionOrBuilder
      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:
      getDisplayNameBytes in interface DeviceSessionOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public DeviceSession.Builder setDisplayName(String value)
       Output only. The title of the DeviceSession to be presented in the UI.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public DeviceSession.Builder clearDisplayName()
       Output only. The title of the DeviceSession to be presented in the UI.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public DeviceSession.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Output only. The title of the DeviceSession to be presented in the UI.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • 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:
      getStateValue in interface DeviceSessionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public DeviceSession.Builder setStateValue(int value)
       Output only. Current state of the DeviceSession.
       
      .google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public DeviceSession.SessionState getState()
       Output only. Current state of the DeviceSession.
       
      .google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface DeviceSessionOrBuilder
      Returns:
      The state.
    • setState

       Output only. Current state of the DeviceSession.
       
      .google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public DeviceSession.Builder clearState()
       Output only. Current state of the DeviceSession.
       
      .google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStateHistoriesList

      public List<DeviceSession.SessionStateEvent> 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:
      getStateHistoriesList in interface DeviceSessionOrBuilder
    • 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:
      getStateHistoriesCount in interface DeviceSessionOrBuilder
    • getStateHistories

      public DeviceSession.SessionStateEvent getStateHistories(int index)
       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:
      getStateHistories in interface DeviceSessionOrBuilder
    • setStateHistories

      public DeviceSession.Builder setStateHistories(int index, DeviceSession.SessionStateEvent value)
       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];
    • setStateHistories

      public DeviceSession.Builder setStateHistories(int index, DeviceSession.SessionStateEvent.Builder builderForValue)
       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];
    • addStateHistories

      public DeviceSession.Builder addStateHistories(DeviceSession.SessionStateEvent value)
       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];
    • addStateHistories

      public DeviceSession.Builder addStateHistories(int index, DeviceSession.SessionStateEvent value)
       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];
    • addStateHistories

      public DeviceSession.Builder addStateHistories(DeviceSession.SessionStateEvent.Builder builderForValue)
       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];
    • addStateHistories

      public DeviceSession.Builder addStateHistories(int index, DeviceSession.SessionStateEvent.Builder builderForValue)
       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];
    • addAllStateHistories

      public DeviceSession.Builder addAllStateHistories(Iterable<? extends DeviceSession.SessionStateEvent> values)
       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];
    • clearStateHistories

      public DeviceSession.Builder clearStateHistories()
       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];
    • removeStateHistories

      public DeviceSession.Builder removeStateHistories(int index)
       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];
    • getStateHistoriesBuilder

      public DeviceSession.SessionStateEvent.Builder getStateHistoriesBuilder(int index)
       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];
    • getStateHistoriesOrBuilder

      public DeviceSession.SessionStateEventOrBuilder getStateHistoriesOrBuilder(int index)
       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:
      getStateHistoriesOrBuilder in interface DeviceSessionOrBuilder
    • getStateHistoriesOrBuilderList

      public List<? extends DeviceSession.SessionStateEventOrBuilder> 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:
      getStateHistoriesOrBuilderList in interface DeviceSessionOrBuilder
    • addStateHistoriesBuilder

      public DeviceSession.SessionStateEvent.Builder addStateHistoriesBuilder()
       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];
    • addStateHistoriesBuilder

      public DeviceSession.SessionStateEvent.Builder addStateHistoriesBuilder(int index)
       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];
    • getStateHistoriesBuilderList

      public List<DeviceSession.SessionStateEvent.Builder> getStateHistoriesBuilderList()
       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];
    • 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:
      hasTtl in interface DeviceSessionOrBuilder
      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:
      getTtl in interface DeviceSessionOrBuilder
      Returns:
      The ttl.
    • setTtl

      public DeviceSession.Builder setTtl(com.google.protobuf.Duration value)
       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];
    • setTtl

      public DeviceSession.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
       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];
    • mergeTtl

      public DeviceSession.Builder mergeTtl(com.google.protobuf.Duration value)
       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];
    • clearTtl

      public DeviceSession.Builder clearTtl()
       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];
    • getTtlBuilder

      public com.google.protobuf.Duration.Builder getTtlBuilder()
       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];
    • 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:
      getTtlOrBuilder in interface DeviceSessionOrBuilder
    • 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:
      hasExpireTime in interface DeviceSessionOrBuilder
      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:
      getExpireTime in interface DeviceSessionOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public DeviceSession.Builder setExpireTime(com.google.protobuf.Timestamp value)
       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];
    • setExpireTime

      public DeviceSession.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       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];
    • mergeExpireTime

      public DeviceSession.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       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];
    • clearExpireTime

      public DeviceSession.Builder clearExpireTime()
       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];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       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];
    • 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:
      getExpireTimeOrBuilder in interface DeviceSessionOrBuilder
    • 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:
      hasInactivityTimeout in interface DeviceSessionOrBuilder
      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:
      getInactivityTimeout in interface DeviceSessionOrBuilder
      Returns:
      The inactivityTimeout.
    • setInactivityTimeout

      public DeviceSession.Builder setInactivityTimeout(com.google.protobuf.Duration value)
       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];
    • setInactivityTimeout

      public DeviceSession.Builder setInactivityTimeout(com.google.protobuf.Duration.Builder builderForValue)
       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];
    • mergeInactivityTimeout

      public DeviceSession.Builder mergeInactivityTimeout(com.google.protobuf.Duration value)
       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];
    • clearInactivityTimeout

      public DeviceSession.Builder clearInactivityTimeout()
       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];
    • getInactivityTimeoutBuilder

      public com.google.protobuf.Duration.Builder getInactivityTimeoutBuilder()
       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];
    • 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:
      getInactivityTimeoutOrBuilder in interface DeviceSessionOrBuilder
    • 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:
      hasCreateTime in interface DeviceSessionOrBuilder
      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:
      getCreateTime in interface DeviceSessionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public DeviceSession.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time that the Session was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public DeviceSession.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time that the Session was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public DeviceSession.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time that the Session was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public DeviceSession.Builder clearCreateTime()
       Output only. The time that the Session was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time that the Session was created.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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:
      getCreateTimeOrBuilder in interface DeviceSessionOrBuilder
    • 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:
      hasActiveStartTime in interface DeviceSessionOrBuilder
      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:
      getActiveStartTime in interface DeviceSessionOrBuilder
      Returns:
      The activeStartTime.
    • setActiveStartTime

      public DeviceSession.Builder setActiveStartTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp that the session first became ACTIVE.
       
      .google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setActiveStartTime

      public DeviceSession.Builder setActiveStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp that the session first became ACTIVE.
       
      .google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeActiveStartTime

      public DeviceSession.Builder mergeActiveStartTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp that the session first became ACTIVE.
       
      .google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearActiveStartTime

      public DeviceSession.Builder clearActiveStartTime()
       Output only. The timestamp that the session first became ACTIVE.
       
      .google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getActiveStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getActiveStartTimeBuilder()
       Output only. The timestamp that the session first became ACTIVE.
       
      .google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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:
      getActiveStartTimeOrBuilder in interface DeviceSessionOrBuilder
    • hasAndroidDevice

      public boolean hasAndroidDevice()
       Required. The requested device
       
      .google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAndroidDevice in interface DeviceSessionOrBuilder
      Returns:
      Whether the androidDevice field is set.
    • getAndroidDevice

      public AndroidDevice getAndroidDevice()
       Required. The requested device
       
      .google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAndroidDevice in interface DeviceSessionOrBuilder
      Returns:
      The androidDevice.
    • setAndroidDevice

      public DeviceSession.Builder setAndroidDevice(AndroidDevice value)
       Required. The requested device
       
      .google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
    • setAndroidDevice

      public DeviceSession.Builder setAndroidDevice(AndroidDevice.Builder builderForValue)
       Required. The requested device
       
      .google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
    • mergeAndroidDevice

      public DeviceSession.Builder mergeAndroidDevice(AndroidDevice value)
       Required. The requested device
       
      .google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
    • clearAndroidDevice

      public DeviceSession.Builder clearAndroidDevice()
       Required. The requested device
       
      .google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
    • getAndroidDeviceBuilder

      public AndroidDevice.Builder getAndroidDeviceBuilder()
       Required. The requested device
       
      .google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
    • getAndroidDeviceOrBuilder

      public AndroidDeviceOrBuilder getAndroidDeviceOrBuilder()
       Required. The requested device
       
      .google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAndroidDeviceOrBuilder in interface DeviceSessionOrBuilder