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

2.2.0 (latest) 2.1.2 2.0.5 1.3.5 1.2.2 1.1.1 1.0.6 Reference documentation and code samples for the Google Cloud Service Management V1 Client class ListServicesResponse.

Response message for `ListServices` method.

Generated from protobuf message `google.api.servicemanagement.v1.ListServicesResponse`

## Namespace

Google \\ Cloud \\ ServiceManagement \\ 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-management/latest/V1.ManagedService>` The returned services will only have the name field set. |
| `↳ next_page_token` | `string` Token that can be passed to `ListServices` to resume a paginated query. |

### getServices

The returned services will only have the name field set.

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

### setServices

The returned services will only have the name field set.

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

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

### getNextPageToken

Token that can be passed to `ListServices` to resume a paginated query.

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

### setNextPageToken

Token that can be passed to `ListServices` to resume a paginated query.

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

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