Interface DirectAccessServiceGrpc.AsyncService
- All Known Implementing Classes:
DirectAccessServiceGrpc.DirectAccessServiceImplBase
- Enclosing class:
- DirectAccessServiceGrpc
public static interface DirectAccessServiceGrpc.AsyncService
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 Summary
Modifier and TypeMethodDescriptiondefault io.grpc.stub.StreamObserver<AdbMessage>adbConnect(io.grpc.stub.StreamObserver<DeviceMessage> responseObserver) Exposes an ADB connection if the device supports ADB.default voidcancelDeviceSession(CancelDeviceSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Cancel a DeviceSession.default voidcreateDeviceSession(CreateDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Creates a DeviceSession.default voidgetDeviceSession(GetDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Gets a DeviceSession, which documents the allocation status and whether the device is allocated.default voidlistDeviceSessions(ListDeviceSessionsRequest request, io.grpc.stub.StreamObserver<ListDeviceSessionsResponse> responseObserver) Lists DeviceSessions owned by the project user.default voidupdateDeviceSession(UpdateDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Updates the current DeviceSession to the fields described by the update_mask.
-
Method Details
-
createDeviceSession
default void createDeviceSession(CreateDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Creates a DeviceSession.
-
listDeviceSessions
default void listDeviceSessions(ListDeviceSessionsRequest request, io.grpc.stub.StreamObserver<ListDeviceSessionsResponse> responseObserver) Lists DeviceSessions owned by the project user.
-
getDeviceSession
default void getDeviceSession(GetDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Gets a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.
-
cancelDeviceSession
default void cancelDeviceSession(CancelDeviceSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) 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
default void updateDeviceSession(UpdateDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Updates the current DeviceSession to the fields described by the update_mask.
-
adbConnect
default io.grpc.stub.StreamObserver<AdbMessage> adbConnect(io.grpc.stub.StreamObserver<DeviceMessage> responseObserver) Exposes an ADB connection if the device supports ADB. gRPC headers are used to authenticate the Connect RPC, as well as associate to a particular DeviceSession. In particular, the user must specify the "X-Omnilab-Session-Name" header.
-