Class HttpJsonConsumerProcurementServiceStub (0.39.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonConsumerProcurementServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonConsumerProcurementServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonConsumerProcurementServiceStub
Exceptions
TypeDescription
IOException

create(ConsumerProcurementServiceStubSettings settings)

public static final HttpJsonConsumerProcurementServiceStub create(ConsumerProcurementServiceStubSettings settings)
Parameter
NameDescription
settingsConsumerProcurementServiceStubSettings
Returns
TypeDescription
HttpJsonConsumerProcurementServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsConsumerProcurementServiceStubSettings
clientContextClientContext

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
NameDescription
settingsConsumerProcurementServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getOrderCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listOrdersCallable()

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

listOrdersPagedCallable()

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

placeOrderCallable()

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

placeOrderOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()