openstatus.status_page.v1.UnsubscribeFromPageRequest
*/
class UnsubscribeFromPageRequest extends \Google\Protobuf\Internal\Message
{
/**
* ID of the status page to unsubscribe from (required).
*
* Generated from protobuf field string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {
*/
protected $page_id = '';
protected $identifier;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $page_id
* ID of the status page to unsubscribe from (required).
* @type string $email
* Email address to unsubscribe.
* @type string $id
* Subscriber ID.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce();
parent::__construct($data);
}
/**
* ID of the status page to unsubscribe from (required).
*
* Generated from protobuf field string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {
* @return string
*/
public function getPageId()
{
return $this->page_id;
}
/**
* ID of the status page to unsubscribe from (required).
*
* Generated from protobuf field string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {
* @param string $var
* @return $this
*/
public function setPageId(string $var)
{
GPBUtil::checkString($var, true);
$this->page_id = $var;
return $this;
}
/**
* Email address to unsubscribe.
*
* Generated from protobuf field string email = 2 [json_name = "email"];
* @return string
*/
public function getEmail()
{
return $this->readOneof(2);
}
public function hasEmail()
{
return $this->hasOneof(2);
}
/**
* Email address to unsubscribe.
*
* Generated from protobuf field string email = 2 [json_name = "email"];
* @param string $var
* @return $this
*/
public function setEmail(string $var)
{
GPBUtil::checkString($var, true);
$this->writeOneof(2, $var);
return $this;
}
/**
* Subscriber ID.
*
* Generated from protobuf field string id = 3 [json_name = "id"];
* @return string
*/
public function getId()
{
return $this->readOneof(3);
}
public function hasId()
{
return $this->hasOneof(3);
}
/**
* Subscriber ID.
*
* Generated from protobuf field string id = 3 [json_name = "id"];
* @param string $var
* @return $this
*/
public function setId(string $var)
{
GPBUtil::checkString($var, true);
$this->writeOneof(3, $var);
return $this;
}
/**
* @return string
*/
public function getIdentifier()
{
return $this->whichOneof("identifier");
}
}