# Google API Common Protos Client - Class ListLocationsResponse (4.14.0)

4.14.0 (latest) 4.13.0 4.12.5 4.11.0 4.10.0 4.9.0 4.8.3 Reference documentation and code samples for the Google API Common Protos Client class ListLocationsResponse.

The response message for Locations.ListLocations.

Generated from protobuf message `google.cloud.location.ListLocationsResponse`

## Namespace

Google \\ Cloud \\ Location

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ locations` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Location.Location>` A list of locations that matches the specified filter in the request. |
| `↳ next_page_token` | `string` The standard List next-page token. |

### getLocations

A list of locations that matches the specified filter in the request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Location.Location>` |   |

### setLocations

A list of locations that matches the specified filter in the request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Cloud.Location.Location>` |

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

### getNextPageToken

The standard List next-page token.

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

### setNextPageToken

The standard List next-page token.

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

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