Device Streaming v1 API - Class DeviceSession (1.0.0-beta01)

public sealed class DeviceSession : IMessage<DeviceSession>, IEquatable<DeviceSession>, IDeepCloneable<DeviceSession>, IBufferMessage, IMessage

Reference documentation and code samples for the Device Streaming v1 API class DeviceSession.

Protobuf message describing the device message, used from several RPCs.

Inheritance

object > DeviceSession

Namespace

Google.Cloud.DeviceStreaming.V1

Assembly

Google.Cloud.DeviceStreaming.V1.dll

Constructors

DeviceSession()

public DeviceSession()

DeviceSession(DeviceSession)

public DeviceSession(DeviceSession other)
Parameter
Name Description
other DeviceSession

Properties

ActiveStartTime

public Timestamp ActiveStartTime { get; set; }

Output only. The timestamp that the session first became ACTIVE.

Property Value
Type Description
Timestamp

AndroidDevice

public AndroidDevice AndroidDevice { get; set; }

Required. The requested device

Property Value
Type Description
AndroidDevice

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time that the Session was created.

Property Value
Type Description
Timestamp

DeviceSessionName

public DeviceSessionName DeviceSessionName { get; set; }

DeviceSessionName-typed view over the Name resource name property.

Property Value
Type Description
DeviceSessionName

DisplayName

public string DisplayName { get; set; }

Output only. The title of the DeviceSession to be presented in the UI.

Property Value
Type Description
string

ExpirationCase

public DeviceSession.ExpirationOneofCase ExpirationCase { get; }
Property Value
Type Description
DeviceSessionExpirationOneofCase

ExpireTime

public Timestamp ExpireTime { get; set; }

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.

Property Value
Type Description
Timestamp

InactivityTimeout

public Duration InactivityTimeout { get; set; }

Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.

Property Value
Type Description
Duration

Name

public string Name { get; set; }

Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

Property Value
Type Description
string

State

public DeviceSession.Types.SessionState State { get; set; }

Output only. Current state of the DeviceSession.

Property Value
Type Description
DeviceSessionTypesSessionState

StateHistories

public RepeatedField<DeviceSession.Types.SessionStateEvent> StateHistories { get; }

Output only. The historical state transitions of the session_state message including the current session state.

Property Value
Type Description
RepeatedFieldDeviceSessionTypesSessionStateEvent

Ttl

public Duration Ttl { get; set; }

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.

Property Value
Type Description
Duration