RenameIndexItem.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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.RenameIndexItem</code>
  10. */
  11. class RenameIndexItem extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Index name to rename
  15. *
  16. * Generated from protobuf field <code>string source_name = 1;</code>
  17. */
  18. protected $source_name = '';
  19. /**
  20. * Target index name
  21. *
  22. * Generated from protobuf field <code>string destination_name = 2;</code>
  23. */
  24. protected $destination_name = '';
  25. /**
  26. * Move options
  27. *
  28. * Generated from protobuf field <code>bool replace_destination = 3;</code>
  29. */
  30. protected $replace_destination = false;
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type string $source_name
  38. * Index name to rename
  39. * @type string $destination_name
  40. * Target index name
  41. * @type bool $replace_destination
  42. * Move options
  43. * }
  44. */
  45. public function __construct($data = NULL) {
  46. \GPBMetadata\Protos\YdbTable::initOnce();
  47. parent::__construct($data);
  48. }
  49. /**
  50. * Index name to rename
  51. *
  52. * Generated from protobuf field <code>string source_name = 1;</code>
  53. * @return string
  54. */
  55. public function getSourceName()
  56. {
  57. return $this->source_name;
  58. }
  59. /**
  60. * Index name to rename
  61. *
  62. * Generated from protobuf field <code>string source_name = 1;</code>
  63. * @param string $var
  64. * @return $this
  65. */
  66. public function setSourceName($var)
  67. {
  68. GPBUtil::checkString($var, True);
  69. $this->source_name = $var;
  70. return $this;
  71. }
  72. /**
  73. * Target index name
  74. *
  75. * Generated from protobuf field <code>string destination_name = 2;</code>
  76. * @return string
  77. */
  78. public function getDestinationName()
  79. {
  80. return $this->destination_name;
  81. }
  82. /**
  83. * Target index name
  84. *
  85. * Generated from protobuf field <code>string destination_name = 2;</code>
  86. * @param string $var
  87. * @return $this
  88. */
  89. public function setDestinationName($var)
  90. {
  91. GPBUtil::checkString($var, True);
  92. $this->destination_name = $var;
  93. return $this;
  94. }
  95. /**
  96. * Move options
  97. *
  98. * Generated from protobuf field <code>bool replace_destination = 3;</code>
  99. * @return bool
  100. */
  101. public function getReplaceDestination()
  102. {
  103. return $this->replace_destination;
  104. }
  105. /**
  106. * Move options
  107. *
  108. * Generated from protobuf field <code>bool replace_destination = 3;</code>
  109. * @param bool $var
  110. * @return $this
  111. */
  112. public function setReplaceDestination($var)
  113. {
  114. GPBUtil::checkBool($var);
  115. $this->replace_destination = $var;
  116. return $this;
  117. }
  118. }