Class DirectAccessServiceGrpc.DirectAccessServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<DirectAccessServiceGrpc.DirectAccessServiceBlockingV2Stub>
com.google.cloud.devicestreaming.v1.DirectAccessServiceGrpc.DirectAccessServiceBlockingV2Stub
- Enclosing class:
- DirectAccessServiceGrpc
public static final class DirectAccessServiceGrpc.DirectAccessServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<DirectAccessServiceGrpc.DirectAccessServiceBlockingV2Stub>
A stub to allow clients to do 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
-
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.BlockingClientCall<AdbMessage,DeviceMessage> Exposes an ADB connection if the device supports ADB.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.protobuf.EmptyCancel a DeviceSession.Creates a DeviceSession.getDeviceSession(GetDeviceSessionRequest request) Gets a DeviceSession, which documents the allocation status and whether the device is allocated.Lists DeviceSessions owned by the project user.Updates the current DeviceSession to the fields described by the update_mask.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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.DirectAccessServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<DirectAccessServiceGrpc.DirectAccessServiceBlockingV2Stub>
-
createDeviceSession
public DeviceSession createDeviceSession(CreateDeviceSessionRequest request) throws io.grpc.StatusException Creates a DeviceSession.
- Throws:
io.grpc.StatusException
-
listDeviceSessions
public ListDeviceSessionsResponse listDeviceSessions(ListDeviceSessionsRequest request) throws io.grpc.StatusException Lists DeviceSessions owned by the project user.
- Throws:
io.grpc.StatusException
-
getDeviceSession
public DeviceSession getDeviceSession(GetDeviceSessionRequest request) throws io.grpc.StatusException Gets a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.
- Throws:
io.grpc.StatusException
-
cancelDeviceSession
public com.google.protobuf.Empty cancelDeviceSession(CancelDeviceSessionRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
updateDeviceSession
public DeviceSession updateDeviceSession(UpdateDeviceSessionRequest request) throws io.grpc.StatusException Updates the current DeviceSession to the fields described by the update_mask.
- Throws:
io.grpc.StatusException
-
adbConnect
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<AdbMessage,DeviceMessage> adbConnect()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.
-