Class GrpcProductServiceStub (2.14.0)

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.

Inheritance

java.lang.Object > ProductServiceStub > GrpcProductServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcProductServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcProductServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcProductServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcProductServiceStub
Exceptions
TypeDescription
IOException

create(ProductServiceStubSettings settings)

public static final GrpcProductServiceStub create(ProductServiceStubSettings settings)
Parameter
NameDescription
settingsProductServiceStubSettings
Returns
TypeDescription
GrpcProductServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext)

protected GrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsProductServiceStubSettings
clientContextClientContext

GrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcProductServiceStub(ProductServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsProductServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

addFulfillmentPlacesCallable()

public UnaryCallable<AddFulfillmentPlacesRequest,Operation> addFulfillmentPlacesCallable()
Returns Overrides

addFulfillmentPlacesOperationCallable()

public OperationCallable<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse,AddFulfillmentPlacesMetadata> addFulfillmentPlacesOperationCallable()
Returns Overrides

addLocalInventoriesCallable()

public UnaryCallable<AddLocalInventoriesRequest,Operation> addLocalInventoriesCallable()
Returns Overrides

addLocalInventoriesOperationCallable()

public OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata> addLocalInventoriesOperationCallable()
Returns Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createProductCallable()

public UnaryCallable<CreateProductRequest,Product> createProductCallable()
Returns Overrides

deleteProductCallable()

public UnaryCallable<DeleteProductRequest,Empty> deleteProductCallable()
Returns Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getProductCallable()

public UnaryCallable<GetProductRequest,Product> getProductCallable()
Returns Overrides

importProductsCallable()

public UnaryCallable<ImportProductsRequest,Operation> importProductsCallable()
Returns Overrides

importProductsOperationCallable()

public OperationCallable<ImportProductsRequest,ImportProductsResponse,ImportMetadata> importProductsOperationCallable()
Returns Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listProductsCallable()

public UnaryCallable<ListProductsRequest,ListProductsResponse> listProductsCallable()
Returns Overrides

listProductsPagedCallable()

public UnaryCallable<ListProductsRequest,ProductServiceClient.ListProductsPagedResponse> listProductsPagedCallable()
Returns Overrides

removeFulfillmentPlacesCallable()

public UnaryCallable<RemoveFulfillmentPlacesRequest,Operation> removeFulfillmentPlacesCallable()
Returns Overrides

removeFulfillmentPlacesOperationCallable()

public OperationCallable<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse,RemoveFulfillmentPlacesMetadata> removeFulfillmentPlacesOperationCallable()
Returns Overrides

removeLocalInventoriesCallable()

public UnaryCallable<RemoveLocalInventoriesRequest,Operation> removeLocalInventoriesCallable()
Returns Overrides

removeLocalInventoriesOperationCallable()

public OperationCallable<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse,RemoveLocalInventoriesMetadata> removeLocalInventoriesOperationCallable()
Returns Overrides

setInventoryCallable()

public UnaryCallable<SetInventoryRequest,Operation> setInventoryCallable()
Returns Overrides

setInventoryOperationCallable()

public OperationCallable<SetInventoryRequest,SetInventoryResponse,SetInventoryMetadata> setInventoryOperationCallable()
Returns Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateProductCallable()

public UnaryCallable<UpdateProductRequest,Product> updateProductCallable()
Returns Overrides