| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: cls.proto
- namespace Cls;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>cls.LogGroup</code>
- */
- class LogGroup extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>repeated .cls.Log logs = 1;</code>
- */
- private $logs;
- /**
- * Generated from protobuf field <code>optional string contextFlow = 2;</code>
- */
- protected $contextFlow = null;
- /**
- * Generated from protobuf field <code>optional string filename = 3;</code>
- */
- protected $filename = null;
- /**
- * Generated from protobuf field <code>optional string source = 4;</code>
- */
- protected $source = null;
- /**
- * Generated from protobuf field <code>repeated .cls.LogTag logTags = 5;</code>
- */
- private $logTags;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Cls\Log[]|\Google\Protobuf\Internal\RepeatedField $logs
- * @type string $contextFlow
- * @type string $filename
- * @type string $source
- * @type \Cls\LogTag[]|\Google\Protobuf\Internal\RepeatedField $logTags
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Cls::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>repeated .cls.Log logs = 1;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getLogs()
- {
- return $this->logs;
- }
- /**
- * Generated from protobuf field <code>repeated .cls.Log logs = 1;</code>
- * @param \Cls\Log[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setLogs($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Cls\Log::class);
- $this->logs = $arr;
- return $this;
- }
- /**
- * Generated from protobuf field <code>optional string contextFlow = 2;</code>
- * @return string
- */
- public function getContextFlow()
- {
- return isset($this->contextFlow) ? $this->contextFlow : '';
- }
- public function hasContextFlow()
- {
- return isset($this->contextFlow);
- }
- public function clearContextFlow()
- {
- unset($this->contextFlow);
- }
- /**
- * Generated from protobuf field <code>optional string contextFlow = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setContextFlow($var)
- {
- GPBUtil::checkString($var, True);
- $this->contextFlow = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>optional string filename = 3;</code>
- * @return string
- */
- public function getFilename()
- {
- return isset($this->filename) ? $this->filename : '';
- }
- public function hasFilename()
- {
- return isset($this->filename);
- }
- public function clearFilename()
- {
- unset($this->filename);
- }
- /**
- * Generated from protobuf field <code>optional string filename = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setFilename($var)
- {
- GPBUtil::checkString($var, True);
- $this->filename = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>optional string source = 4;</code>
- * @return string
- */
- public function getSource()
- {
- return isset($this->source) ? $this->source : '';
- }
- public function hasSource()
- {
- return isset($this->source);
- }
- public function clearSource()
- {
- unset($this->source);
- }
- /**
- * Generated from protobuf field <code>optional string source = 4;</code>
- * @param string $var
- * @return $this
- */
- public function setSource($var)
- {
- GPBUtil::checkString($var, True);
- $this->source = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>repeated .cls.LogTag logTags = 5;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getLogTags()
- {
- return $this->logTags;
- }
- /**
- * Generated from protobuf field <code>repeated .cls.LogTag logTags = 5;</code>
- * @param \Cls\LogTag[]|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setLogTags($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Cls\LogTag::class);
- $this->logTags = $arr;
- return $this;
- }
- }
|