LogGroup.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: cls.proto
  4. namespace Cls;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>cls.LogGroup</code>
  10. */
  11. class LogGroup extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>repeated .cls.Log logs = 1;</code>
  15. */
  16. private $logs;
  17. /**
  18. * Generated from protobuf field <code>optional string contextFlow = 2;</code>
  19. */
  20. protected $contextFlow = null;
  21. /**
  22. * Generated from protobuf field <code>optional string filename = 3;</code>
  23. */
  24. protected $filename = null;
  25. /**
  26. * Generated from protobuf field <code>optional string source = 4;</code>
  27. */
  28. protected $source = null;
  29. /**
  30. * Generated from protobuf field <code>repeated .cls.LogTag logTags = 5;</code>
  31. */
  32. private $logTags;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type \Cls\Log[]|\Google\Protobuf\Internal\RepeatedField $logs
  40. * @type string $contextFlow
  41. * @type string $filename
  42. * @type string $source
  43. * @type \Cls\LogTag[]|\Google\Protobuf\Internal\RepeatedField $logTags
  44. * }
  45. */
  46. public function __construct($data = NULL) {
  47. \GPBMetadata\Cls::initOnce();
  48. parent::__construct($data);
  49. }
  50. /**
  51. * Generated from protobuf field <code>repeated .cls.Log logs = 1;</code>
  52. * @return \Google\Protobuf\Internal\RepeatedField
  53. */
  54. public function getLogs()
  55. {
  56. return $this->logs;
  57. }
  58. /**
  59. * Generated from protobuf field <code>repeated .cls.Log logs = 1;</code>
  60. * @param \Cls\Log[]|\Google\Protobuf\Internal\RepeatedField $var
  61. * @return $this
  62. */
  63. public function setLogs($var)
  64. {
  65. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Cls\Log::class);
  66. $this->logs = $arr;
  67. return $this;
  68. }
  69. /**
  70. * Generated from protobuf field <code>optional string contextFlow = 2;</code>
  71. * @return string
  72. */
  73. public function getContextFlow()
  74. {
  75. return isset($this->contextFlow) ? $this->contextFlow : '';
  76. }
  77. public function hasContextFlow()
  78. {
  79. return isset($this->contextFlow);
  80. }
  81. public function clearContextFlow()
  82. {
  83. unset($this->contextFlow);
  84. }
  85. /**
  86. * Generated from protobuf field <code>optional string contextFlow = 2;</code>
  87. * @param string $var
  88. * @return $this
  89. */
  90. public function setContextFlow($var)
  91. {
  92. GPBUtil::checkString($var, True);
  93. $this->contextFlow = $var;
  94. return $this;
  95. }
  96. /**
  97. * Generated from protobuf field <code>optional string filename = 3;</code>
  98. * @return string
  99. */
  100. public function getFilename()
  101. {
  102. return isset($this->filename) ? $this->filename : '';
  103. }
  104. public function hasFilename()
  105. {
  106. return isset($this->filename);
  107. }
  108. public function clearFilename()
  109. {
  110. unset($this->filename);
  111. }
  112. /**
  113. * Generated from protobuf field <code>optional string filename = 3;</code>
  114. * @param string $var
  115. * @return $this
  116. */
  117. public function setFilename($var)
  118. {
  119. GPBUtil::checkString($var, True);
  120. $this->filename = $var;
  121. return $this;
  122. }
  123. /**
  124. * Generated from protobuf field <code>optional string source = 4;</code>
  125. * @return string
  126. */
  127. public function getSource()
  128. {
  129. return isset($this->source) ? $this->source : '';
  130. }
  131. public function hasSource()
  132. {
  133. return isset($this->source);
  134. }
  135. public function clearSource()
  136. {
  137. unset($this->source);
  138. }
  139. /**
  140. * Generated from protobuf field <code>optional string source = 4;</code>
  141. * @param string $var
  142. * @return $this
  143. */
  144. public function setSource($var)
  145. {
  146. GPBUtil::checkString($var, True);
  147. $this->source = $var;
  148. return $this;
  149. }
  150. /**
  151. * Generated from protobuf field <code>repeated .cls.LogTag logTags = 5;</code>
  152. * @return \Google\Protobuf\Internal\RepeatedField
  153. */
  154. public function getLogTags()
  155. {
  156. return $this->logTags;
  157. }
  158. /**
  159. * Generated from protobuf field <code>repeated .cls.LogTag logTags = 5;</code>
  160. * @param \Cls\LogTag[]|\Google\Protobuf\Internal\RepeatedField $var
  161. * @return $this
  162. */
  163. public function setLogTags($var)
  164. {
  165. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Cls\LogTag::class);
  166. $this->logTags = $arr;
  167. return $this;
  168. }
  169. }