Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
3.0 kB · 102 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/notification/v1/providers.proto
namespace Openstatus\Notification\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * WebhookData contains configuration for custom webhook notifications. * * Generated from protobuf message <code>openstatus.notification.v1.WebhookData</code> */class WebhookData extends \Google\Protobuf\Internal\Message{ /** * Webhook endpoint URL. * * Generated from protobuf field <code>string endpoint = 1 [json_name = "endpoint", (.gnostic.openapi.v3.property) = {</code> */ protected $endpoint = ''; /** * Optional custom headers. * * Generated from protobuf field <code>repeated .openstatus.notification.v1.WebhookHeader headers = 2 [json_name = "headers"];</code> */ private $headers;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $endpoint * Webhook endpoint URL. * @type \Openstatus\Notification\V1\WebhookHeader[] $headers * Optional custom headers. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Providers::initOnce(); parent::__construct($data); }
/** * Webhook endpoint URL. * * Generated from protobuf field <code>string endpoint = 1 [json_name = "endpoint", (.gnostic.openapi.v3.property) = {</code> * @return string */ public function getEndpoint() { return $this->endpoint; }
/** * Webhook endpoint URL. * * Generated from protobuf field <code>string endpoint = 1 [json_name = "endpoint", (.gnostic.openapi.v3.property) = {</code> * @param string $var * @return $this */ public function setEndpoint(string $var) { GPBUtil::checkString($var, true); $this->endpoint = $var;
return $this; }
/** * Optional custom headers. * * Generated from protobuf field <code>repeated .openstatus.notification.v1.WebhookHeader headers = 2 [json_name = "headers"];</code> * @return RepeatedField<\Openstatus\Notification\V1\WebhookHeader> */ public function getHeaders() { return $this->headers; }
/** * Optional custom headers. * * Generated from protobuf field <code>repeated .openstatus.notification.v1.WebhookHeader headers = 2 [json_name = "headers"];</code> * @param \Openstatus\Notification\V1\WebhookHeader[] $var * @return $this */ public function setHeaders(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Notification\V1\WebhookHeader::class); $this->headers = $arr;
return $this; }
}