# Package Classes (0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.0 Summary of entries of Classes for google-cloud-devicestreaming.

## Classes

### [DirectAccessServiceAsyncClient](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.services.direct_access_service.DirectAccessServiceAsyncClient)

A service for allocating Android devices and interacting with
the live-allocated devices.

Each Session will wait for available capacity, at a higher
priority over Test Execution. When allocated, the session will
be exposed through a stream for integration.

DirectAccessService is currently available as a preview to
select developers. You can register today on behalf of you and
your team at
<https://developer.android.com/studio/preview/android-device-streaming>

### [DirectAccessServiceClient](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.services.direct_access_service.DirectAccessServiceClient)

A service for allocating Android devices and interacting with
the live-allocated devices.

Each Session will wait for available capacity, at a higher
priority over Test Execution. When allocated, the session will
be exposed through a stream for integration.

DirectAccessService is currently available as a preview to
select developers. You can register today on behalf of you and
your team at
<https://developer.android.com/studio/preview/android-device-streaming>

### [ListDeviceSessionsAsyncPager](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.services.direct_access_service.pagers.ListDeviceSessionsAsyncPager)

A pager for iterating through `list_device_sessions` requests.

This class thinly wraps an initial
[ListDeviceSessionsResponse](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.ListDeviceSessionsResponse) object, and
provides an `__aiter__` method to iterate through its
`device_sessions` field.

If there are more pages, the `__aiter__` method will make additional
`ListDeviceSessions` requests and continue to iterate
through the `device_sessions` field on the
corresponding responses.

All the usual [ListDeviceSessionsResponse](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.ListDeviceSessionsResponse)
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.

### [ListDeviceSessionsPager](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.services.direct_access_service.pagers.ListDeviceSessionsPager)

A pager for iterating through `list_device_sessions` requests.

This class thinly wraps an initial
[ListDeviceSessionsResponse](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.ListDeviceSessionsResponse) object, and
provides an `__iter__` method to iterate through its
`device_sessions` field.

If there are more pages, the `__iter__` method will make additional
`ListDeviceSessions` requests and continue to iterate
through the `device_sessions` field on the
corresponding responses.

All the usual [ListDeviceSessionsResponse](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.ListDeviceSessionsResponse)
attributes are available on the pager. If multiple requests are made, only
the most recent response is retained, and thus used for attribute lookup.

### [AdbMessage](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.AdbMessage)

A message to an ADB server.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [AndroidDevice](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.AndroidDevice)

A single Android device.

### [CancelDeviceSessionRequest](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.CancelDeviceSessionRequest)

Request message for DirectAccessService.CancelDeviceSession.

### [Close](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.Close)

Message signifying that the stream closed.

### [CreateDeviceSessionRequest](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.CreateDeviceSessionRequest)

Request message for DirectAccessService.CreateDeviceSession.

### [DeviceMessage](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.DeviceMessage)

A message returned from a device.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [DeviceSession](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.DeviceSession)

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

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [SessionState](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.DeviceSession.SessionState)

The state that the DeviceSession resides.

### [SessionStateEvent](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.DeviceSession.SessionStateEvent)

A message encapsulating a series of Session states and the
time that the DeviceSession first entered those states.

### [Fail](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.Fail)

Message signifying that the stream failed to open

### [GetDeviceSessionRequest](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.GetDeviceSessionRequest)

Request message for DirectAccessService.GetDeviceSession.

### [ListDeviceSessionsRequest](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.ListDeviceSessionsRequest)

Request message for DirectAccessService.ListDeviceSessions.

### [ListDeviceSessionsResponse](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.ListDeviceSessionsResponse)

Response message for DirectAccessService.ListDeviceSessions.

### [Okay](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.Okay)

Message signifying that the stream is open

### [Open](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.Open)

Message for opening a new stream.

### [StatusUpdate](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.StatusUpdate)

A StatusUpdate message given over the ADB protocol for the
device state.

### [DeviceState](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.StatusUpdate.DeviceState)

The state displayed with the ADB Device when running "adb
devices"

### [PropertiesEntry](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.StatusUpdate.PropertiesEntry)

The abstract base class for a message.

### [StreamData](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.StreamData)

Data for a stream.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [StreamStatus](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.StreamStatus)

The result of a stream.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### [UpdateDeviceSessionRequest](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.types.UpdateDeviceSessionRequest)

Request message for DirectAccessService.UpdateDeviceSession.

## Modules

### [pagers](https://docs.cloud.google.com/python/docs/reference/google-cloud-devicestreaming/latest/google.cloud.devicestreaming_v1.services.direct_access_service.pagers)

API documentation for `devicestreaming_v1.services.direct_access_service.pagers` module.