Package com.google.cloud.devicestreaming.v1
@Generated("by gapic-generator-java")
package com.google.cloud.devicestreaming.v1
A client to Device Streaming API
The interfaces provided are listed below, along with usage samples.
======================= DirectAccessServiceClient =======================
Service Description: 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
Sample for DirectAccessServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DirectAccessServiceClient directAccessServiceClient = DirectAccessServiceClient.create()) {
ProjectName parent = ProjectName.of("[PROJECT]");
DeviceSession deviceSession = DeviceSession.newBuilder().build();
String deviceSessionId = "deviceSessionId-544276325";
DeviceSession response =
directAccessServiceClient.createDeviceSession(parent, deviceSession, deviceSessionId);
}
-
ClassesClassDescriptionService Description: A service for allocating Android devices and interacting with the live-allocated devices.Settings class to configure an instance of
DirectAccessServiceClient.Builder for DirectAccessServiceSettings.