openstatus.notification.v1.DiscordData */ class DiscordData extends \Google\Protobuf\Internal\Message { /** * Discord webhook URL. * * Generated from protobuf field string webhook_url = 1 [json_name = "webhookUrl", (.gnostic.openapi.v3.property) = { */ protected $webhook_url = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $webhook_url * Discord webhook URL. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Providers::initOnce(); parent::__construct($data); } /** * Discord webhook URL. * * Generated from protobuf field string webhook_url = 1 [json_name = "webhookUrl", (.gnostic.openapi.v3.property) = { * @return string */ public function getWebhookUrl() { return $this->webhook_url; } /** * Discord webhook URL. * * Generated from protobuf field string webhook_url = 1 [json_name = "webhookUrl", (.gnostic.openapi.v3.property) = { * @param string $var * @return $this */ public function setWebhookUrl(string $var) { GPBUtil::checkString($var, true); $this->webhook_url = $var; return $this; } }