# Google Cloud Recaptcha Enterprise V1 Client - Class AccountVerificationInfo (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.3 2.0.1 1.17.2 1.16.1 1.15.0 1.14.0 1.13.0 1.12.2 1.8.0 1.7.0 1.6.0 1.5.2 1.4.2 1.3.2 1.2.6 Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class AccountVerificationInfo.

Information about account verification, used for identity verification.

Generated from protobuf message `google.cloud.recaptchaenterprise.v1.AccountVerificationInfo`

## Namespace

Google \\ Cloud \\ RecaptchaEnterprise \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ endpoints` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.EndpointVerificationInfo>` Optional. Endpoints that can be used for identity verification. |
| `↳ language_code` | `string` Optional. Language code preference for the verification message, set as a IETF BCP 47 language code. |
| `↳ latest_verification_result` | `int` Output only. Result of the latest account verification challenge. |
| `↳ username` | `string` Username of the account that is being verified. Deprecated. Customers should now provide the `account_id` field in `event.user_info`. |

### getEndpoints

Optional. Endpoints that can be used for identity verification.

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

### setEndpoints

Optional. Endpoints that can be used for identity verification.

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

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

### getLanguageCode

Optional. Language code preference for the verification message, set as a
IETF BCP 47 language code.

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

### setLanguageCode

Optional. Language code preference for the verification message, set as a
IETF BCP 47 language code.

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

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

### getLatestVerificationResult

Output only. Result of the latest account verification challenge.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Result](https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.AccountVerificationInfo.Result). |

### setLatestVerificationResult

Output only. Result of the latest account verification challenge.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Result](https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.AccountVerificationInfo.Result). |

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

### getUsername

Username of the account that is being verified. Deprecated. Customers
should now provide the `account_id` field in `event.user_info`.

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

### setUsername

Username of the account that is being verified. Deprecated. Customers
should now provide the `account_id` field in `event.user_info`.

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

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