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 protected
GrpcPrivateCatalogStub(PrivateCatalogStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcPrivateCatalogStub, using the given settings.protected
GrpcPrivateCatalogStub(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:
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
-
-