public class HttpJsonConsumerProcurementServiceStub extends ConsumerProcurementServiceStub
REST 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 HttpJsonConsumerProcurementServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonConsumerProcurementServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
create(ConsumerProcurementServiceStubSettings settings)
public static final HttpJsonConsumerProcurementServiceStub create(ConsumerProcurementServiceStubSettings settings)
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Constructors
HttpJsonConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext)
protected HttpJsonConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext)
Constructs an instance of HttpJsonConsumerProcurementServiceStub, 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.
HttpJsonConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
protected HttpJsonConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonConsumerProcurementServiceStub, 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
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
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()