openstatus.monitor.v1.Headers */ class Headers extends \Google\Protobuf\Internal\Message { /** * Header name. * * Generated from protobuf field string key = 1 [json_name = "key", (.gnostic.openapi.v3.property) = { */ protected $key = ''; /** * Header value. * * Generated from protobuf field string value = 2 [json_name = "value", (.gnostic.openapi.v3.property) = { */ 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\Monitor\V1\HttpMonitor::initOnce(); parent::__construct($data); } /** * Header name. * * Generated from protobuf field string key = 1 [json_name = "key", (.gnostic.openapi.v3.property) = { * @return string */ public function getKey() { return $this->key; } /** * Header name. * * Generated from protobuf field string key = 1 [json_name = "key", (.gnostic.openapi.v3.property) = { * @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 string value = 2 [json_name = "value", (.gnostic.openapi.v3.property) = { * @return string */ public function getValue() { return $this->value; } /** * Header value. * * Generated from protobuf field string value = 2 [json_name = "value", (.gnostic.openapi.v3.property) = { * @param string $var * @return $this */ public function setValue(string $var) { GPBUtil::checkString($var, true); $this->value = $var; return $this; } }