openstatus.notification.v1.NotificationSummary */ class NotificationSummary extends \Google\Protobuf\Internal\Message { /** * Unique identifier for the notification. * * Generated from protobuf field string id = 1 [json_name = "id"]; */ protected $id = ''; /** * Display name for the notification channel. * * Generated from protobuf field string name = 2 [json_name = "name"]; */ protected $name = ''; /** * Provider type. * * Generated from protobuf field .openstatus.notification.v1.NotificationProvider provider = 3 [json_name = "provider"]; */ protected $provider = 0; /** * Number of monitors associated with this notification. * * Generated from protobuf field int32 monitor_count = 4 [json_name = "monitorCount"]; */ protected $monitor_count = 0; /** * Timestamp when the notification was created (RFC 3339). * * Generated from protobuf field string created_at = 5 [json_name = "createdAt"]; */ protected $created_at = ''; /** * Timestamp when the notification was last updated (RFC 3339). * * Generated from protobuf field string updated_at = 6 [json_name = "updatedAt"]; */ protected $updated_at = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Unique identifier for the notification. * @type string $name * Display name for the notification channel. * @type int $provider * Provider type. * @type int $monitor_count * Number of monitors associated with this notification. * @type string $created_at * Timestamp when the notification was created (RFC 3339). * @type string $updated_at * Timestamp when the notification was last updated (RFC 3339). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Notification::initOnce(); parent::__construct($data); } /** * Unique identifier for the notification. * * Generated from protobuf field string id = 1 [json_name = "id"]; * @return string */ public function getId() { return $this->id; } /** * Unique identifier for the notification. * * Generated from protobuf field string id = 1 [json_name = "id"]; * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var; return $this; } /** * Display name for the notification channel. * * Generated from protobuf field string name = 2 [json_name = "name"]; * @return string */ public function getName() { return $this->name; } /** * Display name for the notification channel. * * Generated from protobuf field string name = 2 [json_name = "name"]; * @param string $var * @return $this */ public function setName(string $var) { GPBUtil::checkString($var, true); $this->name = $var; return $this; } /** * Provider type. * * Generated from protobuf field .openstatus.notification.v1.NotificationProvider provider = 3 [json_name = "provider"]; * @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 = 3 [json_name = "provider"]; * @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; } /** * Number of monitors associated with this notification. * * Generated from protobuf field int32 monitor_count = 4 [json_name = "monitorCount"]; * @return int */ public function getMonitorCount() { return $this->monitor_count; } /** * Number of monitors associated with this notification. * * Generated from protobuf field int32 monitor_count = 4 [json_name = "monitorCount"]; * @param int $var * @return $this */ public function setMonitorCount(int $var) { GPBUtil::checkInt32($var); $this->monitor_count = $var; return $this; } /** * Timestamp when the notification was created (RFC 3339). * * Generated from protobuf field string created_at = 5 [json_name = "createdAt"]; * @return string */ public function getCreatedAt() { return $this->created_at; } /** * Timestamp when the notification was created (RFC 3339). * * Generated from protobuf field string created_at = 5 [json_name = "createdAt"]; * @param string $var * @return $this */ public function setCreatedAt(string $var) { GPBUtil::checkString($var, true); $this->created_at = $var; return $this; } /** * Timestamp when the notification was last updated (RFC 3339). * * Generated from protobuf field string updated_at = 6 [json_name = "updatedAt"]; * @return string */ public function getUpdatedAt() { return $this->updated_at; } /** * Timestamp when the notification was last updated (RFC 3339). * * Generated from protobuf field string updated_at = 6 [json_name = "updatedAt"]; * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var; return $this; } }