Log.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.Log</code>
  10. */
  11. class Log extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>int64 time = 1;</code>
  15. */
  16. protected $time = 0;
  17. /**
  18. * Generated from protobuf field <code>repeated .cls.Log.Content contents = 2;</code>
  19. */
  20. private $contents;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type int|string $time
  28. * @type \Cls\Log\Content[]|\Google\Protobuf\Internal\RepeatedField $contents
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Cls::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Generated from protobuf field <code>int64 time = 1;</code>
  37. * @return int|string
  38. */
  39. public function getTime()
  40. {
  41. return $this->time;
  42. }
  43. /**
  44. * Generated from protobuf field <code>int64 time = 1;</code>
  45. * @param int|string $var
  46. * @return $this
  47. */
  48. public function setTime($var)
  49. {
  50. GPBUtil::checkInt64($var);
  51. $this->time = $var;
  52. return $this;
  53. }
  54. /**
  55. * Generated from protobuf field <code>repeated .cls.Log.Content contents = 2;</code>
  56. * @return \Google\Protobuf\Internal\RepeatedField
  57. */
  58. public function getContents()
  59. {
  60. return $this->contents;
  61. }
  62. /**
  63. * Generated from protobuf field <code>repeated .cls.Log.Content contents = 2;</code>
  64. * @param \Cls\Log\Content[]|\Google\Protobuf\Internal\RepeatedField $var
  65. * @return $this
  66. */
  67. public function setContents($var)
  68. {
  69. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Cls\Log\Content::class);
  70. $this->contents = $arr;
  71. return $this;
  72. }
  73. }