# Google Cloud Talent Solution V4 Client - Class ListTenantsResponse (2.3.0)

2.3.0 (latest) 2.2.1 2.1.3 2.0.2 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class ListTenantsResponse.

The List tenants response object.

Generated from protobuf message `google.cloud.talent.v4.ListTenantsResponse`

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tenants` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant>` Tenants for the current client. |
| `↳ next_page_token` | `string` A token to retrieve the next page of results. |
| `↳ metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.ResponseMetadata` Additional information for the API invocation, such as the request tracking id. |

### getTenants

Tenants for the current client.

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

### setTenants

Tenants for the current client.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant>` |

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

### getNextPageToken

A token to retrieve the next page of results.

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

### setNextPageToken

A token to retrieve the next page of results.

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

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

### getMetadata

Additional information for the API invocation, such as the request
tracking id.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.ResponseMetadata|null` |   |

### hasMetadata

### clearMetadata

### setMetadata

Additional information for the API invocation, such as the request
tracking id.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.ResponseMetadata` |

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