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.
2.5 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;
/** * WebhookHeader represents a custom header for webhook requests. * * Generated from protobuf message <code>openstatus.notification.v1.WebhookHeader</code> */class WebhookHeader extends \Google\Protobuf\Internal\Message{ /** * Header name. * * Generated from protobuf field <code>string key = 1 [json_name = "key", (.buf.validate.field) = {</code> */ protected $key = ''; /** * Header value. * * Generated from protobuf field <code>string value = 2 [json_name = "value"];</code> */ protected $value = '';
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $key * Header name. * @type string $value * Header value. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Providers::initOnce(); parent::__construct($data); }
/** * Header name. * * Generated from protobuf field <code>string key = 1 [json_name = "key", (.buf.validate.field) = {</code> * @return string */ public function getKey() { return $this->key; }
/** * Header name. * * Generated from protobuf field <code>string key = 1 [json_name = "key", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setKey(string $var) { GPBUtil::checkString($var, true); $this->key = $var;
return $this; }
/** * Header value. * * Generated from protobuf field <code>string value = 2 [json_name = "value"];</code> * @return string */ public function getValue() { return $this->value; }
/** * Header value. * * Generated from protobuf field <code>string value = 2 [json_name = "value"];</code> * @param string $var * @return $this */ public function setValue(string $var) { GPBUtil::checkString($var, true); $this->value = $var;
return $this; }
}