IndexBuildMetadata.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. * Generated from protobuf message <code>Ydb.Table.IndexBuildMetadata</code>
  10. */
  11. class IndexBuildMetadata extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Table.IndexBuildDescription description = 1;</code>
  15. */
  16. protected $description = null;
  17. /**
  18. * Generated from protobuf field <code>.Ydb.Table.IndexBuildState.State state = 2;</code>
  19. */
  20. protected $state = 0;
  21. /**
  22. * Generated from protobuf field <code>float progress = 3;</code>
  23. */
  24. protected $progress = 0.0;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type \Ydb\Table\IndexBuildDescription $description
  32. * @type int $state
  33. * @type float $progress
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Protos\YdbTable::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Generated from protobuf field <code>.Ydb.Table.IndexBuildDescription description = 1;</code>
  42. * @return \Ydb\Table\IndexBuildDescription|null
  43. */
  44. public function getDescription()
  45. {
  46. return $this->description;
  47. }
  48. public function hasDescription()
  49. {
  50. return isset($this->description);
  51. }
  52. public function clearDescription()
  53. {
  54. unset($this->description);
  55. }
  56. /**
  57. * Generated from protobuf field <code>.Ydb.Table.IndexBuildDescription description = 1;</code>
  58. * @param \Ydb\Table\IndexBuildDescription $var
  59. * @return $this
  60. */
  61. public function setDescription($var)
  62. {
  63. GPBUtil::checkMessage($var, \Ydb\Table\IndexBuildDescription::class);
  64. $this->description = $var;
  65. return $this;
  66. }
  67. /**
  68. * Generated from protobuf field <code>.Ydb.Table.IndexBuildState.State state = 2;</code>
  69. * @return int
  70. */
  71. public function getState()
  72. {
  73. return $this->state;
  74. }
  75. /**
  76. * Generated from protobuf field <code>.Ydb.Table.IndexBuildState.State state = 2;</code>
  77. * @param int $var
  78. * @return $this
  79. */
  80. public function setState($var)
  81. {
  82. GPBUtil::checkEnum($var, \Ydb\Table\IndexBuildState\State::class);
  83. $this->state = $var;
  84. return $this;
  85. }
  86. /**
  87. * Generated from protobuf field <code>float progress = 3;</code>
  88. * @return float
  89. */
  90. public function getProgress()
  91. {
  92. return $this->progress;
  93. }
  94. /**
  95. * Generated from protobuf field <code>float progress = 3;</code>
  96. * @param float $var
  97. * @return $this
  98. */
  99. public function setProgress($var)
  100. {
  101. GPBUtil::checkFloat($var);
  102. $this->progress = $var;
  103. return $this;
  104. }
  105. }