# Google Cloud Recaptcha Enterprise V1 Client - Class UserInfo (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 UserInfo.

User information associated with a request protected by reCAPTCHA Enterprise.

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

## Namespace

Google \\ Cloud \\ RecaptchaEnterprise \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ create_account_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. Creation time for this account associated with this user. Leave blank for non logged-in actions, guest checkout, or when there is no account associated with the current user. |
| `↳ account_id` | `string` Optional. For logged-in requests or login/registration requests, the unique account identifier associated with this user. You can use the username if it is stable (meaning it is the same for every request associated with the same user), or any stable user ID of your choice. Leave blank for non logged-in actions or guest checkout. |
| `↳ user_ids` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.UserId>` Optional. Identifiers associated with this user or request. |

### getCreateAccountTime

Optional. Creation time for this account associated with this user. Leave
blank for non logged-in actions, guest checkout, or when there is no
account associated with the current user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateAccountTime

### clearCreateAccountTime

### setCreateAccountTime

Optional. Creation time for this account associated with this user. Leave
blank for non logged-in actions, guest checkout, or when there is no
account associated with the current user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getAccountId

Optional. For logged-in requests or login/registration requests, the unique
account identifier associated with this user. You can use the username if
it is stable (meaning it is the same for every request associated with the
same user), or any stable user ID of your choice. Leave blank for non
logged-in actions or guest checkout.

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

### setAccountId

Optional. For logged-in requests or login/registration requests, the unique
account identifier associated with this user. You can use the username if
it is stable (meaning it is the same for every request associated with the
same user), or any stable user ID of your choice. Leave blank for non
logged-in actions or guest checkout.

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

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

### getUserIds

Optional. Identifiers associated with this user or request.

| **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.UserId>` |   |

### setUserIds

Optional. Identifiers associated with this user or request.

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

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