CopyTablesRequest.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. * Creates consistent copy of given tables.
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.CopyTablesRequest</code>
  12. */
  13. class CopyTablesRequest extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  17. */
  18. protected $operation_params = null;
  19. /**
  20. * Session identifier
  21. *
  22. * Generated from protobuf field <code>string session_id = 2;</code>
  23. */
  24. protected $session_id = '';
  25. /**
  26. * Source and destination paths which describe copies
  27. *
  28. * Generated from protobuf field <code>repeated .Ydb.Table.CopyTableItem tables = 3;</code>
  29. */
  30. private $tables;
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type \Ydb\Operations\OperationParams $operation_params
  38. * @type string $session_id
  39. * Session identifier
  40. * @type array<\Ydb\Table\CopyTableItem>|\Google\Protobuf\Internal\RepeatedField $tables
  41. * Source and destination paths which describe copies
  42. * }
  43. */
  44. public function __construct($data = NULL) {
  45. \GPBMetadata\Protos\YdbTable::initOnce();
  46. parent::__construct($data);
  47. }
  48. /**
  49. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  50. * @return \Ydb\Operations\OperationParams|null
  51. */
  52. public function getOperationParams()
  53. {
  54. return $this->operation_params;
  55. }
  56. public function hasOperationParams()
  57. {
  58. return isset($this->operation_params);
  59. }
  60. public function clearOperationParams()
  61. {
  62. unset($this->operation_params);
  63. }
  64. /**
  65. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  66. * @param \Ydb\Operations\OperationParams $var
  67. * @return $this
  68. */
  69. public function setOperationParams($var)
  70. {
  71. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  72. $this->operation_params = $var;
  73. return $this;
  74. }
  75. /**
  76. * Session identifier
  77. *
  78. * Generated from protobuf field <code>string session_id = 2;</code>
  79. * @return string
  80. */
  81. public function getSessionId()
  82. {
  83. return $this->session_id;
  84. }
  85. /**
  86. * Session identifier
  87. *
  88. * Generated from protobuf field <code>string session_id = 2;</code>
  89. * @param string $var
  90. * @return $this
  91. */
  92. public function setSessionId($var)
  93. {
  94. GPBUtil::checkString($var, True);
  95. $this->session_id = $var;
  96. return $this;
  97. }
  98. /**
  99. * Source and destination paths which describe copies
  100. *
  101. * Generated from protobuf field <code>repeated .Ydb.Table.CopyTableItem tables = 3;</code>
  102. * @return \Google\Protobuf\Internal\RepeatedField
  103. */
  104. public function getTables()
  105. {
  106. return $this->tables;
  107. }
  108. /**
  109. * Source and destination paths which describe copies
  110. *
  111. * Generated from protobuf field <code>repeated .Ydb.Table.CopyTableItem tables = 3;</code>
  112. * @param array<\Ydb\Table\CopyTableItem>|\Google\Protobuf\Internal\RepeatedField $var
  113. * @return $this
  114. */
  115. public function setTables($var)
  116. {
  117. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\CopyTableItem::class);
  118. $this->tables = $arr;
  119. return $this;
  120. }
  121. }