public static final class ConsumerProcurementServiceGrpc.ConsumerProcurementServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ConsumerProcurementServiceGrpc.ConsumerProcurementServiceBlockingStub>
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.
| Modifier and Type | Method and Description |
|---|---|
protected ConsumerProcurementServiceGrpc.ConsumerProcurementServiceBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
Order |
getOrder(GetOrderRequest request)
Returns the requested
[Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]
resource.
|
ListOrdersResponse |
listOrders(ListOrdersRequest request)
Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]
resources that the user has access to, within the scope of the parent
resource.
|
com.google.longrunning.Operation |
placeOrder(PlaceOrderRequest request)
Creates a new
[Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order].
|
protected ConsumerProcurementServiceGrpc.ConsumerProcurementServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<ConsumerProcurementServiceGrpc.ConsumerProcurementServiceBlockingStub>public com.google.longrunning.Operation placeOrder(PlaceOrderRequest request)
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.
public Order getOrder(GetOrderRequest request)
Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.
public ListOrdersResponse listOrders(ListOrdersRequest request)
Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the scope of the parent resource.
Copyright © 2023 Google LLC. All rights reserved.