# Google Cloud Commerce Consumer Procurement V1 Client - Class PlaceOrderRequest (1.3.3)

1.3.3 (latest) 1.3.2 1.2.2 1.1.3 1.0.0 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class PlaceOrderRequest.

Request message for
[ConsumerProcurementService.PlaceOrder](https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Client.ConsumerProcurementServiceClient#_Google_Cloud_Commerce_Consumer_Procurement_V1_Client_ConsumerProcurementServiceClient__placeOrder__).

Generated from protobuf message `google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest`

## Namespace

Google \\ Cloud \\ Commerce \\ Consumer \\ Procurement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource name of the parent resource. This field has the form `billingAccounts/{billing-account-id}`. |
| `↳ display_name` | `string` Required. The user-specified name of the order being placed. |
| `↳ line_item_info` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.LineItemInfo>` Optional. Places order for offer. Required when an offer-based order is being placed. |
| `↳ request_id` | `string` Optional. A unique identifier for this request. The server will ignore subsequent requests that provide a duplicate request ID for at least 24 hours after the first request. The request ID must be a valid [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). |

### getParent

Required. The resource name of the parent resource.

This field has the form `billingAccounts/{billing-account-id}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. The resource name of the parent resource.

This field has the form `billingAccounts/{billing-account-id}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

Required. The user-specified name of the order being placed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

Required. The user-specified name of the order being placed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLineItemInfo

Optional. Places order for offer. Required when an offer-based order is
being placed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.LineItemInfo>` |   |

### setLineItemInfo

Optional. Places order for offer. Required when an offer-based order is
being placed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.LineItemInfo>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestId

Optional. A unique identifier for this request.

The server will ignore subsequent requests that provide a duplicate request
ID for at least 24 hours after the first request.
The request ID must be a valid
[UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRequestId

Optional. A unique identifier for this request.

The server will ignore subsequent requests that provide a duplicate request
ID for at least 24 hours after the first request.
The request ID must be a valid
[UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |