rv.data.WebFillTokenAndCookies.Cookie
*/
class Cookie extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string name = 1;
*/
protected $name = '';
/**
* Generated from protobuf field string value = 2;
*/
protected $value = '';
/**
* Generated from protobuf field string domain = 3;
*/
protected $domain = '';
/**
* Generated from protobuf field uint64 expiry = 4;
*/
protected $expiry = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* @type string $value
* @type string $domain
* @type int|string $expiry
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProCore::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string name = 1;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 1;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field string value = 2;
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* Generated from protobuf field string value = 2;
* @param string $var
* @return $this
*/
public function setValue($var)
{
GPBUtil::checkString($var, True);
$this->value = $var;
return $this;
}
/**
* Generated from protobuf field string domain = 3;
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Generated from protobuf field string domain = 3;
* @param string $var
* @return $this
*/
public function setDomain($var)
{
GPBUtil::checkString($var, True);
$this->domain = $var;
return $this;
}
/**
* Generated from protobuf field uint64 expiry = 4;
* @return int|string
*/
public function getExpiry()
{
return $this->expiry;
}
/**
* Generated from protobuf field uint64 expiry = 4;
* @param int|string $var
* @return $this
*/
public function setExpiry($var)
{
GPBUtil::checkUint64($var);
$this->expiry = $var;
return $this;
}
}