DescribeTableOptionsResult.php 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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.DescribeTableOptionsResult</code>
  10. */
  11. class DescribeTableOptionsResult extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>repeated .Ydb.Table.TableProfileDescription table_profile_presets = 1;</code>
  15. */
  16. private $table_profile_presets;
  17. /**
  18. * Generated from protobuf field <code>repeated .Ydb.Table.StoragePolicyDescription storage_policy_presets = 2;</code>
  19. */
  20. private $storage_policy_presets;
  21. /**
  22. * Generated from protobuf field <code>repeated .Ydb.Table.CompactionPolicyDescription compaction_policy_presets = 3;</code>
  23. */
  24. private $compaction_policy_presets;
  25. /**
  26. * Generated from protobuf field <code>repeated .Ydb.Table.PartitioningPolicyDescription partitioning_policy_presets = 4;</code>
  27. */
  28. private $partitioning_policy_presets;
  29. /**
  30. * Generated from protobuf field <code>repeated .Ydb.Table.ExecutionPolicyDescription execution_policy_presets = 5;</code>
  31. */
  32. private $execution_policy_presets;
  33. /**
  34. * Generated from protobuf field <code>repeated .Ydb.Table.ReplicationPolicyDescription replication_policy_presets = 6;</code>
  35. */
  36. private $replication_policy_presets;
  37. /**
  38. * Generated from protobuf field <code>repeated .Ydb.Table.CachingPolicyDescription caching_policy_presets = 7;</code>
  39. */
  40. private $caching_policy_presets;
  41. /**
  42. * Constructor.
  43. *
  44. * @param array $data {
  45. * Optional. Data for populating the Message object.
  46. *
  47. * @type array<\Ydb\Table\TableProfileDescription>|\Google\Protobuf\Internal\RepeatedField $table_profile_presets
  48. * @type array<\Ydb\Table\StoragePolicyDescription>|\Google\Protobuf\Internal\RepeatedField $storage_policy_presets
  49. * @type array<\Ydb\Table\CompactionPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $compaction_policy_presets
  50. * @type array<\Ydb\Table\PartitioningPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $partitioning_policy_presets
  51. * @type array<\Ydb\Table\ExecutionPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $execution_policy_presets
  52. * @type array<\Ydb\Table\ReplicationPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $replication_policy_presets
  53. * @type array<\Ydb\Table\CachingPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $caching_policy_presets
  54. * }
  55. */
  56. public function __construct($data = NULL) {
  57. \GPBMetadata\Protos\YdbTable::initOnce();
  58. parent::__construct($data);
  59. }
  60. /**
  61. * Generated from protobuf field <code>repeated .Ydb.Table.TableProfileDescription table_profile_presets = 1;</code>
  62. * @return \Google\Protobuf\Internal\RepeatedField
  63. */
  64. public function getTableProfilePresets()
  65. {
  66. return $this->table_profile_presets;
  67. }
  68. /**
  69. * Generated from protobuf field <code>repeated .Ydb.Table.TableProfileDescription table_profile_presets = 1;</code>
  70. * @param array<\Ydb\Table\TableProfileDescription>|\Google\Protobuf\Internal\RepeatedField $var
  71. * @return $this
  72. */
  73. public function setTableProfilePresets($var)
  74. {
  75. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\TableProfileDescription::class);
  76. $this->table_profile_presets = $arr;
  77. return $this;
  78. }
  79. /**
  80. * Generated from protobuf field <code>repeated .Ydb.Table.StoragePolicyDescription storage_policy_presets = 2;</code>
  81. * @return \Google\Protobuf\Internal\RepeatedField
  82. */
  83. public function getStoragePolicyPresets()
  84. {
  85. return $this->storage_policy_presets;
  86. }
  87. /**
  88. * Generated from protobuf field <code>repeated .Ydb.Table.StoragePolicyDescription storage_policy_presets = 2;</code>
  89. * @param array<\Ydb\Table\StoragePolicyDescription>|\Google\Protobuf\Internal\RepeatedField $var
  90. * @return $this
  91. */
  92. public function setStoragePolicyPresets($var)
  93. {
  94. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\StoragePolicyDescription::class);
  95. $this->storage_policy_presets = $arr;
  96. return $this;
  97. }
  98. /**
  99. * Generated from protobuf field <code>repeated .Ydb.Table.CompactionPolicyDescription compaction_policy_presets = 3;</code>
  100. * @return \Google\Protobuf\Internal\RepeatedField
  101. */
  102. public function getCompactionPolicyPresets()
  103. {
  104. return $this->compaction_policy_presets;
  105. }
  106. /**
  107. * Generated from protobuf field <code>repeated .Ydb.Table.CompactionPolicyDescription compaction_policy_presets = 3;</code>
  108. * @param array<\Ydb\Table\CompactionPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $var
  109. * @return $this
  110. */
  111. public function setCompactionPolicyPresets($var)
  112. {
  113. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\CompactionPolicyDescription::class);
  114. $this->compaction_policy_presets = $arr;
  115. return $this;
  116. }
  117. /**
  118. * Generated from protobuf field <code>repeated .Ydb.Table.PartitioningPolicyDescription partitioning_policy_presets = 4;</code>
  119. * @return \Google\Protobuf\Internal\RepeatedField
  120. */
  121. public function getPartitioningPolicyPresets()
  122. {
  123. return $this->partitioning_policy_presets;
  124. }
  125. /**
  126. * Generated from protobuf field <code>repeated .Ydb.Table.PartitioningPolicyDescription partitioning_policy_presets = 4;</code>
  127. * @param array<\Ydb\Table\PartitioningPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $var
  128. * @return $this
  129. */
  130. public function setPartitioningPolicyPresets($var)
  131. {
  132. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\PartitioningPolicyDescription::class);
  133. $this->partitioning_policy_presets = $arr;
  134. return $this;
  135. }
  136. /**
  137. * Generated from protobuf field <code>repeated .Ydb.Table.ExecutionPolicyDescription execution_policy_presets = 5;</code>
  138. * @return \Google\Protobuf\Internal\RepeatedField
  139. */
  140. public function getExecutionPolicyPresets()
  141. {
  142. return $this->execution_policy_presets;
  143. }
  144. /**
  145. * Generated from protobuf field <code>repeated .Ydb.Table.ExecutionPolicyDescription execution_policy_presets = 5;</code>
  146. * @param array<\Ydb\Table\ExecutionPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $var
  147. * @return $this
  148. */
  149. public function setExecutionPolicyPresets($var)
  150. {
  151. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ExecutionPolicyDescription::class);
  152. $this->execution_policy_presets = $arr;
  153. return $this;
  154. }
  155. /**
  156. * Generated from protobuf field <code>repeated .Ydb.Table.ReplicationPolicyDescription replication_policy_presets = 6;</code>
  157. * @return \Google\Protobuf\Internal\RepeatedField
  158. */
  159. public function getReplicationPolicyPresets()
  160. {
  161. return $this->replication_policy_presets;
  162. }
  163. /**
  164. * Generated from protobuf field <code>repeated .Ydb.Table.ReplicationPolicyDescription replication_policy_presets = 6;</code>
  165. * @param array<\Ydb\Table\ReplicationPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $var
  166. * @return $this
  167. */
  168. public function setReplicationPolicyPresets($var)
  169. {
  170. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ReplicationPolicyDescription::class);
  171. $this->replication_policy_presets = $arr;
  172. return $this;
  173. }
  174. /**
  175. * Generated from protobuf field <code>repeated .Ydb.Table.CachingPolicyDescription caching_policy_presets = 7;</code>
  176. * @return \Google\Protobuf\Internal\RepeatedField
  177. */
  178. public function getCachingPolicyPresets()
  179. {
  180. return $this->caching_policy_presets;
  181. }
  182. /**
  183. * Generated from protobuf field <code>repeated .Ydb.Table.CachingPolicyDescription caching_policy_presets = 7;</code>
  184. * @param array<\Ydb\Table\CachingPolicyDescription>|\Google\Protobuf\Internal\RepeatedField $var
  185. * @return $this
  186. */
  187. public function setCachingPolicyPresets($var)
  188. {
  189. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\CachingPolicyDescription::class);
  190. $this->caching_policy_presets = $arr;
  191. return $this;
  192. }
  193. }