Class HttpJsonAssetServiceStub
java.lang.Object
com.google.cloud.asset.v1p2beta1.stub.AssetServiceStub
com.google.cloud.asset.v1p2beta1.stub.HttpJsonAssetServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class HttpJsonAssetServiceStub
extends AssetServiceStub
REST stub implementation for the AssetService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonAssetServiceStub, using the given settings.protectedHttpJsonAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonAssetServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonAssetServiceStubcreate(ClientContext clientContext) static final HttpJsonAssetServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonAssetServiceStubcreate(AssetServiceStubSettings settings) UnaryCallable<DeleteFeedRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonAssetServiceStub
protected HttpJsonAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonAssetServiceStub, 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
-
HttpJsonAssetServiceStub
protected HttpJsonAssetServiceStub(AssetServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonAssetServiceStub, 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 HttpJsonAssetServiceStub create(AssetServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonAssetServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
createFeedCallable
- Overrides:
createFeedCallablein classAssetServiceStub
-
getFeedCallable
- Overrides:
getFeedCallablein classAssetServiceStub
-
listFeedsCallable
- Overrides:
listFeedsCallablein classAssetServiceStub
-
updateFeedCallable
- Overrides:
updateFeedCallablein classAssetServiceStub
-
deleteFeedCallable
- Overrides:
deleteFeedCallablein classAssetServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAssetServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-