# Google Cloud Binary Authorization V1 Client - Class ListAttestorsResponse (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.8.7 0.7.0 0.6.1 0.5.13 Reference documentation and code samples for the Google Cloud Binary Authorization V1 Client class ListAttestorsResponse.

Response message for BinauthzManagementService.ListAttestors.

Generated from protobuf message `google.cloud.binaryauthorization.v1.ListAttestorsResponse`

## Namespace

Google \\ Cloud \\ BinaryAuthorization \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ attestors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor>` The list of [attestors](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor). |
| `↳ next_page_token` | `string` A token to retrieve the next page of results. Pass this value in the [ListAttestorsRequest.page_token](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.ListAttestorsRequest#_Google_Cloud_BinaryAuthorization_V1_ListAttestorsRequest__getPageToken__) field in the subsequent call to the `ListAttestors` method to retrieve the next page of results. |

### getAttestors

The list of [attestors](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor).

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

### setAttestors

The list of [attestors](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.Attestor).

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

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

### getNextPageToken

A token to retrieve the next page of results. Pass this value in the
[ListAttestorsRequest.page_token](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.ListAttestorsRequest#_Google_Cloud_BinaryAuthorization_V1_ListAttestorsRequest__getPageToken__) field in the subsequent call to the
`ListAttestors` method to retrieve the next page of results.

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

### setNextPageToken

A token to retrieve the next page of results. Pass this value in the
[ListAttestorsRequest.page_token](https://docs.cloud.google.com/php/docs/reference/cloud-binary-authorization/latest/V1.ListAttestorsRequest#_Google_Cloud_BinaryAuthorization_V1_ListAttestorsRequest__getPageToken__) field in the subsequent call to the
`ListAttestors` method to retrieve the next page of results.

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

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