Class HttpJsonConsumerProcurementServiceStub (0.50.0)

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.

Inheritance

java.lang.Object > ConsumerProcurementServiceStub > HttpJsonConsumerProcurementServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ConsumerProcurementServiceStubSettings settings)

public static final HttpJsonConsumerProcurementServiceStub create(ConsumerProcurementServiceStubSettings settings)
Parameter
Name Description
settings ConsumerProcurementServiceStubSettings
Returns
Type Description
HttpJsonConsumerProcurementServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

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.

Parameters
Name Description
settings ConsumerProcurementServiceStubSettings
clientContext ClientContext

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.

Parameters
Name Description
settings ConsumerProcurementServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

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

cancelOrderCallable()

public UnaryCallable<CancelOrderRequest,Operation> cancelOrderCallable()
Returns
Type Description
UnaryCallable<CancelOrderRequest,Operation>
Overrides

cancelOrderOperationCallable()

public OperationCallable<CancelOrderRequest,Order,CancelOrderMetadata> cancelOrderOperationCallable()
Returns
Type Description
OperationCallable<CancelOrderRequest,Order,CancelOrderMetadata>
Overrides

close()

public final void close()
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getOrderCallable()

public UnaryCallable<GetOrderRequest,Order> getOrderCallable()
Returns
Type Description
UnaryCallable<GetOrderRequest,Order>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listOrdersCallable()

public UnaryCallable<ListOrdersRequest,ListOrdersResponse> listOrdersCallable()
Returns
Type Description
UnaryCallable<ListOrdersRequest,ListOrdersResponse>
Overrides

listOrdersPagedCallable()

public UnaryCallable<ListOrdersRequest,ConsumerProcurementServiceClient.ListOrdersPagedResponse> listOrdersPagedCallable()
Returns
Type Description
UnaryCallable<ListOrdersRequest,ListOrdersPagedResponse>
Overrides

modifyOrderCallable()

public UnaryCallable<ModifyOrderRequest,Operation> modifyOrderCallable()
Returns
Type Description
UnaryCallable<ModifyOrderRequest,Operation>
Overrides

modifyOrderOperationCallable()

public OperationCallable<ModifyOrderRequest,Order,ModifyOrderMetadata> modifyOrderOperationCallable()
Returns
Type Description
OperationCallable<ModifyOrderRequest,Order,ModifyOrderMetadata>
Overrides

placeOrderCallable()

public UnaryCallable<PlaceOrderRequest,Operation> placeOrderCallable()
Returns
Type Description
UnaryCallable<PlaceOrderRequest,Operation>
Overrides

placeOrderOperationCallable()

public OperationCallable<PlaceOrderRequest,Order,PlaceOrderMetadata> placeOrderOperationCallable()
Returns
Type Description
OperationCallable<PlaceOrderRequest,Order,PlaceOrderMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()