openstatus.notification.v1.EmailData
*/
class EmailData extends \Google\Protobuf\Internal\Message
{
/**
* Email address to send notifications to.
*
* Generated from protobuf field string email = 1 [json_name = "email", (.gnostic.openapi.v3.property) = {
*/
protected $email = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $email
* Email address to send notifications to.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\Notification\V1\Providers::initOnce();
parent::__construct($data);
}
/**
* Email address to send notifications to.
*
* Generated from protobuf field string email = 1 [json_name = "email", (.gnostic.openapi.v3.property) = {
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Email address to send notifications to.
*
* Generated from protobuf field string email = 1 [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;
}
}