public class GrpcConsumerProcurementServiceStub extends ConsumerProcurementServiceStub
gRPC stub implementation for the ConsumerProcurementService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcConsumerProcurementServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcConsumerProcurementServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(ConsumerProcurementServiceStubSettings settings)
public static final GrpcConsumerProcurementServiceStub create(ConsumerProcurementServiceStubSettings settings)
Constructors
GrpcConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext)
protected GrpcConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcConsumerProcurementServiceStub, 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.
GrpcConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcConsumerProcurementServiceStub, 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.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Overrides
getOrderCallable()
public UnaryCallable<GetOrderRequest,Order> getOrderCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listOrdersCallable()
public UnaryCallable<ListOrdersRequest,ListOrdersResponse> listOrdersCallable()
Overrides
listOrdersPagedCallable()
public UnaryCallable<ListOrdersRequest,ConsumerProcurementServiceClient.ListOrdersPagedResponse> listOrdersPagedCallable()
Overrides
placeOrderCallable()
public UnaryCallable<PlaceOrderRequest,Operation> placeOrderCallable()
Overrides
placeOrderOperationCallable()
public OperationCallable<PlaceOrderRequest,Order,PlaceOrderMetadata> placeOrderOperationCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()