DescribeTableRequest.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. * Describe table with given path
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.DescribeTableRequest</code>
  12. */
  13. class DescribeTableRequest 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. * Full path
  23. *
  24. * Generated from protobuf field <code>string path = 2;</code>
  25. */
  26. protected $path = '';
  27. /**
  28. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 4;</code>
  29. */
  30. protected $operation_params = null;
  31. /**
  32. * Includes shard key distribution info
  33. *
  34. * Generated from protobuf field <code>bool include_shard_key_bounds = 5;</code>
  35. */
  36. protected $include_shard_key_bounds = false;
  37. /**
  38. * Includes table statistics
  39. *
  40. * Generated from protobuf field <code>bool include_table_stats = 6;</code>
  41. */
  42. protected $include_table_stats = false;
  43. /**
  44. * Includes partition statistics (required include_table_statistics)
  45. *
  46. * Generated from protobuf field <code>bool include_partition_stats = 7;</code>
  47. */
  48. protected $include_partition_stats = false;
  49. /**
  50. * Constructor.
  51. *
  52. * @param array $data {
  53. * Optional. Data for populating the Message object.
  54. *
  55. * @type string $session_id
  56. * Session identifier
  57. * @type string $path
  58. * Full path
  59. * @type \Ydb\Operations\OperationParams $operation_params
  60. * @type bool $include_shard_key_bounds
  61. * Includes shard key distribution info
  62. * @type bool $include_table_stats
  63. * Includes table statistics
  64. * @type bool $include_partition_stats
  65. * Includes partition statistics (required include_table_statistics)
  66. * }
  67. */
  68. public function __construct($data = NULL) {
  69. \GPBMetadata\Protos\YdbTable::initOnce();
  70. parent::__construct($data);
  71. }
  72. /**
  73. * Session identifier
  74. *
  75. * Generated from protobuf field <code>string session_id = 1;</code>
  76. * @return string
  77. */
  78. public function getSessionId()
  79. {
  80. return $this->session_id;
  81. }
  82. /**
  83. * Session identifier
  84. *
  85. * Generated from protobuf field <code>string session_id = 1;</code>
  86. * @param string $var
  87. * @return $this
  88. */
  89. public function setSessionId($var)
  90. {
  91. GPBUtil::checkString($var, True);
  92. $this->session_id = $var;
  93. return $this;
  94. }
  95. /**
  96. * Full path
  97. *
  98. * Generated from protobuf field <code>string path = 2;</code>
  99. * @return string
  100. */
  101. public function getPath()
  102. {
  103. return $this->path;
  104. }
  105. /**
  106. * Full path
  107. *
  108. * Generated from protobuf field <code>string path = 2;</code>
  109. * @param string $var
  110. * @return $this
  111. */
  112. public function setPath($var)
  113. {
  114. GPBUtil::checkString($var, True);
  115. $this->path = $var;
  116. return $this;
  117. }
  118. /**
  119. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 4;</code>
  120. * @return \Ydb\Operations\OperationParams|null
  121. */
  122. public function getOperationParams()
  123. {
  124. return $this->operation_params;
  125. }
  126. public function hasOperationParams()
  127. {
  128. return isset($this->operation_params);
  129. }
  130. public function clearOperationParams()
  131. {
  132. unset($this->operation_params);
  133. }
  134. /**
  135. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 4;</code>
  136. * @param \Ydb\Operations\OperationParams $var
  137. * @return $this
  138. */
  139. public function setOperationParams($var)
  140. {
  141. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  142. $this->operation_params = $var;
  143. return $this;
  144. }
  145. /**
  146. * Includes shard key distribution info
  147. *
  148. * Generated from protobuf field <code>bool include_shard_key_bounds = 5;</code>
  149. * @return bool
  150. */
  151. public function getIncludeShardKeyBounds()
  152. {
  153. return $this->include_shard_key_bounds;
  154. }
  155. /**
  156. * Includes shard key distribution info
  157. *
  158. * Generated from protobuf field <code>bool include_shard_key_bounds = 5;</code>
  159. * @param bool $var
  160. * @return $this
  161. */
  162. public function setIncludeShardKeyBounds($var)
  163. {
  164. GPBUtil::checkBool($var);
  165. $this->include_shard_key_bounds = $var;
  166. return $this;
  167. }
  168. /**
  169. * Includes table statistics
  170. *
  171. * Generated from protobuf field <code>bool include_table_stats = 6;</code>
  172. * @return bool
  173. */
  174. public function getIncludeTableStats()
  175. {
  176. return $this->include_table_stats;
  177. }
  178. /**
  179. * Includes table statistics
  180. *
  181. * Generated from protobuf field <code>bool include_table_stats = 6;</code>
  182. * @param bool $var
  183. * @return $this
  184. */
  185. public function setIncludeTableStats($var)
  186. {
  187. GPBUtil::checkBool($var);
  188. $this->include_table_stats = $var;
  189. return $this;
  190. }
  191. /**
  192. * Includes partition statistics (required include_table_statistics)
  193. *
  194. * Generated from protobuf field <code>bool include_partition_stats = 7;</code>
  195. * @return bool
  196. */
  197. public function getIncludePartitionStats()
  198. {
  199. return $this->include_partition_stats;
  200. }
  201. /**
  202. * Includes partition statistics (required include_table_statistics)
  203. *
  204. * Generated from protobuf field <code>bool include_partition_stats = 7;</code>
  205. * @param bool $var
  206. * @return $this
  207. */
  208. public function setIncludePartitionStats($var)
  209. {
  210. GPBUtil::checkBool($var);
  211. $this->include_partition_stats = $var;
  212. return $this;
  213. }
  214. }