openstatus.notification.v1.SendTestNotificationRequest
*/
class SendTestNotificationRequest extends \Google\Protobuf\Internal\Message
{
/**
* Provider type.
*
* Generated from protobuf field .openstatus.notification.v1.NotificationProvider provider = 1 [json_name = "provider", (.buf.validate.field) = {
*/
protected $provider = 0;
/**
* Provider-specific configuration.
*
* Generated from protobuf field .openstatus.notification.v1.NotificationData data = 2 [json_name = "data", (.buf.validate.field) = {
*/
protected $data = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $provider
* Provider type.
* @type \Openstatus\Notification\V1\NotificationData $data
* Provider-specific configuration.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\Notification\V1\Service::initOnce();
parent::__construct($data);
}
/**
* Provider type.
*
* Generated from protobuf field .openstatus.notification.v1.NotificationProvider provider = 1 [json_name = "provider", (.buf.validate.field) = {
* @return int one of the values in {@see \Openstatus\Notification\V1\NotificationProvider}
*/
public function getProvider()
{
return $this->provider;
}
/**
* Provider type.
*
* Generated from protobuf field .openstatus.notification.v1.NotificationProvider provider = 1 [json_name = "provider", (.buf.validate.field) = {
* @param int $var one of the values in {@see \Openstatus\Notification\V1\NotificationProvider}
* @return $this
*/
public function setProvider(int $var)
{
GPBUtil::checkEnum($var, \Openstatus\Notification\V1\NotificationProvider::class);
$this->provider = $var;
return $this;
}
/**
* Provider-specific configuration.
*
* Generated from protobuf field .openstatus.notification.v1.NotificationData data = 2 [json_name = "data", (.buf.validate.field) = {
* @return \Openstatus\Notification\V1\NotificationData|null
*/
public function getData()
{
return $this->data;
}
public function hasData()
{
return isset($this->data);
}
public function clearData()
{
unset($this->data);
}
/**
* Provider-specific configuration.
*
* Generated from protobuf field .openstatus.notification.v1.NotificationData data = 2 [json_name = "data", (.buf.validate.field) = {
* @param \Openstatus\Notification\V1\NotificationData $var
* @return $this
*/
public function setData(\Openstatus\Notification\V1\NotificationData|null $var)
{
$this->data = $var;
return $this;
}
}