TableProfileDescription.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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.TableProfileDescription</code>
  10. */
  11. class TableProfileDescription extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>string name = 1;</code>
  15. */
  16. protected $name = '';
  17. /**
  18. * Generated from protobuf field <code>map<string, string> labels = 2;</code>
  19. */
  20. private $labels;
  21. /**
  22. * Generated from protobuf field <code>string default_storage_policy = 3;</code>
  23. */
  24. protected $default_storage_policy = '';
  25. /**
  26. * Generated from protobuf field <code>repeated string allowed_storage_policies = 4;</code>
  27. */
  28. private $allowed_storage_policies;
  29. /**
  30. * Generated from protobuf field <code>string default_compaction_policy = 5;</code>
  31. */
  32. protected $default_compaction_policy = '';
  33. /**
  34. * Generated from protobuf field <code>repeated string allowed_compaction_policies = 6;</code>
  35. */
  36. private $allowed_compaction_policies;
  37. /**
  38. * Generated from protobuf field <code>string default_partitioning_policy = 7;</code>
  39. */
  40. protected $default_partitioning_policy = '';
  41. /**
  42. * Generated from protobuf field <code>repeated string allowed_partitioning_policies = 8;</code>
  43. */
  44. private $allowed_partitioning_policies;
  45. /**
  46. * Generated from protobuf field <code>string default_execution_policy = 9;</code>
  47. */
  48. protected $default_execution_policy = '';
  49. /**
  50. * Generated from protobuf field <code>repeated string allowed_execution_policies = 10;</code>
  51. */
  52. private $allowed_execution_policies;
  53. /**
  54. * Generated from protobuf field <code>string default_replication_policy = 11;</code>
  55. */
  56. protected $default_replication_policy = '';
  57. /**
  58. * Generated from protobuf field <code>repeated string allowed_replication_policies = 12;</code>
  59. */
  60. private $allowed_replication_policies;
  61. /**
  62. * Generated from protobuf field <code>string default_caching_policy = 13;</code>
  63. */
  64. protected $default_caching_policy = '';
  65. /**
  66. * Generated from protobuf field <code>repeated string allowed_caching_policies = 14;</code>
  67. */
  68. private $allowed_caching_policies;
  69. /**
  70. * Constructor.
  71. *
  72. * @param array $data {
  73. * Optional. Data for populating the Message object.
  74. *
  75. * @type string $name
  76. * @type array|\Google\Protobuf\Internal\MapField $labels
  77. * @type string $default_storage_policy
  78. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_storage_policies
  79. * @type string $default_compaction_policy
  80. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_compaction_policies
  81. * @type string $default_partitioning_policy
  82. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_partitioning_policies
  83. * @type string $default_execution_policy
  84. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_execution_policies
  85. * @type string $default_replication_policy
  86. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_replication_policies
  87. * @type string $default_caching_policy
  88. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_caching_policies
  89. * }
  90. */
  91. public function __construct($data = NULL) {
  92. \GPBMetadata\Protos\YdbTable::initOnce();
  93. parent::__construct($data);
  94. }
  95. /**
  96. * Generated from protobuf field <code>string name = 1;</code>
  97. * @return string
  98. */
  99. public function getName()
  100. {
  101. return $this->name;
  102. }
  103. /**
  104. * Generated from protobuf field <code>string name = 1;</code>
  105. * @param string $var
  106. * @return $this
  107. */
  108. public function setName($var)
  109. {
  110. GPBUtil::checkString($var, True);
  111. $this->name = $var;
  112. return $this;
  113. }
  114. /**
  115. * Generated from protobuf field <code>map<string, string> labels = 2;</code>
  116. * @return \Google\Protobuf\Internal\MapField
  117. */
  118. public function getLabels()
  119. {
  120. return $this->labels;
  121. }
  122. /**
  123. * Generated from protobuf field <code>map<string, string> labels = 2;</code>
  124. * @param array|\Google\Protobuf\Internal\MapField $var
  125. * @return $this
  126. */
  127. public function setLabels($var)
  128. {
  129. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
  130. $this->labels = $arr;
  131. return $this;
  132. }
  133. /**
  134. * Generated from protobuf field <code>string default_storage_policy = 3;</code>
  135. * @return string
  136. */
  137. public function getDefaultStoragePolicy()
  138. {
  139. return $this->default_storage_policy;
  140. }
  141. /**
  142. * Generated from protobuf field <code>string default_storage_policy = 3;</code>
  143. * @param string $var
  144. * @return $this
  145. */
  146. public function setDefaultStoragePolicy($var)
  147. {
  148. GPBUtil::checkString($var, True);
  149. $this->default_storage_policy = $var;
  150. return $this;
  151. }
  152. /**
  153. * Generated from protobuf field <code>repeated string allowed_storage_policies = 4;</code>
  154. * @return \Google\Protobuf\Internal\RepeatedField
  155. */
  156. public function getAllowedStoragePolicies()
  157. {
  158. return $this->allowed_storage_policies;
  159. }
  160. /**
  161. * Generated from protobuf field <code>repeated string allowed_storage_policies = 4;</code>
  162. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  163. * @return $this
  164. */
  165. public function setAllowedStoragePolicies($var)
  166. {
  167. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  168. $this->allowed_storage_policies = $arr;
  169. return $this;
  170. }
  171. /**
  172. * Generated from protobuf field <code>string default_compaction_policy = 5;</code>
  173. * @return string
  174. */
  175. public function getDefaultCompactionPolicy()
  176. {
  177. return $this->default_compaction_policy;
  178. }
  179. /**
  180. * Generated from protobuf field <code>string default_compaction_policy = 5;</code>
  181. * @param string $var
  182. * @return $this
  183. */
  184. public function setDefaultCompactionPolicy($var)
  185. {
  186. GPBUtil::checkString($var, True);
  187. $this->default_compaction_policy = $var;
  188. return $this;
  189. }
  190. /**
  191. * Generated from protobuf field <code>repeated string allowed_compaction_policies = 6;</code>
  192. * @return \Google\Protobuf\Internal\RepeatedField
  193. */
  194. public function getAllowedCompactionPolicies()
  195. {
  196. return $this->allowed_compaction_policies;
  197. }
  198. /**
  199. * Generated from protobuf field <code>repeated string allowed_compaction_policies = 6;</code>
  200. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  201. * @return $this
  202. */
  203. public function setAllowedCompactionPolicies($var)
  204. {
  205. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  206. $this->allowed_compaction_policies = $arr;
  207. return $this;
  208. }
  209. /**
  210. * Generated from protobuf field <code>string default_partitioning_policy = 7;</code>
  211. * @return string
  212. */
  213. public function getDefaultPartitioningPolicy()
  214. {
  215. return $this->default_partitioning_policy;
  216. }
  217. /**
  218. * Generated from protobuf field <code>string default_partitioning_policy = 7;</code>
  219. * @param string $var
  220. * @return $this
  221. */
  222. public function setDefaultPartitioningPolicy($var)
  223. {
  224. GPBUtil::checkString($var, True);
  225. $this->default_partitioning_policy = $var;
  226. return $this;
  227. }
  228. /**
  229. * Generated from protobuf field <code>repeated string allowed_partitioning_policies = 8;</code>
  230. * @return \Google\Protobuf\Internal\RepeatedField
  231. */
  232. public function getAllowedPartitioningPolicies()
  233. {
  234. return $this->allowed_partitioning_policies;
  235. }
  236. /**
  237. * Generated from protobuf field <code>repeated string allowed_partitioning_policies = 8;</code>
  238. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  239. * @return $this
  240. */
  241. public function setAllowedPartitioningPolicies($var)
  242. {
  243. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  244. $this->allowed_partitioning_policies = $arr;
  245. return $this;
  246. }
  247. /**
  248. * Generated from protobuf field <code>string default_execution_policy = 9;</code>
  249. * @return string
  250. */
  251. public function getDefaultExecutionPolicy()
  252. {
  253. return $this->default_execution_policy;
  254. }
  255. /**
  256. * Generated from protobuf field <code>string default_execution_policy = 9;</code>
  257. * @param string $var
  258. * @return $this
  259. */
  260. public function setDefaultExecutionPolicy($var)
  261. {
  262. GPBUtil::checkString($var, True);
  263. $this->default_execution_policy = $var;
  264. return $this;
  265. }
  266. /**
  267. * Generated from protobuf field <code>repeated string allowed_execution_policies = 10;</code>
  268. * @return \Google\Protobuf\Internal\RepeatedField
  269. */
  270. public function getAllowedExecutionPolicies()
  271. {
  272. return $this->allowed_execution_policies;
  273. }
  274. /**
  275. * Generated from protobuf field <code>repeated string allowed_execution_policies = 10;</code>
  276. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  277. * @return $this
  278. */
  279. public function setAllowedExecutionPolicies($var)
  280. {
  281. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  282. $this->allowed_execution_policies = $arr;
  283. return $this;
  284. }
  285. /**
  286. * Generated from protobuf field <code>string default_replication_policy = 11;</code>
  287. * @return string
  288. */
  289. public function getDefaultReplicationPolicy()
  290. {
  291. return $this->default_replication_policy;
  292. }
  293. /**
  294. * Generated from protobuf field <code>string default_replication_policy = 11;</code>
  295. * @param string $var
  296. * @return $this
  297. */
  298. public function setDefaultReplicationPolicy($var)
  299. {
  300. GPBUtil::checkString($var, True);
  301. $this->default_replication_policy = $var;
  302. return $this;
  303. }
  304. /**
  305. * Generated from protobuf field <code>repeated string allowed_replication_policies = 12;</code>
  306. * @return \Google\Protobuf\Internal\RepeatedField
  307. */
  308. public function getAllowedReplicationPolicies()
  309. {
  310. return $this->allowed_replication_policies;
  311. }
  312. /**
  313. * Generated from protobuf field <code>repeated string allowed_replication_policies = 12;</code>
  314. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  315. * @return $this
  316. */
  317. public function setAllowedReplicationPolicies($var)
  318. {
  319. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  320. $this->allowed_replication_policies = $arr;
  321. return $this;
  322. }
  323. /**
  324. * Generated from protobuf field <code>string default_caching_policy = 13;</code>
  325. * @return string
  326. */
  327. public function getDefaultCachingPolicy()
  328. {
  329. return $this->default_caching_policy;
  330. }
  331. /**
  332. * Generated from protobuf field <code>string default_caching_policy = 13;</code>
  333. * @param string $var
  334. * @return $this
  335. */
  336. public function setDefaultCachingPolicy($var)
  337. {
  338. GPBUtil::checkString($var, True);
  339. $this->default_caching_policy = $var;
  340. return $this;
  341. }
  342. /**
  343. * Generated from protobuf field <code>repeated string allowed_caching_policies = 14;</code>
  344. * @return \Google\Protobuf\Internal\RepeatedField
  345. */
  346. public function getAllowedCachingPolicies()
  347. {
  348. return $this->allowed_caching_policies;
  349. }
  350. /**
  351. * Generated from protobuf field <code>repeated string allowed_caching_policies = 14;</code>
  352. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  353. * @return $this
  354. */
  355. public function setAllowedCachingPolicies($var)
  356. {
  357. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  358. $this->allowed_caching_policies = $arr;
  359. return $this;
  360. }
  361. }