DateTypeColumnModeSettings.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. * The row will be considered as expired at the moment of time, when the value
  10. * stored in <column_name> is less than or equal to the current time (in epoch
  11. * time format), and <expire_after_seconds> has passed since that moment;
  12. * i.e. the expiration threshold is the value of <column_name> plus <expire_after_seconds>.
  13. *
  14. * Generated from protobuf message <code>Ydb.Table.DateTypeColumnModeSettings</code>
  15. */
  16. class DateTypeColumnModeSettings extends \Google\Protobuf\Internal\Message
  17. {
  18. /**
  19. * The column type must be a date type
  20. *
  21. * Generated from protobuf field <code>string column_name = 1;</code>
  22. */
  23. protected $column_name = '';
  24. /**
  25. * Generated from protobuf field <code>uint32 expire_after_seconds = 2;</code>
  26. */
  27. protected $expire_after_seconds = 0;
  28. /**
  29. * Constructor.
  30. *
  31. * @param array $data {
  32. * Optional. Data for populating the Message object.
  33. *
  34. * @type string $column_name
  35. * The column type must be a date type
  36. * @type int $expire_after_seconds
  37. * }
  38. */
  39. public function __construct($data = NULL) {
  40. \GPBMetadata\Protos\YdbTable::initOnce();
  41. parent::__construct($data);
  42. }
  43. /**
  44. * The column type must be a date type
  45. *
  46. * Generated from protobuf field <code>string column_name = 1;</code>
  47. * @return string
  48. */
  49. public function getColumnName()
  50. {
  51. return $this->column_name;
  52. }
  53. /**
  54. * The column type must be a date type
  55. *
  56. * Generated from protobuf field <code>string column_name = 1;</code>
  57. * @param string $var
  58. * @return $this
  59. */
  60. public function setColumnName($var)
  61. {
  62. GPBUtil::checkString($var, True);
  63. $this->column_name = $var;
  64. return $this;
  65. }
  66. /**
  67. * Generated from protobuf field <code>uint32 expire_after_seconds = 2;</code>
  68. * @return int
  69. */
  70. public function getExpireAfterSeconds()
  71. {
  72. return $this->expire_after_seconds;
  73. }
  74. /**
  75. * Generated from protobuf field <code>uint32 expire_after_seconds = 2;</code>
  76. * @param int $var
  77. * @return $this
  78. */
  79. public function setExpireAfterSeconds($var)
  80. {
  81. GPBUtil::checkUint32($var);
  82. $this->expire_after_seconds = $var;
  83. return $this;
  84. }
  85. }