Class DirectAccessServiceGrpc.DirectAccessServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<DirectAccessServiceGrpc.DirectAccessServiceStub>
com.google.cloud.devicestreaming.v1.DirectAccessServiceGrpc.DirectAccessServiceStub
- Enclosing class:
- DirectAccessServiceGrpc
public static final class DirectAccessServiceGrpc.DirectAccessServiceStub
extends io.grpc.stub.AbstractAsyncStub<DirectAccessServiceGrpc.DirectAccessServiceStub>
A stub to allow clients to do asynchronous 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 TypeMethodDescriptionio.grpc.stub.StreamObserver<AdbMessage>adbConnect(io.grpc.stub.StreamObserver<DeviceMessage> responseObserver) Exposes an ADB connection if the device supports ADB.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcancelDeviceSession(CancelDeviceSessionRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) Cancel a DeviceSession.voidcreateDeviceSession(CreateDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Creates a DeviceSession.voidgetDeviceSession(GetDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Gets a DeviceSession, which documents the allocation status and whether the device is allocated.voidlistDeviceSessions(ListDeviceSessionsRequest request, io.grpc.stub.StreamObserver<ListDeviceSessionsResponse> responseObserver) Lists DeviceSessions owned by the project user.voidupdateDeviceSession(UpdateDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Updates the current DeviceSession to the fields described by the update_mask.Methods inherited from class io.grpc.stub.AbstractAsyncStub
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.DirectAccessServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<DirectAccessServiceGrpc.DirectAccessServiceStub>
-
createDeviceSession
public void createDeviceSession(CreateDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Creates a DeviceSession.
-
listDeviceSessions
public void listDeviceSessions(ListDeviceSessionsRequest request, io.grpc.stub.StreamObserver<ListDeviceSessionsResponse> responseObserver) Lists DeviceSessions owned by the project user.
-
getDeviceSession
public 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
public 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
public void updateDeviceSession(UpdateDeviceSessionRequest request, io.grpc.stub.StreamObserver<DeviceSession> responseObserver) Updates the current DeviceSession to the fields described by the update_mask.
-
adbConnect
public 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.
-