# Google Cloud Commerce Consumer Procurement V1 Client - Class ListOrdersResponse (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 ListOrdersResponse.

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

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ orders` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Order>` The list of orders in this response. |
| `↳ next_page_token` | `string` The token for fetching the next page. |

### getOrders

The list of orders in this response.

| **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.Order>` |   |

### setOrders

The list of orders in this response.

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

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

### getNextPageToken

The token for fetching the next page.

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

### setNextPageToken

The token for fetching the next page.

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

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