openstatus.status_page.v1.SubscribeToPageRequest
*/
class SubscribeToPageRequest extends \Google\Protobuf\Internal\Message
{
/**
* ID of the status page to subscribe to (required).
*
* Generated from protobuf field string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {
*/
protected $page_id = '';
/**
* Email address to subscribe (required).
*
* Generated from protobuf field string email = 2 [json_name = "email", (.gnostic.openapi.v3.property) = {
*/
protected $email = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $page_id
* ID of the status page to subscribe to (required).
* @type string $email
* Email address to subscribe (required).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce();
parent::__construct($data);
}
/**
* ID of the status page to subscribe to (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 subscribe to (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 subscribe (required).
*
* Generated from protobuf field string email = 2 [json_name = "email", (.gnostic.openapi.v3.property) = {
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Email address to subscribe (required).
*
* Generated from protobuf field string email = 2 [json_name = "email", (.gnostic.openapi.v3.property) = {
* @param string $var
* @return $this
*/
public function setEmail(string $var)
{
GPBUtil::checkString($var, true);
$this->email = $var;
return $this;
}
}