Class GrpcProductServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2beta.stub.ProductServiceStub
-
- com.google.cloud.retail.v2beta.stub.GrpcProductServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcProductServiceStub extends ProductServiceStub
gRPC stub implementation for the ProductService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcProductServiceStub, using the given settings.protected
GrpcProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcProductServiceStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.retail.v2beta.stub.ProductServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcProductServiceStub
protected GrpcProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcProductServiceStub, 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
-
GrpcProductServiceStub
protected GrpcProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcProductServiceStub, 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 GrpcProductServiceStub create(ProductServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcProductServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcProductServiceStub 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 classProductServiceStub
-
createProductCallable
public com.google.api.gax.rpc.UnaryCallable<CreateProductRequest,Product> createProductCallable()
- Overrides:
createProductCallable
in classProductServiceStub
-
getProductCallable
public com.google.api.gax.rpc.UnaryCallable<GetProductRequest,Product> getProductCallable()
- Overrides:
getProductCallable
in classProductServiceStub
-
listProductsCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsRequest,ListProductsResponse> listProductsCallable()
- Overrides:
listProductsCallable
in classProductServiceStub
-
listProductsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsRequest,ProductServiceClient.ListProductsPagedResponse> listProductsPagedCallable()
- Overrides:
listProductsPagedCallable
in classProductServiceStub
-
updateProductCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProductRequest,Product> updateProductCallable()
- Overrides:
updateProductCallable
in classProductServiceStub
-
deleteProductCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteProductRequest,com.google.protobuf.Empty> deleteProductCallable()
- Overrides:
deleteProductCallable
in classProductServiceStub
-
importProductsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportProductsRequest,com.google.longrunning.Operation> importProductsCallable()
- Overrides:
importProductsCallable
in classProductServiceStub
-
importProductsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportProductsRequest,ImportProductsResponse,ImportMetadata> importProductsOperationCallable()
- Overrides:
importProductsOperationCallable
in classProductServiceStub
-
setInventoryCallable
public com.google.api.gax.rpc.UnaryCallable<SetInventoryRequest,com.google.longrunning.Operation> setInventoryCallable()
- Overrides:
setInventoryCallable
in classProductServiceStub
-
setInventoryOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetInventoryRequest,SetInventoryResponse,SetInventoryMetadata> setInventoryOperationCallable()
- Overrides:
setInventoryOperationCallable
in classProductServiceStub
-
addFulfillmentPlacesCallable
public com.google.api.gax.rpc.UnaryCallable<AddFulfillmentPlacesRequest,com.google.longrunning.Operation> addFulfillmentPlacesCallable()
- Overrides:
addFulfillmentPlacesCallable
in classProductServiceStub
-
addFulfillmentPlacesOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse,AddFulfillmentPlacesMetadata> addFulfillmentPlacesOperationCallable()
- Overrides:
addFulfillmentPlacesOperationCallable
in classProductServiceStub
-
removeFulfillmentPlacesCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveFulfillmentPlacesRequest,com.google.longrunning.Operation> removeFulfillmentPlacesCallable()
- Overrides:
removeFulfillmentPlacesCallable
in classProductServiceStub
-
removeFulfillmentPlacesOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse,RemoveFulfillmentPlacesMetadata> removeFulfillmentPlacesOperationCallable()
- Overrides:
removeFulfillmentPlacesOperationCallable
in classProductServiceStub
-
addLocalInventoriesCallable
public com.google.api.gax.rpc.UnaryCallable<AddLocalInventoriesRequest,com.google.longrunning.Operation> addLocalInventoriesCallable()
- Overrides:
addLocalInventoriesCallable
in classProductServiceStub
-
addLocalInventoriesOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata> addLocalInventoriesOperationCallable()
- Overrides:
addLocalInventoriesOperationCallable
in classProductServiceStub
-
removeLocalInventoriesCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveLocalInventoriesRequest,com.google.longrunning.Operation> removeLocalInventoriesCallable()
- Overrides:
removeLocalInventoriesCallable
in classProductServiceStub
-
removeLocalInventoriesOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse,RemoveLocalInventoriesMetadata> removeLocalInventoriesOperationCallable()
- Overrides:
removeLocalInventoriesOperationCallable
in classProductServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classProductServiceStub
-
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
-
-