1.1.0 (latest) 1.0.0

    public static class DirectAccessService

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

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>

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DirectAccessService

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DeviceStreaming.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1)

## Assembly

Google.Cloud.DeviceStreaming.V1.dll

## Methods

### BindService(DirectAccessServiceBase)

    public static ServerServiceDefinition BindService(DirectAccessService.DirectAccessServiceBase serviceImpl)

Creates service definition that can be registered with a server

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `serviceImpl` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.DirectAccessServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.DirectAccessService.DirectAccessServiceBase` An object implementing the server-side handling logic. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerServiceDefinition.html` |   |

### BindService(ServiceBinderBase, DirectAccessServiceBase)

    public static void BindService(ServiceBinderBase serviceBinder, DirectAccessService.DirectAccessServiceBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceBinder` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServiceBinderBase.html` Service methods will be bound by calling `AddMethod` on this object. |
| `serviceImpl` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.DirectAccessServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DeviceStreaming.V1/latest/Google.Cloud.DeviceStreaming.V1.DirectAccessService.DirectAccessServiceBase` An object implementing the server-side handling logic. |