# Stackdriver Trace V1 Client - Class ListTracesResponse (2.0.0)

2.0.0 (latest) 2.0.0-RC1 1.9.5 1.8.10 1.7.0 1.6.5 1.5.3 1.4.11 Reference documentation and code samples for the Stackdriver Trace V1 Client class ListTracesResponse.

The response message for the `ListTraces` method.

Generated from protobuf message `google.devtools.cloudtrace.v1.ListTracesResponse`

## Namespace

Google \\ Cloud \\ Trace \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ traces` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-trace/latest/V1.Trace>` List of trace records as specified by the view parameter. |
| `↳ next_page_token` | `string` If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces. |

### getTraces

List of trace records as specified by the view parameter.

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

### setTraces

List of trace records as specified by the view parameter.

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

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

### getNextPageToken

If defined, indicates that there are more traces that match the request
and that this value should be passed to the next request to continue
retrieving additional traces.

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

### setNextPageToken

If defined, indicates that there are more traces that match the request
and that this value should be passed to the next request to continue
retrieving additional traces.

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

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