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
 
  • Method Details

    • build

      protected DirectAccessServiceGrpc.DirectAccessServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.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.