google.cloud.audit.AuthenticationInfo
*/
class AuthenticationInfo extends \Google\Protobuf\Internal\Message
{
/**
* The email address of the authenticated user making the request.
*
* Generated from protobuf field string principal_email = 1;
*/
private $principal_email = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $principal_email
* The email address of the authenticated user making the request.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Audit\AuditLog::initOnce();
parent::__construct($data);
}
/**
* The email address of the authenticated user making the request.
*
* Generated from protobuf field string principal_email = 1;
* @return string
*/
public function getPrincipalEmail()
{
return $this->principal_email;
}
/**
* The email address of the authenticated user making the request.
*
* Generated from protobuf field string principal_email = 1;
* @param string $var
* @return $this
*/
public function setPrincipalEmail($var)
{
GPBUtil::checkString($var, True);
$this->principal_email = $var;
return $this;
}
}