# Cloud Commerce Consumer Procurement v1 API - Class ConsumerProcurementServiceClientImpl (1.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClientImpl)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.5.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClientImpl)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.4.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClientImpl)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.3.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClientImpl)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.2.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClientImpl)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.1.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClientImpl)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.0.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClientImpl)

    public sealed class ConsumerProcurementServiceClientImpl : ConsumerProcurementServiceClient

Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class ConsumerProcurementServiceClientImpl.

ConsumerProcurementService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ConsumerProcurementServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient) \> ConsumerProcurementServiceClientImpl

## Inherited Members

[ConsumerProcurementServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_DefaultEndpoint) [ConsumerProcurementServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_DefaultScopes) [ConsumerProcurementServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ServiceMetadata) [ConsumerProcurementServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_CreateAsync_System_Threading_CancellationToken_) [ConsumerProcurementServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_Create) [ConsumerProcurementServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ShutdownDefaultChannelsAsync) [ConsumerProcurementServiceClient.PlaceOrderAsync(PlaceOrderRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PlaceOrderAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_PlaceOrderRequest_System_Threading_CancellationToken_) [ConsumerProcurementServiceClient.PollOncePlaceOrder(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PollOncePlaceOrder_System_String_Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.PollOncePlaceOrderAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PollOncePlaceOrderAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.GetOrderAsync(GetOrderRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_GetOrderAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_GetOrderRequest_System_Threading_CancellationToken_) [ConsumerProcurementServiceClient.GetOrder(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_GetOrder_System_String_Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.GetOrderAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_GetOrderAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.GetOrderAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_GetOrderAsync_System_String_System_Threading_CancellationToken_) [ConsumerProcurementServiceClient.ListOrders(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ListOrders_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.ListOrdersAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ListOrdersAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.ModifyOrderAsync(ModifyOrderRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ModifyOrderAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_ModifyOrderRequest_System_Threading_CancellationToken_) [ConsumerProcurementServiceClient.PollOnceModifyOrder(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PollOnceModifyOrder_System_String_Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.PollOnceModifyOrderAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PollOnceModifyOrderAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.CancelOrderAsync(CancelOrderRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_CancelOrderAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_CancelOrderRequest_System_Threading_CancellationToken_) [ConsumerProcurementServiceClient.PollOnceCancelOrder(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PollOnceCancelOrder_System_String_Google_Api_Gax_Grpc_CallSettings_) [ConsumerProcurementServiceClient.PollOnceCancelOrderAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PollOnceCancelOrderAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Commerce.Consumer.Procurement.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1)

## Assembly

Google.Cloud.Commerce.Consumer.Procurement.V1.dll

## Remarks

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.v1.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.

## Constructors

### ConsumerProcurementServiceClientImpl(ConsumerProcurementServiceClient, ConsumerProcurementServiceSettings, ILogger)

    public ConsumerProcurementServiceClientImpl(ConsumerProcurementService.ConsumerProcurementServiceClient grpcClient, ConsumerProcurementServiceSettings settings, ILogger logger)

Constructs a client wrapper for the ConsumerProcurementService service, with the specified gRPC client and
settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementService.ConsumerProcurementServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceSettings` The base [ConsumerProcurementServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### CancelOrderOperationsClient

    public override OperationsClient CancelOrderOperationsClient { get; }

The long-running operations client for `CancelOrder`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [ConsumerProcurementServiceClient.CancelOrderOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_CancelOrderOperationsClient)

### GrpcClient

    public override ConsumerProcurementService.ConsumerProcurementServiceClient GrpcClient { get; }

The underlying gRPC ConsumerProcurementService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementService.ConsumerProcurementServiceClient` |   |

**Overrides** [ConsumerProcurementServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_GrpcClient)

### ModifyOrderOperationsClient

    public override OperationsClient ModifyOrderOperationsClient { get; }

The long-running operations client for `ModifyOrder`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [ConsumerProcurementServiceClient.ModifyOrderOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ModifyOrderOperationsClient)

### PlaceOrderOperationsClient

    public override OperationsClient PlaceOrderOperationsClient { get; }

The long-running operations client for `PlaceOrder`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [ConsumerProcurementServiceClient.PlaceOrderOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PlaceOrderOperationsClient)

## Methods

### CancelOrder(CancelOrderRequest, CallSettings)

    public override Operation<Order, CancelOrderMetadata> CancelOrder(CancelOrderRequest request, CallSettings callSettings = null)

Cancels an existing
\[Order\]\[google.cloud.commerce.consumer.procurement.v1.Order\]. Every product
procured in the Order will be cancelled.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Orderhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderMetadata` | The RPC response. |

**Overrides** [ConsumerProcurementServiceClient.CancelOrder(CancelOrderRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_CancelOrder_Google_Cloud_Commerce_Consumer_Procurement_V1_CancelOrderRequest_Google_Api_Gax_Grpc_CallSettings_)

### CancelOrderAsync(CancelOrderRequest, CallSettings)

    public override Task<Operation<Order, CancelOrderMetadata>> CancelOrderAsync(CancelOrderRequest request, CallSettings callSettings = null)

Cancels an existing
\[Order\]\[google.cloud.commerce.consumer.procurement.v1.Order\]. Every product
procured in the Order will be cancelled.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Orderhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderMetadata` | A Task containing the RPC response. |

**Overrides** [ConsumerProcurementServiceClient.CancelOrderAsync(CancelOrderRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_CancelOrderAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_CancelOrderRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetOrder(GetOrderRequest, CallSettings)

    public override Order GetOrder(GetOrderRequest request, CallSettings callSettings = null)

Returns the requested
\[Order\]\[google.cloud.commerce.consumer.procurement.v1.Order\] resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.GetOrderRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order` | The RPC response. |

**Overrides** [ConsumerProcurementServiceClient.GetOrder(GetOrderRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_GetOrder_Google_Cloud_Commerce_Consumer_Procurement_V1_GetOrderRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetOrderAsync(GetOrderRequest, CallSettings)

    public override Task<Order> GetOrderAsync(GetOrderRequest request, CallSettings callSettings = null)

Returns the requested
\[Order\]\[google.cloud.commerce.consumer.procurement.v1.Order\] resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.GetOrderRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order` | A Task containing the RPC response. |

**Overrides** [ConsumerProcurementServiceClient.GetOrderAsync(GetOrderRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_GetOrderAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_GetOrderRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListOrders(ListOrdersRequest, CallSettings)

    public override PagedEnumerable<ListOrdersResponse, Order> ListOrders(ListOrdersRequest request, CallSettings callSettings = null)

Lists \[Order\]\[google.cloud.commerce.consumer.procurement.v1.Order\]
resources that the user has access to, within the scope of the parent
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ListOrdersRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ListOrdersResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order` | A pageable sequence of [Order](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order) resources. |

**Overrides** [ConsumerProcurementServiceClient.ListOrders(ListOrdersRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ListOrders_Google_Cloud_Commerce_Consumer_Procurement_V1_ListOrdersRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListOrdersAsync(ListOrdersRequest, CallSettings)

    public override PagedAsyncEnumerable<ListOrdersResponse, Order> ListOrdersAsync(ListOrdersRequest request, CallSettings callSettings = null)

Lists \[Order\]\[google.cloud.commerce.consumer.procurement.v1.Order\]
resources that the user has access to, within the scope of the parent
resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ListOrdersRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ListOrdersResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order` | A pageable asynchronous sequence of [Order](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order) resources. |

**Overrides** [ConsumerProcurementServiceClient.ListOrdersAsync(ListOrdersRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ListOrdersAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_ListOrdersRequest_Google_Api_Gax_Grpc_CallSettings_)

### ModifyOrder(ModifyOrderRequest, CallSettings)

    public override Operation<Order, ModifyOrderMetadata> ModifyOrder(ModifyOrderRequest request, CallSettings callSettings = null)

Modifies an existing
\[Order\]\[google.cloud.commerce.consumer.procurement.v1.Order\] resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Orderhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderMetadata` | The RPC response. |

**Overrides** [ConsumerProcurementServiceClient.ModifyOrder(ModifyOrderRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ModifyOrder_Google_Cloud_Commerce_Consumer_Procurement_V1_ModifyOrderRequest_Google_Api_Gax_Grpc_CallSettings_)

### ModifyOrderAsync(ModifyOrderRequest, CallSettings)

    public override Task<Operation<Order, ModifyOrderMetadata>> ModifyOrderAsync(ModifyOrderRequest request, CallSettings callSettings = null)

Modifies an existing
\[Order\]\[google.cloud.commerce.consumer.procurement.v1.Order\] resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Orderhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderMetadata` | A Task containing the RPC response. |

**Overrides** [ConsumerProcurementServiceClient.ModifyOrderAsync(ModifyOrderRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_ModifyOrderAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_ModifyOrderRequest_Google_Api_Gax_Grpc_CallSettings_)

### PlaceOrder(PlaceOrderRequest, CallSettings)

    public override Operation<Order, PlaceOrderMetadata> PlaceOrder(PlaceOrderRequest request, CallSettings callSettings = null)

Creates a new \[Order\]\[google.cloud.commerce.consumer.procurement.v1.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.v1.OrderState.ORDER_STATE_ACTIVE\].
In case of failure, the order resource will be removed.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.PlaceOrderRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Orderhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.PlaceOrderMetadata` | The RPC response. |

**Overrides** [ConsumerProcurementServiceClient.PlaceOrder(PlaceOrderRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PlaceOrder_Google_Cloud_Commerce_Consumer_Procurement_V1_PlaceOrderRequest_Google_Api_Gax_Grpc_CallSettings_)

### PlaceOrderAsync(PlaceOrderRequest, CallSettings)

    public override Task<Operation<Order, PlaceOrderMetadata>> PlaceOrderAsync(PlaceOrderRequest request, CallSettings callSettings = null)

Creates a new \[Order\]\[google.cloud.commerce.consumer.procurement.v1.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.v1.OrderState.ORDER_STATE_ACTIVE\].
In case of failure, the order resource will be removed.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.PlaceOrderRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Orderhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.PlaceOrderMetadata` | A Task containing the RPC response. |

**Overrides** [ConsumerProcurementServiceClient.PlaceOrderAsync(PlaceOrderRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementServiceClient#Google_Cloud_Commerce_Consumer_Procurement_V1_ConsumerProcurementServiceClient_PlaceOrderAsync_Google_Cloud_Commerce_Consumer_Procurement_V1_PlaceOrderRequest_Google_Api_Gax_Grpc_CallSettings_)