openstatus.notification.v1.OpsgenieData */ class OpsgenieData extends \Google\Protobuf\Internal\Message { /** * Opsgenie API key. * * Generated from protobuf field string api_key = 1 [json_name = "apiKey", (.buf.validate.field) = { */ protected $api_key = ''; /** * Opsgenie region. * * Generated from protobuf field .openstatus.notification.v1.OpsgenieRegion region = 2 [json_name = "region", (.buf.validate.field) = { */ protected $region = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $api_key * Opsgenie API key. * @type int $region * Opsgenie region. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Providers::initOnce(); parent::__construct($data); } /** * Opsgenie API key. * * Generated from protobuf field string api_key = 1 [json_name = "apiKey", (.buf.validate.field) = { * @return string */ public function getApiKey() { return $this->api_key; } /** * Opsgenie API key. * * Generated from protobuf field string api_key = 1 [json_name = "apiKey", (.buf.validate.field) = { * @param string $var * @return $this */ public function setApiKey(string $var) { GPBUtil::checkString($var, true); $this->api_key = $var; return $this; } /** * Opsgenie region. * * Generated from protobuf field .openstatus.notification.v1.OpsgenieRegion region = 2 [json_name = "region", (.buf.validate.field) = { * @return int one of the values in {@see \Openstatus\Notification\V1\OpsgenieRegion} */ public function getRegion() { return $this->region; } /** * Opsgenie region. * * Generated from protobuf field .openstatus.notification.v1.OpsgenieRegion region = 2 [json_name = "region", (.buf.validate.field) = { * @param int $var one of the values in {@see \Openstatus\Notification\V1\OpsgenieRegion} * @return $this */ public function setRegion(int $var) { GPBUtil::checkEnum($var, \Openstatus\Notification\V1\OpsgenieRegion::class); $this->region = $var; return $this; } }