openstatus.status_page.v1.GetStatusPageContentRequest */ class GetStatusPageContentRequest extends \Google\Protobuf\Internal\Message { protected $identifier; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * ID of the status page. * @type string $slug * Slug of the status page. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); } /** * ID of the status page. * * Generated from protobuf field string id = 1 [json_name = "id"]; * @return string */ public function getId() { return $this->readOneof(1); } public function hasId() { return $this->hasOneof(1); } /** * ID of the status page. * * Generated from protobuf field string id = 1 [json_name = "id"]; * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->writeOneof(1, $var); return $this; } /** * Slug of the status page. * * Generated from protobuf field string slug = 2 [json_name = "slug"]; * @return string */ public function getSlug() { return $this->readOneof(2); } public function hasSlug() { return $this->hasOneof(2); } /** * Slug of the status page. * * Generated from protobuf field string slug = 2 [json_name = "slug"]; * @param string $var * @return $this */ public function setSlug(string $var) { GPBUtil::checkString($var, true); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getIdentifier() { return $this->whichOneof("identifier"); } }