# Google Maps FleetEngine Delivery V1 Client - Class ListTasksResponse (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.1 0.2.0 0.1.8 Reference documentation and code samples for the Google Maps FleetEngine Delivery V1 Client class ListTasksResponse.

The `ListTasks` response that contains the set of Tasks that meet the filter
criteria in the `ListTasksRequest`.

Generated from protobuf message `maps.fleetengine.delivery.v1.ListTasksResponse`

## Namespace

Google \\ Maps \\ FleetEngine \\ Delivery \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tasks` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.Task>` The set of Tasks that meet the requested filtering criteria. When no filter is specified, the request returns all tasks. A successful response can also be empty. An empty response indicates that no Tasks were found meeting the requested filter criteria. |
| `↳ next_page_token` | `string` Pass this token in the `ListTasksRequest` to continue to list results. If all results have been returned, then this field is either an empty string, or it doesn't appear in the response. |
| `↳ total_size` | `int|string` The total number of Tasks that match the request criteria, across all pages. |

### getTasks

The set of Tasks that meet the requested filtering criteria. When no filter
is specified, the request returns all tasks. A successful response can also
be empty. An empty response indicates that no Tasks were found meeting the
requested filter criteria.

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

### setTasks

The set of Tasks that meet the requested filtering criteria. When no filter
is specified, the request returns all tasks. A successful response can also
be empty. An empty response indicates that no Tasks were found meeting the
requested filter criteria.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.Task>` |

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

### getNextPageToken

Pass this token in the `ListTasksRequest` to continue to list results.

If all results have been returned, then this field is either an empty
string, or it doesn't appear in the response.

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

### setNextPageToken

Pass this token in the `ListTasksRequest` to continue to list results.

If all results have been returned, then this field is either an empty
string, or it doesn't appear in the response.

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

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

### getTotalSize

The total number of Tasks that match the request criteria, across all
pages.

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

### setTotalSize

The total number of Tasks that match the request criteria, across all
pages.

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

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