ValueSinceUnixEpochModeSettings.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_table.proto
  4. namespace Ydb\Table;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Same as DateTypeColumnModeSettings (above), but useful when type of the
  10. * value stored in <column_name> is not a date type.
  11. *
  12. * Generated from protobuf message <code>Ydb.Table.ValueSinceUnixEpochModeSettings</code>
  13. */
  14. class ValueSinceUnixEpochModeSettings extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * The column type must be one of:
  18. * - Uint32
  19. * - Uint64
  20. * - DyNumber
  21. *
  22. * Generated from protobuf field <code>string column_name = 1;</code>
  23. */
  24. protected $column_name = '';
  25. /**
  26. * Interpretation of the value stored in <column_name>
  27. *
  28. * Generated from protobuf field <code>.Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;</code>
  29. */
  30. protected $column_unit = 0;
  31. /**
  32. * This option is always interpreted as seconds regardless of the
  33. * <column_unit> value.
  34. *
  35. * Generated from protobuf field <code>uint32 expire_after_seconds = 3;</code>
  36. */
  37. protected $expire_after_seconds = 0;
  38. /**
  39. * Constructor.
  40. *
  41. * @param array $data {
  42. * Optional. Data for populating the Message object.
  43. *
  44. * @type string $column_name
  45. * The column type must be one of:
  46. * - Uint32
  47. * - Uint64
  48. * - DyNumber
  49. * @type int $column_unit
  50. * Interpretation of the value stored in <column_name>
  51. * @type int $expire_after_seconds
  52. * This option is always interpreted as seconds regardless of the
  53. * <column_unit> value.
  54. * }
  55. */
  56. public function __construct($data = NULL) {
  57. \GPBMetadata\Protos\YdbTable::initOnce();
  58. parent::__construct($data);
  59. }
  60. /**
  61. * The column type must be one of:
  62. * - Uint32
  63. * - Uint64
  64. * - DyNumber
  65. *
  66. * Generated from protobuf field <code>string column_name = 1;</code>
  67. * @return string
  68. */
  69. public function getColumnName()
  70. {
  71. return $this->column_name;
  72. }
  73. /**
  74. * The column type must be one of:
  75. * - Uint32
  76. * - Uint64
  77. * - DyNumber
  78. *
  79. * Generated from protobuf field <code>string column_name = 1;</code>
  80. * @param string $var
  81. * @return $this
  82. */
  83. public function setColumnName($var)
  84. {
  85. GPBUtil::checkString($var, True);
  86. $this->column_name = $var;
  87. return $this;
  88. }
  89. /**
  90. * Interpretation of the value stored in <column_name>
  91. *
  92. * Generated from protobuf field <code>.Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;</code>
  93. * @return int
  94. */
  95. public function getColumnUnit()
  96. {
  97. return $this->column_unit;
  98. }
  99. /**
  100. * Interpretation of the value stored in <column_name>
  101. *
  102. * Generated from protobuf field <code>.Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;</code>
  103. * @param int $var
  104. * @return $this
  105. */
  106. public function setColumnUnit($var)
  107. {
  108. GPBUtil::checkEnum($var, \Ydb\Table\ValueSinceUnixEpochModeSettings\Unit::class);
  109. $this->column_unit = $var;
  110. return $this;
  111. }
  112. /**
  113. * This option is always interpreted as seconds regardless of the
  114. * <column_unit> value.
  115. *
  116. * Generated from protobuf field <code>uint32 expire_after_seconds = 3;</code>
  117. * @return int
  118. */
  119. public function getExpireAfterSeconds()
  120. {
  121. return $this->expire_after_seconds;
  122. }
  123. /**
  124. * This option is always interpreted as seconds regardless of the
  125. * <column_unit> value.
  126. *
  127. * Generated from protobuf field <code>uint32 expire_after_seconds = 3;</code>
  128. * @param int $var
  129. * @return $this
  130. */
  131. public function setExpireAfterSeconds($var)
  132. {
  133. GPBUtil::checkUint32($var);
  134. $this->expire_after_seconds = $var;
  135. return $this;
  136. }
  137. }