| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apache/htdocs/app/vendor/google/cloud-recaptcha-enterprise/src/V1/ |
Upload File : |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
namespace Google\Cloud\RecaptchaEnterprise\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* User information associated with a request protected by reCAPTCHA Enterprise.
*
* Generated from protobuf message <code>google.cloud.recaptchaenterprise.v1.UserInfo</code>
*/
class UserInfo extends \Google\Protobuf\Internal\Message
{
/**
* 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.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
private $create_account_time = null;
/**
* 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.
*
* Generated from protobuf field <code>string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
private $account_id = '';
/**
* Optional. Identifiers associated with this user or request.
*
* Generated from protobuf field <code>repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
private $user_ids;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\Timestamp $create_account_time
* 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.
* @type string $account_id
* 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.
* @type array<\Google\Cloud\RecaptchaEnterprise\V1\UserId>|\Google\Protobuf\Internal\RepeatedField $user_ids
* Optional. Identifiers associated with this user or request.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Recaptchaenterprise\V1\Recaptchaenterprise::initOnce();
parent::__construct($data);
}
/**
* 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.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getCreateAccountTime()
{
return $this->create_account_time;
}
public function hasCreateAccountTime()
{
return isset($this->create_account_time);
}
public function clearCreateAccountTime()
{
unset($this->create_account_time);
}
/**
* 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.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp create_account_time = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setCreateAccountTime($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->create_account_time = $var;
return $this;
}
/**
* 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.
*
* Generated from protobuf field <code>string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return string
*/
public function getAccountId()
{
return $this->account_id;
}
/**
* 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.
*
* Generated from protobuf field <code>string account_id = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param string $var
* @return $this
*/
public function setAccountId($var)
{
GPBUtil::checkString($var, True);
$this->account_id = $var;
return $this;
}
/**
* Optional. Identifiers associated with this user or request.
*
* Generated from protobuf field <code>repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getUserIds()
{
return $this->user_ids;
}
/**
* Optional. Identifiers associated with this user or request.
*
* Generated from protobuf field <code>repeated .google.cloud.recaptchaenterprise.v1.UserId user_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param array<\Google\Cloud\RecaptchaEnterprise\V1\UserId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setUserIds($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\RecaptchaEnterprise\V1\UserId::class);
$this->user_ids = $arr;
return $this;
}
}