Class DirectAccessServiceGrpc.DirectAccessServiceBlockingStub (0.2.0)

public static final class DirectAccessServiceGrpc.DirectAccessServiceBlockingStub extends AbstractBlockingStub<DirectAccessServiceGrpc.DirectAccessServiceBlockingStub>

A stub to allow clients to do limited synchronous 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.AbstractBlockingStub > DirectAccessServiceGrpc.DirectAccessServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

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

cancelDeviceSession(CancelDeviceSessionRequest request)

public 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
Empty

createDeviceSession(CreateDeviceSessionRequest request)

public DeviceSession createDeviceSession(CreateDeviceSessionRequest request)

Creates a DeviceSession.

Parameter
Name Description
request CreateDeviceSessionRequest
Returns
Type Description
DeviceSession

getDeviceSession(GetDeviceSessionRequest request)

public 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
DeviceSession

listDeviceSessions(ListDeviceSessionsRequest request)

public ListDeviceSessionsResponse listDeviceSessions(ListDeviceSessionsRequest request)

Lists DeviceSessions owned by the project user.

Parameter
Name Description
request ListDeviceSessionsRequest
Returns
Type Description
ListDeviceSessionsResponse

updateDeviceSession(UpdateDeviceSessionRequest request)

public DeviceSession updateDeviceSession(UpdateDeviceSessionRequest request)

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

Parameter
Name Description
request UpdateDeviceSessionRequest
Returns
Type Description
DeviceSession