Google Cloud Recaptcha Enterprise V1 Client - Class User (1.3.2)

Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class User.

Details about a user's account involved in the transaction.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.TransactionData.User

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ account_id string

Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.

↳ creation_ms int|string

The epoch milliseconds of the user's account creation.

↳ email string

The email address of the user.

↳ email_verified bool

Whether the email has been verified to be accessible by the user (OTP or similar).

↳ phone_number string

The phone number of the user, with country code.

↳ phone_verified bool

Whether the phone number has been verified to be accessible by the user (OTP or similar).

getAccountId

Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.

Returns
TypeDescription
string

setAccountId

Unique account identifier for this user. If using account defender, this should match the hashed_account_id field. Otherwise, a unique and persistent identifier for this account.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreationMs

The epoch milliseconds of the user's account creation.

Returns
TypeDescription
int|string

setCreationMs

The epoch milliseconds of the user's account creation.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getEmail

The email address of the user.

Returns
TypeDescription
string

setEmail

The email address of the user.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEmailVerified

Whether the email has been verified to be accessible by the user (OTP or similar).

Returns
TypeDescription
bool

setEmailVerified

Whether the email has been verified to be accessible by the user (OTP or similar).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getPhoneNumber

The phone number of the user, with country code.

Returns
TypeDescription
string

setPhoneNumber

The phone number of the user, with country code.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPhoneVerified

Whether the phone number has been verified to be accessible by the user (OTP or similar).

Returns
TypeDescription
bool

setPhoneVerified

Whether the phone number has been verified to be accessible by the user (OTP or similar).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this