Class HttpJsonProductServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2alpha.stub.ProductServiceStub
-
- com.google.cloud.retail.v2alpha.stub.HttpJsonProductServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonProductServiceStub extends ProductServiceStub
REST 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
HttpJsonProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonProductServiceStub, using the given settings.protected
HttpJsonProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonProductServiceStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.retail.v2alpha.stub.ProductServiceStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonProductServiceStub
protected HttpJsonProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonProductServiceStub, 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
-
HttpJsonProductServiceStub
protected HttpJsonProductServiceStub(ProductServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonProductServiceStub, 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 HttpJsonProductServiceStub create(ProductServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonProductServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonProductServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
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
-
purgeProductsCallable
public com.google.api.gax.rpc.UnaryCallable<PurgeProductsRequest,com.google.longrunning.Operation> purgeProductsCallable()
- Overrides:
purgeProductsCallable
in classProductServiceStub
-
purgeProductsOperationCallable
public com.google.api.gax.rpc.OperationCallable<PurgeProductsRequest,PurgeProductsResponse,PurgeProductsMetadata> purgeProductsOperationCallable()
- Overrides:
purgeProductsOperationCallable
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
-
-