Class HttpJsonDirectAccessServiceStub
java.lang.Object
com.google.cloud.devicestreaming.v1.stub.DirectAccessServiceStub
com.google.cloud.devicestreaming.v1.stub.HttpJsonDirectAccessServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonDirectAccessServiceStub
extends DirectAccessServiceStub
REST stub implementation for the DirectAccessService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonDirectAccessServiceStub(DirectAccessServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonDirectAccessServiceStub, using the given settings.protectedHttpJsonDirectAccessServiceStub(DirectAccessServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonDirectAccessServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) UnaryCallable<CancelDeviceSessionRequest,com.google.protobuf.Empty> final voidclose()static final HttpJsonDirectAccessServiceStubcreate(ClientContext clientContext) static final HttpJsonDirectAccessServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonDirectAccessServiceStubcreate(DirectAccessServiceStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonDirectAccessServiceStub
protected HttpJsonDirectAccessServiceStub(DirectAccessServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonDirectAccessServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonDirectAccessServiceStub
protected HttpJsonDirectAccessServiceStub(DirectAccessServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonDirectAccessServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Details
-
create
public static final HttpJsonDirectAccessServiceStub create(DirectAccessServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonDirectAccessServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonDirectAccessServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
createDeviceSessionCallable
- Overrides:
createDeviceSessionCallablein classDirectAccessServiceStub
-
listDeviceSessionsCallable
public UnaryCallable<ListDeviceSessionsRequest,ListDeviceSessionsResponse> listDeviceSessionsCallable()- Overrides:
listDeviceSessionsCallablein classDirectAccessServiceStub
-
listDeviceSessionsPagedCallable
public UnaryCallable<ListDeviceSessionsRequest,DirectAccessServiceClient.ListDeviceSessionsPagedResponse> listDeviceSessionsPagedCallable()- Overrides:
listDeviceSessionsPagedCallablein classDirectAccessServiceStub
-
getDeviceSessionCallable
- Overrides:
getDeviceSessionCallablein classDirectAccessServiceStub
-
cancelDeviceSessionCallable
public UnaryCallable<CancelDeviceSessionRequest,com.google.protobuf.Empty> cancelDeviceSessionCallable()- Overrides:
cancelDeviceSessionCallablein classDirectAccessServiceStub
-
updateDeviceSessionCallable
- Overrides:
updateDeviceSessionCallablein classDirectAccessServiceStub
-
adbConnectCallable
- Overrides:
adbConnectCallablein classDirectAccessServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDirectAccessServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-