CopyTableRequest.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. * Copy table with given path
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.CopyTableRequest</code>
  12. */
  13. class CopyTableRequest extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Session identifier
  17. *
  18. * Generated from protobuf field <code>string session_id = 1;</code>
  19. */
  20. protected $session_id = '';
  21. /**
  22. * Copy from path
  23. *
  24. * Generated from protobuf field <code>string source_path = 2;</code>
  25. */
  26. protected $source_path = '';
  27. /**
  28. * Copy to path
  29. *
  30. * Generated from protobuf field <code>string destination_path = 3;</code>
  31. */
  32. protected $destination_path = '';
  33. /**
  34. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 4;</code>
  35. */
  36. protected $operation_params = null;
  37. /**
  38. * Constructor.
  39. *
  40. * @param array $data {
  41. * Optional. Data for populating the Message object.
  42. *
  43. * @type string $session_id
  44. * Session identifier
  45. * @type string $source_path
  46. * Copy from path
  47. * @type string $destination_path
  48. * Copy to path
  49. * @type \Ydb\Operations\OperationParams $operation_params
  50. * }
  51. */
  52. public function __construct($data = NULL) {
  53. \GPBMetadata\Protos\YdbTable::initOnce();
  54. parent::__construct($data);
  55. }
  56. /**
  57. * Session identifier
  58. *
  59. * Generated from protobuf field <code>string session_id = 1;</code>
  60. * @return string
  61. */
  62. public function getSessionId()
  63. {
  64. return $this->session_id;
  65. }
  66. /**
  67. * Session identifier
  68. *
  69. * Generated from protobuf field <code>string session_id = 1;</code>
  70. * @param string $var
  71. * @return $this
  72. */
  73. public function setSessionId($var)
  74. {
  75. GPBUtil::checkString($var, True);
  76. $this->session_id = $var;
  77. return $this;
  78. }
  79. /**
  80. * Copy from path
  81. *
  82. * Generated from protobuf field <code>string source_path = 2;</code>
  83. * @return string
  84. */
  85. public function getSourcePath()
  86. {
  87. return $this->source_path;
  88. }
  89. /**
  90. * Copy from path
  91. *
  92. * Generated from protobuf field <code>string source_path = 2;</code>
  93. * @param string $var
  94. * @return $this
  95. */
  96. public function setSourcePath($var)
  97. {
  98. GPBUtil::checkString($var, True);
  99. $this->source_path = $var;
  100. return $this;
  101. }
  102. /**
  103. * Copy to path
  104. *
  105. * Generated from protobuf field <code>string destination_path = 3;</code>
  106. * @return string
  107. */
  108. public function getDestinationPath()
  109. {
  110. return $this->destination_path;
  111. }
  112. /**
  113. * Copy to path
  114. *
  115. * Generated from protobuf field <code>string destination_path = 3;</code>
  116. * @param string $var
  117. * @return $this
  118. */
  119. public function setDestinationPath($var)
  120. {
  121. GPBUtil::checkString($var, True);
  122. $this->destination_path = $var;
  123. return $this;
  124. }
  125. /**
  126. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 4;</code>
  127. * @return \Ydb\Operations\OperationParams|null
  128. */
  129. public function getOperationParams()
  130. {
  131. return $this->operation_params;
  132. }
  133. public function hasOperationParams()
  134. {
  135. return isset($this->operation_params);
  136. }
  137. public function clearOperationParams()
  138. {
  139. unset($this->operation_params);
  140. }
  141. /**
  142. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 4;</code>
  143. * @param \Ydb\Operations\OperationParams $var
  144. * @return $this
  145. */
  146. public function setOperationParams($var)
  147. {
  148. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  149. $this->operation_params = $var;
  150. return $this;
  151. }
  152. }