123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_monitoring.proto
- namespace Ydb\Monitoring;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Monitoring.IssueLog</code>
- */
- class IssueLog extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>string id = 1;</code>
- */
- protected $id = '';
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status status = 2;</code>
- */
- protected $status = 0;
- /**
- * Generated from protobuf field <code>string message = 3;</code>
- */
- protected $message = '';
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.Location location = 4;</code>
- */
- protected $location = null;
- /**
- * Generated from protobuf field <code>repeated string reason = 5;</code>
- */
- private $reason;
- /**
- * Generated from protobuf field <code>string type = 6;</code>
- */
- protected $type = '';
- /**
- * Generated from protobuf field <code>uint32 level = 7;</code>
- */
- protected $level = 0;
- /**
- * Generated from protobuf field <code>uint32 listed = 8;</code>
- */
- protected $listed = 0;
- /**
- * Generated from protobuf field <code>uint32 count = 9;</code>
- */
- protected $count = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * @type int $status
- * @type string $message
- * @type \Ydb\Monitoring\Location $location
- * @type array<string>|\Google\Protobuf\Internal\RepeatedField $reason
- * @type string $type
- * @type int $level
- * @type int $listed
- * @type int $count
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbMonitoring::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>string id = 1;</code>
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Generated from protobuf field <code>string id = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status status = 2;</code>
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status status = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkEnum($var, \Ydb\Monitoring\StatusFlag\Status::class);
- $this->status = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string message = 3;</code>
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
- /**
- * Generated from protobuf field <code>string message = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.Location location = 4;</code>
- * @return \Ydb\Monitoring\Location|null
- */
- public function getLocation()
- {
- return $this->location;
- }
- public function hasLocation()
- {
- return isset($this->location);
- }
- public function clearLocation()
- {
- unset($this->location);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.Location location = 4;</code>
- * @param \Ydb\Monitoring\Location $var
- * @return $this
- */
- public function setLocation($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Monitoring\Location::class);
- $this->location = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>repeated string reason = 5;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getReason()
- {
- return $this->reason;
- }
- /**
- * Generated from protobuf field <code>repeated string reason = 5;</code>
- * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setReason($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->reason = $arr;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string type = 6;</code>
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * Generated from protobuf field <code>string type = 6;</code>
- * @param string $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkString($var, True);
- $this->type = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint32 level = 7;</code>
- * @return int
- */
- public function getLevel()
- {
- return $this->level;
- }
- /**
- * Generated from protobuf field <code>uint32 level = 7;</code>
- * @param int $var
- * @return $this
- */
- public function setLevel($var)
- {
- GPBUtil::checkUint32($var);
- $this->level = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint32 listed = 8;</code>
- * @return int
- */
- public function getListed()
- {
- return $this->listed;
- }
- /**
- * Generated from protobuf field <code>uint32 listed = 8;</code>
- * @param int $var
- * @return $this
- */
- public function setListed($var)
- {
- GPBUtil::checkUint32($var);
- $this->listed = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint32 count = 9;</code>
- * @return int
- */
- public function getCount()
- {
- return $this->count;
- }
- /**
- * Generated from protobuf field <code>uint32 count = 9;</code>
- * @param int $var
- * @return $this
- */
- public function setCount($var)
- {
- GPBUtil::checkUint32($var);
- $this->count = $var;
- return $this;
- }
- }
|