# Google Cloud Service Directory V1 Client - Class ListServicesResponse (2.2.0)

2.2.0 (latest) 2.1.2 2.0.6 1.3.6 1.2.1 1.1.2 1.0.5 Reference documentation and code samples for the Google Cloud Service Directory V1 Client class ListServicesResponse.

The response message for
[RegistrationService.ListServices](https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Client.RegistrationServiceClient#_Google_Cloud_ServiceDirectory_V1_Client_RegistrationServiceClient__listServices__).

Generated from protobuf message `google.cloud.servicedirectory.v1.ListServicesResponse`

## Namespace

Google \\ Cloud \\ ServiceDirectory \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ services` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Service>` The list of services. |
| `↳ next_page_token` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |

### getServices

The list of services.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Service>` |   |

### setServices

The list of services.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Service>` |

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

### getNextPageToken

Token to retrieve the next page of results, or empty if there are no
more results in the list.

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

### setNextPageToken

Token to retrieve the next page of results, or empty if there are no
more results in the list.

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

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