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 protectedGrpcProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcProductServiceStub, using the given settings.protectedGrpcProductServiceStub(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:
getOperationsStubin classProductServiceStub
-
createProductCallable
public com.google.api.gax.rpc.UnaryCallable<CreateProductRequest,Product> createProductCallable()
- Overrides:
createProductCallablein classProductServiceStub
-
getProductCallable
public com.google.api.gax.rpc.UnaryCallable<GetProductRequest,Product> getProductCallable()
- Overrides:
getProductCallablein classProductServiceStub
-
listProductsCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsRequest,ListProductsResponse> listProductsCallable()
- Overrides:
listProductsCallablein classProductServiceStub
-
listProductsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListProductsRequest,ProductServiceClient.ListProductsPagedResponse> listProductsPagedCallable()
- Overrides:
listProductsPagedCallablein classProductServiceStub
-
updateProductCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateProductRequest,Product> updateProductCallable()
- Overrides:
updateProductCallablein classProductServiceStub
-
deleteProductCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteProductRequest,com.google.protobuf.Empty> deleteProductCallable()
- Overrides:
deleteProductCallablein classProductServiceStub
-
importProductsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportProductsRequest,com.google.longrunning.Operation> importProductsCallable()
- Overrides:
importProductsCallablein classProductServiceStub
-
importProductsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportProductsRequest,ImportProductsResponse,ImportMetadata> importProductsOperationCallable()
- Overrides:
importProductsOperationCallablein classProductServiceStub
-
setInventoryCallable
public com.google.api.gax.rpc.UnaryCallable<SetInventoryRequest,com.google.longrunning.Operation> setInventoryCallable()
- Overrides:
setInventoryCallablein classProductServiceStub
-
setInventoryOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetInventoryRequest,SetInventoryResponse,SetInventoryMetadata> setInventoryOperationCallable()
- Overrides:
setInventoryOperationCallablein classProductServiceStub
-
addFulfillmentPlacesCallable
public com.google.api.gax.rpc.UnaryCallable<AddFulfillmentPlacesRequest,com.google.longrunning.Operation> addFulfillmentPlacesCallable()
- Overrides:
addFulfillmentPlacesCallablein classProductServiceStub
-
addFulfillmentPlacesOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse,AddFulfillmentPlacesMetadata> addFulfillmentPlacesOperationCallable()
- Overrides:
addFulfillmentPlacesOperationCallablein classProductServiceStub
-
removeFulfillmentPlacesCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveFulfillmentPlacesRequest,com.google.longrunning.Operation> removeFulfillmentPlacesCallable()
- Overrides:
removeFulfillmentPlacesCallablein classProductServiceStub
-
removeFulfillmentPlacesOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse,RemoveFulfillmentPlacesMetadata> removeFulfillmentPlacesOperationCallable()
- Overrides:
removeFulfillmentPlacesOperationCallablein classProductServiceStub
-
addLocalInventoriesCallable
public com.google.api.gax.rpc.UnaryCallable<AddLocalInventoriesRequest,com.google.longrunning.Operation> addLocalInventoriesCallable()
- Overrides:
addLocalInventoriesCallablein classProductServiceStub
-
addLocalInventoriesOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata> addLocalInventoriesOperationCallable()
- Overrides:
addLocalInventoriesOperationCallablein classProductServiceStub
-
removeLocalInventoriesCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveLocalInventoriesRequest,com.google.longrunning.Operation> removeLocalInventoriesCallable()
- Overrides:
removeLocalInventoriesCallablein classProductServiceStub
-
removeLocalInventoriesOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse,RemoveLocalInventoriesMetadata> removeLocalInventoriesOperationCallable()
- Overrides:
removeLocalInventoriesOperationCallablein classProductServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-