IndexBuildDescription.php 2.1 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. * Description of index building operation
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.IndexBuildDescription</code>
  12. */
  13. class IndexBuildDescription extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>string path = 1;</code>
  17. */
  18. protected $path = '';
  19. /**
  20. * Generated from protobuf field <code>.Ydb.Table.TableIndex index = 2;</code>
  21. */
  22. protected $index = null;
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type string $path
  30. * @type \Ydb\Table\TableIndex $index
  31. * }
  32. */
  33. public function __construct($data = NULL) {
  34. \GPBMetadata\Protos\YdbTable::initOnce();
  35. parent::__construct($data);
  36. }
  37. /**
  38. * Generated from protobuf field <code>string path = 1;</code>
  39. * @return string
  40. */
  41. public function getPath()
  42. {
  43. return $this->path;
  44. }
  45. /**
  46. * Generated from protobuf field <code>string path = 1;</code>
  47. * @param string $var
  48. * @return $this
  49. */
  50. public function setPath($var)
  51. {
  52. GPBUtil::checkString($var, True);
  53. $this->path = $var;
  54. return $this;
  55. }
  56. /**
  57. * Generated from protobuf field <code>.Ydb.Table.TableIndex index = 2;</code>
  58. * @return \Ydb\Table\TableIndex|null
  59. */
  60. public function getIndex()
  61. {
  62. return $this->index;
  63. }
  64. public function hasIndex()
  65. {
  66. return isset($this->index);
  67. }
  68. public function clearIndex()
  69. {
  70. unset($this->index);
  71. }
  72. /**
  73. * Generated from protobuf field <code>.Ydb.Table.TableIndex index = 2;</code>
  74. * @param \Ydb\Table\TableIndex $var
  75. * @return $this
  76. */
  77. public function setIndex($var)
  78. {
  79. GPBUtil::checkMessage($var, \Ydb\Table\TableIndex::class);
  80. $this->index = $var;
  81. return $this;
  82. }
  83. }