Class GrpcProductServiceStub (2.8.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
TypeDescription
UnaryCallable<AddFulfillmentPlacesRequest,Operation>
Overrides

addFulfillmentPlacesOperationCallable()

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

addLocalInventoriesCallable()

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

addLocalInventoriesOperationCallable()

public OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata> addLocalInventoriesOperationCallable()
Returns
TypeDescription
OperationCallable<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata>
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
TypeDescription
UnaryCallable<CreateProductRequest,Product>
Overrides

deleteProductCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getProductCallable()

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

importProductsCallable()

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

importProductsOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listProductsCallable()

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

listProductsPagedCallable()

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

purgeProductsCallable()

public UnaryCallable<PurgeProductsRequest,Operation> purgeProductsCallable()
Returns
TypeDescription
UnaryCallable<PurgeProductsRequest,Operation>
Overrides

purgeProductsOperationCallable()

public OperationCallable<PurgeProductsRequest,PurgeProductsResponse,PurgeProductsMetadata> purgeProductsOperationCallable()
Returns
TypeDescription
OperationCallable<PurgeProductsRequest,PurgeProductsResponse,PurgeProductsMetadata>
Overrides

removeFulfillmentPlacesCallable()

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

removeFulfillmentPlacesOperationCallable()

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

removeLocalInventoriesCallable()

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

removeLocalInventoriesOperationCallable()

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

setInventoryCallable()

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

setInventoryOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateProductCallable()

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