Class GrpcPrivateCatalogStub
- java.lang.Object
-
- com.google.cloud.privatecatalog.v1beta1.stub.PrivateCatalogStub
-
- com.google.cloud.privatecatalog.v1beta1.stub.GrpcPrivateCatalogStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcPrivateCatalogStub extends PrivateCatalogStub
gRPC 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 protectedGrpcPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcPrivateCatalogStub, using the given settings.protectedGrpcPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcPrivateCatalogStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcPrivateCatalogStub
protected GrpcPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcPrivateCatalogStub, 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
-
GrpcPrivateCatalogStub
protected GrpcPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcPrivateCatalogStub, 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 GrpcPrivateCatalogStub create(PrivateCatalogStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcPrivateCatalogStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcPrivateCatalogStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
searchCatalogsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCatalogsRequest,SearchCatalogsResponse> searchCatalogsCallable()
- Overrides:
searchCatalogsCallablein classPrivateCatalogStub
-
searchCatalogsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCatalogsRequest,PrivateCatalogClient.SearchCatalogsPagedResponse> searchCatalogsPagedCallable()
- Overrides:
searchCatalogsPagedCallablein classPrivateCatalogStub
-
searchProductsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProductsRequest,SearchProductsResponse> searchProductsCallable()
- Overrides:
searchProductsCallablein classPrivateCatalogStub
-
searchProductsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchProductsRequest,PrivateCatalogClient.SearchProductsPagedResponse> searchProductsPagedCallable()
- Overrides:
searchProductsPagedCallablein classPrivateCatalogStub
-
searchVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchVersionsRequest,SearchVersionsResponse> searchVersionsCallable()
- Overrides:
searchVersionsCallablein classPrivateCatalogStub
-
searchVersionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchVersionsRequest,PrivateCatalogClient.SearchVersionsPagedResponse> searchVersionsPagedCallable()
- Overrides:
searchVersionsPagedCallablein classPrivateCatalogStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-