Class DirectAccessServiceGrpc.DirectAccessServiceFutureStub (0.2.0)

public static final class DirectAccessServiceGrpc.DirectAccessServiceFutureStub extends AbstractFutureStub<DirectAccessServiceGrpc.DirectAccessServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service 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

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > DirectAccessServiceGrpc.DirectAccessServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected DirectAccessServiceGrpc.DirectAccessServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DirectAccessServiceGrpc.DirectAccessServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

cancelDeviceSession(CancelDeviceSessionRequest request)

public ListenableFuture<Empty> cancelDeviceSession(CancelDeviceSessionRequest request)

Cancel a DeviceSession. This RPC changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.

Parameter
Name Description
request CancelDeviceSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

createDeviceSession(CreateDeviceSessionRequest request)

public ListenableFuture<DeviceSession> createDeviceSession(CreateDeviceSessionRequest request)

Creates a DeviceSession.

Parameter
Name Description
request CreateDeviceSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DeviceSession>

getDeviceSession(GetDeviceSessionRequest request)

public ListenableFuture<DeviceSession> getDeviceSession(GetDeviceSessionRequest request)

Gets a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.

Parameter
Name Description
request GetDeviceSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DeviceSession>

listDeviceSessions(ListDeviceSessionsRequest request)

public ListenableFuture<ListDeviceSessionsResponse> listDeviceSessions(ListDeviceSessionsRequest request)

Lists DeviceSessions owned by the project user.

Parameter
Name Description
request ListDeviceSessionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListDeviceSessionsResponse>

updateDeviceSession(UpdateDeviceSessionRequest request)

public ListenableFuture<DeviceSession> updateDeviceSession(UpdateDeviceSessionRequest request)

Updates the current DeviceSession to the fields described by the update_mask.

Parameter
Name Description
request UpdateDeviceSessionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<DeviceSession>