Class DirectAccessServiceGrpc.DirectAccessServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<DirectAccessServiceGrpc.DirectAccessServiceFutureStub>
com.google.cloud.devicestreaming.v1.DirectAccessServiceGrpc.DirectAccessServiceFutureStub
- Enclosing class:
- DirectAccessServiceGrpc
public static final class DirectAccessServiceGrpc.DirectAccessServiceFutureStub
extends io.grpc.stub.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
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>Cancel a DeviceSession.com.google.common.util.concurrent.ListenableFuture<DeviceSession>Creates a DeviceSession.com.google.common.util.concurrent.ListenableFuture<DeviceSession>getDeviceSession(GetDeviceSessionRequest request) Gets a DeviceSession, which documents the allocation status and whether the device is allocated.com.google.common.util.concurrent.ListenableFuture<ListDeviceSessionsResponse>Lists DeviceSessions owned by the project user.com.google.common.util.concurrent.ListenableFuture<DeviceSession>Updates the current DeviceSession to the fields described by the update_mask.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected DirectAccessServiceGrpc.DirectAccessServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<DirectAccessServiceGrpc.DirectAccessServiceFutureStub>
-
createDeviceSession
public com.google.common.util.concurrent.ListenableFuture<DeviceSession> createDeviceSession(CreateDeviceSessionRequest request) Creates a DeviceSession.
-
listDeviceSessions
public com.google.common.util.concurrent.ListenableFuture<ListDeviceSessionsResponse> listDeviceSessions(ListDeviceSessionsRequest request) Lists DeviceSessions owned by the project user.
-
getDeviceSession
public com.google.common.util.concurrent.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.
-
cancelDeviceSession
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.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.
-
updateDeviceSession
public com.google.common.util.concurrent.ListenableFuture<DeviceSession> updateDeviceSession(UpdateDeviceSessionRequest request) Updates the current DeviceSession to the fields described by the update_mask.
-