# Google Cloud Profiler V2 Client - Class ListProfilesResponse (2.1.2)

2.1.2 (latest) 2.1.1 2.0.4 1.4.3 1.3.0 1.2.4 1.1.1 1.0.3 Reference documentation and code samples for the Google Cloud Profiler V2 Client class ListProfilesResponse.

ListProfileResponse contains the list of collected profiles for deployments
in projects which the user has permissions to view.

Generated from protobuf message `google.devtools.cloudprofiler.v2.ListProfilesResponse`

## Namespace

Google \\ Cloud \\ Profiler \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ profiles` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-profiler/latest/V2.Profile>` List of profiles fetched. |
| `↳ next_page_token` | `string` Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch. |
| `↳ skipped_profiles` | `int` Number of profiles that were skipped in the current page since they were not able to be fetched successfully. This should typically be zero. A non-zero value may indicate a transient failure, in which case if the number is too high for your use case, the call may be retried. |

### getProfiles

List of profiles fetched.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-profiler/latest/V2.Profile>` |   |

### setProfiles

List of profiles fetched.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-profiler/latest/V2.Profile>` |

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

### getNextPageToken

Token to receive the next page of results.

This field maybe empty if there are no more profiles to fetch.

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

### setNextPageToken

Token to receive the next page of results.

This field maybe empty if there are no more profiles to fetch.

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

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

### getSkippedProfiles

Number of profiles that were skipped in the current page since they were
not able to be fetched successfully. This should typically be zero. A
non-zero value may indicate a transient failure, in which case if the
number is too high for your use case, the call may be retried.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setSkippedProfiles

Number of profiles that were skipped in the current page since they were
not able to be fetched successfully. This should typically be zero. A
non-zero value may indicate a transient failure, in which case if the
number is too high for your use case, the call may be retried.

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

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