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 protected
GrpcCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcCatalogServiceStub, using the given settings.protected
GrpcCatalogServiceStub(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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcCatalogServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcCatalogServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcCatalogServiceStub
create(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.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<ImportCatalogItemsRequest,com.google.longrunning.Operation>
importCatalogItemsCallable()
com.google.api.gax.rpc.OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata>
importCatalogItemsOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse>
listCatalogItemsCallable()
com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,CatalogServiceClient.ListCatalogItemsPagedResponse>
listCatalogItemsPagedCallable()
void
shutdown()
void
shutdownNow()
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:
getOperationsStub
in classCatalogServiceStub
-
createCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCatalogItemRequest,CatalogItem> createCatalogItemCallable()
- Overrides:
createCatalogItemCallable
in classCatalogServiceStub
-
getCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<GetCatalogItemRequest,CatalogItem> getCatalogItemCallable()
- Overrides:
getCatalogItemCallable
in classCatalogServiceStub
-
listCatalogItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse> listCatalogItemsCallable()
- Overrides:
listCatalogItemsCallable
in classCatalogServiceStub
-
listCatalogItemsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,CatalogServiceClient.ListCatalogItemsPagedResponse> listCatalogItemsPagedCallable()
- Overrides:
listCatalogItemsPagedCallable
in classCatalogServiceStub
-
updateCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCatalogItemRequest,CatalogItem> updateCatalogItemCallable()
- Overrides:
updateCatalogItemCallable
in classCatalogServiceStub
-
deleteCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteCatalogItemRequest,com.google.protobuf.Empty> deleteCatalogItemCallable()
- Overrides:
deleteCatalogItemCallable
in classCatalogServiceStub
-
importCatalogItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportCatalogItemsRequest,com.google.longrunning.Operation> importCatalogItemsCallable()
- Overrides:
importCatalogItemsCallable
in classCatalogServiceStub
-
importCatalogItemsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata> importCatalogItemsOperationCallable()
- Overrides:
importCatalogItemsOperationCallable
in classCatalogServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-