/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Monitoring/IssueLog.php
283 строки
6 KB
Alexei Shabalin
updated protos
17 фев 2023, 13:31
17 фев 2023, 13:31
ae6a264
Код
Авторство
О чём код?
<?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; } }