Google Cloud Recaptcha Enterprise V1 Client - Class UserId (1.16.0)

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

An identifier associated with a user.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.UserId

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ email string

Optional. An email address.

↳ phone_number string

Optional. A phone number. Should use the E.164 format.

↳ username string

Optional. A unique username, if different from all the other identifiers and account_id that are provided. Can be a unique login handle or display name for a user.

getEmail

Optional. An email address.

Returns
Type Description
string

hasEmail

setEmail

Optional. An email address.

Parameter
Name Description
var string
Returns
Type Description
$this

getPhoneNumber

Optional. A phone number. Should use the E.164 format.

Returns
Type Description
string

hasPhoneNumber

setPhoneNumber

Optional. A phone number. Should use the E.164 format.

Parameter
Name Description
var string
Returns
Type Description
$this

getUsername

Optional. A unique username, if different from all the other identifiers and account_id that are provided. Can be a unique login handle or display name for a user.

Returns
Type Description
string

hasUsername

setUsername

Optional. A unique username, if different from all the other identifiers and account_id that are provided. Can be a unique login handle or display name for a user.

Parameter
Name Description
var string
Returns
Type Description
$this

getIdOneof

Returns
Type Description
string