Class GrpcCatalogServiceStub
- java.lang.Object
-
- com.google.cloud.recommendationengine.v1beta1.stub.CatalogServiceStub
-
- com.google.cloud.recommendationengine.v1beta1.stub.GrpcCatalogServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcCatalogServiceStub extends CatalogServiceStub
gRPC stub implementation for the CatalogService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcCatalogServiceStub, using the given settings.protectedGrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcCatalogServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcCatalogServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcCatalogServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcCatalogServiceStubcreate(CatalogServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateCatalogItemRequest,CatalogItem>createCatalogItemCallable()com.google.api.gax.rpc.UnaryCallable<DeleteCatalogItemRequest,com.google.protobuf.Empty>deleteCatalogItemCallable()com.google.api.gax.rpc.UnaryCallable<GetCatalogItemRequest,CatalogItem>getCatalogItemCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<ImportCatalogItemsRequest,com.google.longrunning.Operation>importCatalogItemsCallable()com.google.api.gax.rpc.OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata>importCatalogItemsOperationCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse>listCatalogItemsCallable()com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,CatalogServiceClient.ListCatalogItemsPagedResponse>listCatalogItemsPagedCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateCatalogItemRequest,CatalogItem>updateCatalogItemCallable()-
Methods inherited from class com.google.cloud.recommendationengine.v1beta1.stub.CatalogServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcCatalogServiceStub
protected GrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcCatalogServiceStub, 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
-
GrpcCatalogServiceStub
protected GrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcCatalogServiceStub, 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 GrpcCatalogServiceStub create(CatalogServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcCatalogServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcCatalogServiceStub 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()
- Overrides:
getOperationsStubin classCatalogServiceStub
-
createCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCatalogItemRequest,CatalogItem> createCatalogItemCallable()
- Overrides:
createCatalogItemCallablein classCatalogServiceStub
-
getCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<GetCatalogItemRequest,CatalogItem> getCatalogItemCallable()
- Overrides:
getCatalogItemCallablein classCatalogServiceStub
-
listCatalogItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse> listCatalogItemsCallable()
- Overrides:
listCatalogItemsCallablein classCatalogServiceStub
-
listCatalogItemsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,CatalogServiceClient.ListCatalogItemsPagedResponse> listCatalogItemsPagedCallable()
- Overrides:
listCatalogItemsPagedCallablein classCatalogServiceStub
-
updateCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCatalogItemRequest,CatalogItem> updateCatalogItemCallable()
- Overrides:
updateCatalogItemCallablein classCatalogServiceStub
-
deleteCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteCatalogItemRequest,com.google.protobuf.Empty> deleteCatalogItemCallable()
- Overrides:
deleteCatalogItemCallablein classCatalogServiceStub
-
importCatalogItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportCatalogItemsRequest,com.google.longrunning.Operation> importCatalogItemsCallable()
- Overrides:
importCatalogItemsCallablein classCatalogServiceStub
-
importCatalogItemsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata> importCatalogItemsOperationCallable()
- Overrides:
importCatalogItemsOperationCallablein classCatalogServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCatalogServiceStub
-
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
-
-