DataTime.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: api/Common.proto
  5. namespace Proto\Api;
  6. use Google\Protobuf\Internal\GPBType;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\GPBUtil;
  9. /**
  10. * 数据的创建时间、更新时间、删除时间
  11. *
  12. * Generated from protobuf message <code>proto.api.DataTime</code>
  13. */
  14. class DataTime extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * 创建时间 时间戳 秒
  18. *
  19. * Generated from protobuf field <code>int32 ctime = 1;</code>
  20. */
  21. protected $ctime = 0;
  22. /**
  23. * 更新时间 时间戳 秒
  24. *
  25. * Generated from protobuf field <code>int32 utime = 2;</code>
  26. */
  27. protected $utime = 0;
  28. /**
  29. * 删除时间 时间戳 秒
  30. *
  31. * Generated from protobuf field <code>int32 dtime = 3;</code>
  32. */
  33. protected $dtime = 0;
  34. /**
  35. * Constructor.
  36. *
  37. * @param array $data {
  38. * Optional. Data for populating the Message object.
  39. *
  40. * @type int $ctime
  41. * 创建时间 时间戳 秒
  42. * @type int $utime
  43. * 更新时间 时间戳 秒
  44. * @type int $dtime
  45. * 删除时间 时间戳 秒
  46. * }
  47. */
  48. public function __construct($data = NULL) {
  49. \GPBMetadata\Api\Common::initOnce();
  50. parent::__construct($data);
  51. }
  52. /**
  53. * 创建时间 时间戳 秒
  54. *
  55. * Generated from protobuf field <code>int32 ctime = 1;</code>
  56. * @return int
  57. */
  58. public function getCtime()
  59. {
  60. return $this->ctime;
  61. }
  62. /**
  63. * 创建时间 时间戳 秒
  64. *
  65. * Generated from protobuf field <code>int32 ctime = 1;</code>
  66. * @param int $var
  67. * @return $this
  68. */
  69. public function setCtime($var)
  70. {
  71. GPBUtil::checkInt32($var);
  72. $this->ctime = $var;
  73. return $this;
  74. }
  75. /**
  76. * 更新时间 时间戳 秒
  77. *
  78. * Generated from protobuf field <code>int32 utime = 2;</code>
  79. * @return int
  80. */
  81. public function getUtime()
  82. {
  83. return $this->utime;
  84. }
  85. /**
  86. * 更新时间 时间戳 秒
  87. *
  88. * Generated from protobuf field <code>int32 utime = 2;</code>
  89. * @param int $var
  90. * @return $this
  91. */
  92. public function setUtime($var)
  93. {
  94. GPBUtil::checkInt32($var);
  95. $this->utime = $var;
  96. return $this;
  97. }
  98. /**
  99. * 删除时间 时间戳 秒
  100. *
  101. * Generated from protobuf field <code>int32 dtime = 3;</code>
  102. * @return int
  103. */
  104. public function getDtime()
  105. {
  106. return $this->dtime;
  107. }
  108. /**
  109. * 删除时间 时间戳 秒
  110. *
  111. * Generated from protobuf field <code>int32 dtime = 3;</code>
  112. * @param int $var
  113. * @return $this
  114. */
  115. public function setDtime($var)
  116. {
  117. GPBUtil::checkInt32($var);
  118. $this->dtime = $var;
  119. return $this;
  120. }
  121. }