Class HttpJsonPrivateCatalogStub
- java.lang.Object
-
- com.google.cloud.privatecatalog.v1beta1.stub.PrivateCatalogStub
-
- com.google.cloud.privatecatalog.v1beta1.stub.HttpJsonPrivateCatalogStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonPrivateCatalogStub extends PrivateCatalogStub
REST stub implementation for the PrivateCatalog service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonPrivateCatalogStub, using the given settings.protected
HttpJsonPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonPrivateCatalogStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonPrivateCatalogStub
protected HttpJsonPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonPrivateCatalogStub, 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
-
HttpJsonPrivateCatalogStub
protected HttpJsonPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonPrivateCatalogStub, 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 HttpJsonPrivateCatalogStub create(PrivateCatalogStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonPrivateCatalogStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonPrivateCatalogStub 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()
-
searchCatalogsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCatalogsRequest,SearchCatalogsResponse> searchCatalogsCallable()
- Overrides:
searchCatalogsCallable
in classPrivateCatalogStub
-
searchCatalogsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCatalogsRequest,PrivateCatalogClient.SearchCatalogsPagedResponse> searchCatalogsPagedCallable()
- Overrides:
searchCatalogsPagedCallable
in classPrivateCatalogStub
-
searchProductsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProductsRequest,SearchProductsResponse> searchProductsCallable()
- Overrides:
searchProductsCallable
in classPrivateCatalogStub
-
searchProductsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProductsRequest,PrivateCatalogClient.SearchProductsPagedResponse> searchProductsPagedCallable()
- Overrides:
searchProductsPagedCallable
in classPrivateCatalogStub
-
searchVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchVersionsRequest,SearchVersionsResponse> searchVersionsCallable()
- Overrides:
searchVersionsCallable
in classPrivateCatalogStub
-
searchVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchVersionsRequest,PrivateCatalogClient.SearchVersionsPagedResponse> searchVersionsPagedCallable()
- Overrides:
searchVersionsPagedCallable
in classPrivateCatalogStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classPrivateCatalogStub
-
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
-
-