Google Cloud Recaptcha Enterprise V1 Client - Class UserId (1.8.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
NameDescription
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
TypeDescription
string

hasEmail

setEmail

Optional. An email address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPhoneNumber

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

Returns
TypeDescription
string

hasPhoneNumber

setPhoneNumber

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getIdOneof

Returns
TypeDescription
string