Class GrpcProductServiceStub
java.lang.Object
com.google.cloud.retail.v2beta.stub.ProductServiceStub
com.google.cloud.retail.v2beta.stub.GrpcProductServiceStub
- All Implemented Interfaces:
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
ConstructorsModifierConstructorDescriptionprotectedGrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcProductServiceStub, using the given settings.protectedGrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcProductServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionOperationCallable<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse, AddFulfillmentPlacesMetadata> OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse, AddLocalInventoriesMetadata> booleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcProductServiceStubcreate(ClientContext clientContext) static final GrpcProductServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcProductServiceStubcreate(ProductServiceStubSettings settings) UnaryCallable<DeleteProductRequest,com.google.protobuf.Empty> booleanbooleanOperationCallable<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse, RemoveFulfillmentPlacesMetadata> OperationCallable<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse, RemoveLocalInventoriesMetadata> voidshutdown()voidMethods inherited from class com.google.cloud.retail.v2beta.stub.ProductServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcProductServiceStub
protected GrpcProductServiceStub(ProductServiceStubSettings settings, 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, ClientContext clientContext, 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 Details
-
create
public static final GrpcProductServiceStub create(ProductServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcProductServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classProductServiceStub
-
createProductCallable
- Overrides:
createProductCallablein classProductServiceStub
-
getProductCallable
- Overrides:
getProductCallablein classProductServiceStub
-
listProductsCallable
- Overrides:
listProductsCallablein classProductServiceStub
-
listProductsPagedCallable
public UnaryCallable<ListProductsRequest,ProductServiceClient.ListProductsPagedResponse> listProductsPagedCallable()- Overrides:
listProductsPagedCallablein classProductServiceStub
-
updateProductCallable
- Overrides:
updateProductCallablein classProductServiceStub
-
deleteProductCallable
- Overrides:
deleteProductCallablein classProductServiceStub
-
purgeProductsCallable
- Overrides:
purgeProductsCallablein classProductServiceStub
-
purgeProductsOperationCallable
public OperationCallable<PurgeProductsRequest,PurgeProductsResponse, purgeProductsOperationCallable()PurgeProductsMetadata> - Overrides:
purgeProductsOperationCallablein classProductServiceStub
-
importProductsCallable
- Overrides:
importProductsCallablein classProductServiceStub
-
importProductsOperationCallable
public OperationCallable<ImportProductsRequest,ImportProductsResponse, importProductsOperationCallable()ImportMetadata> - Overrides:
importProductsOperationCallablein classProductServiceStub
-
exportProductsCallable
- Overrides:
exportProductsCallablein classProductServiceStub
-
exportProductsOperationCallable
public OperationCallable<ExportProductsRequest,ExportProductsResponse, exportProductsOperationCallable()ExportMetadata> - Overrides:
exportProductsOperationCallablein classProductServiceStub
-
setInventoryCallable
- Overrides:
setInventoryCallablein classProductServiceStub
-
setInventoryOperationCallable
public OperationCallable<SetInventoryRequest,SetInventoryResponse, setInventoryOperationCallable()SetInventoryMetadata> - Overrides:
setInventoryOperationCallablein classProductServiceStub
-
addFulfillmentPlacesCallable
- Overrides:
addFulfillmentPlacesCallablein classProductServiceStub
-
addFulfillmentPlacesOperationCallable
public OperationCallable<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse, addFulfillmentPlacesOperationCallable()AddFulfillmentPlacesMetadata> - Overrides:
addFulfillmentPlacesOperationCallablein classProductServiceStub
-
removeFulfillmentPlacesCallable
- Overrides:
removeFulfillmentPlacesCallablein classProductServiceStub
-
removeFulfillmentPlacesOperationCallable
public OperationCallable<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse, removeFulfillmentPlacesOperationCallable()RemoveFulfillmentPlacesMetadata> - Overrides:
removeFulfillmentPlacesOperationCallablein classProductServiceStub
-
addLocalInventoriesCallable
- Overrides:
addLocalInventoriesCallablein classProductServiceStub
-
addLocalInventoriesOperationCallable
public OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse, addLocalInventoriesOperationCallable()AddLocalInventoriesMetadata> - Overrides:
addLocalInventoriesOperationCallablein classProductServiceStub
-
removeLocalInventoriesCallable
- Overrides:
removeLocalInventoriesCallablein classProductServiceStub
-
removeLocalInventoriesOperationCallable
public OperationCallable<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse, removeLocalInventoriesOperationCallable()RemoveLocalInventoriesMetadata> - 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
- Throws:
InterruptedException
-