Class GrpcLocalInventoryServiceStub (0.21.0)

public class GrpcLocalInventoryServiceStub extends LocalInventoryServiceStub

gRPC stub implementation for the LocalInventoryService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > LocalInventoryServiceStub > GrpcLocalInventoryServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcLocalInventoryServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcLocalInventoryServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcLocalInventoryServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcLocalInventoryServiceStub
Exceptions
Type Description
IOException

create(LocalInventoryServiceStubSettings settings)

public static final GrpcLocalInventoryServiceStub create(LocalInventoryServiceStubSettings settings)
Parameter
Name Description
settings LocalInventoryServiceStubSettings
Returns
Type Description
GrpcLocalInventoryServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext)

protected GrpcLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcLocalInventoryServiceStub, 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
Name Description
settings LocalInventoryServiceStubSettings
clientContext ClientContext

GrpcLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcLocalInventoryServiceStub, 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
Name Description
settings LocalInventoryServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteLocalInventoryCallable()

public UnaryCallable<DeleteLocalInventoryRequest,Empty> deleteLocalInventoryCallable()
Returns
Type Description
UnaryCallable<DeleteLocalInventoryRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

insertLocalInventoryCallable()

public UnaryCallable<InsertLocalInventoryRequest,LocalInventory> insertLocalInventoryCallable()
Returns
Type Description
UnaryCallable<InsertLocalInventoryRequest,LocalInventory>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocalInventoriesCallable()

public UnaryCallable<ListLocalInventoriesRequest,ListLocalInventoriesResponse> listLocalInventoriesCallable()
Returns
Type Description
UnaryCallable<ListLocalInventoriesRequest,ListLocalInventoriesResponse>
Overrides

listLocalInventoriesPagedCallable()

public UnaryCallable<ListLocalInventoriesRequest,LocalInventoryServiceClient.ListLocalInventoriesPagedResponse> listLocalInventoriesPagedCallable()
Returns
Type Description
UnaryCallable<ListLocalInventoriesRequest,ListLocalInventoriesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()