Class HttpJsonKeyTrackingServiceStub
- java.lang.Object
-
- com.google.cloud.kms.inventory.v1.stub.KeyTrackingServiceStub
-
- com.google.cloud.kms.inventory.v1.stub.HttpJsonKeyTrackingServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonKeyTrackingServiceStub extends KeyTrackingServiceStub
REST stub implementation for the KeyTrackingService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonKeyTrackingServiceStub(KeyTrackingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonKeyTrackingServiceStub, using the given settings.protected
HttpJsonKeyTrackingServiceStub(KeyTrackingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonKeyTrackingServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonKeyTrackingServiceStub
protected HttpJsonKeyTrackingServiceStub(KeyTrackingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonKeyTrackingServiceStub, 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
-
HttpJsonKeyTrackingServiceStub
protected HttpJsonKeyTrackingServiceStub(KeyTrackingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonKeyTrackingServiceStub, 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 Detail
-
create
public static final HttpJsonKeyTrackingServiceStub create(KeyTrackingServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonKeyTrackingServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonKeyTrackingServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getProtectedResourcesSummaryCallable
public com.google.api.gax.rpc.UnaryCallable<GetProtectedResourcesSummaryRequest,ProtectedResourcesSummary> getProtectedResourcesSummaryCallable()
- Overrides:
getProtectedResourcesSummaryCallable
in classKeyTrackingServiceStub
-
searchProtectedResourcesCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProtectedResourcesRequest,SearchProtectedResourcesResponse> searchProtectedResourcesCallable()
- Overrides:
searchProtectedResourcesCallable
in classKeyTrackingServiceStub
-
searchProtectedResourcesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProtectedResourcesRequest,KeyTrackingServiceClient.SearchProtectedResourcesPagedResponse> searchProtectedResourcesPagedCallable()
- Overrides:
searchProtectedResourcesPagedCallable
in classKeyTrackingServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classKeyTrackingServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-