Class ConsumerProcurementServiceGrpc.ConsumerProcurementServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<ConsumerProcurementServiceGrpc.ConsumerProcurementServiceStub>
com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceGrpc.ConsumerProcurementServiceStub
- Enclosing class:
- ConsumerProcurementServiceGrpc
public static final class ConsumerProcurementServiceGrpc.ConsumerProcurementServiceStub
extends io.grpc.stub.AbstractAsyncStub<ConsumerProcurementServiceGrpc.ConsumerProcurementServiceStub>
A stub to allow clients to do asynchronous rpc calls to service ConsumerProcurementService.
ConsumerProcurementService allows customers to make purchases of products served by the Cloud Commerce platform. When purchases are made, the [ConsumerProcurementService][google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService] programs the appropriate backends, including both Google's own infrastructure, as well as third-party systems, and to enable billing setup for charging for the procured item.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidgetOrder(GetOrderRequest request, io.grpc.stub.StreamObserver<Order> responseObserver) Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.voidlistOrders(ListOrdersRequest request, io.grpc.stub.StreamObserver<ListOrdersResponse> responseObserver) Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the scope of the parent resource.voidplaceOrder(PlaceOrderRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ConsumerProcurementServiceGrpc.ConsumerProcurementServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ConsumerProcurementServiceGrpc.ConsumerProcurementServiceStub>
-
placeOrder
public void placeOrder(PlaceOrderRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. This API only supports GCP spend-based committed use discounts specified by GCP documentation. The returned long-running operation is in-progress until the backend completes the creation of the resource. Once completed, the order is in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1alpha1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the order resource will be removed.
-
getOrder
Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.
-
listOrders
public void listOrders(ListOrdersRequest request, io.grpc.stub.StreamObserver<ListOrdersResponse> responseObserver) Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the scope of the parent resource.
-