ExplicitPartitions.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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.ExplicitPartitions</code>
  10. */
  11. class ExplicitPartitions extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Specify key values used to split table into partitions.
  15. * Each value becomes the first key of a new partition.
  16. * Key values should go in ascending order.
  17. * Total number of created partitions is number of specified
  18. * keys + 1.
  19. *
  20. * Generated from protobuf field <code>repeated .Ydb.TypedValue split_points = 1;</code>
  21. */
  22. private $split_points;
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type array<\Ydb\TypedValue>|\Google\Protobuf\Internal\RepeatedField $split_points
  30. * Specify key values used to split table into partitions.
  31. * Each value becomes the first key of a new partition.
  32. * Key values should go in ascending order.
  33. * Total number of created partitions is number of specified
  34. * keys + 1.
  35. * }
  36. */
  37. public function __construct($data = NULL) {
  38. \GPBMetadata\Protos\YdbTable::initOnce();
  39. parent::__construct($data);
  40. }
  41. /**
  42. * Specify key values used to split table into partitions.
  43. * Each value becomes the first key of a new partition.
  44. * Key values should go in ascending order.
  45. * Total number of created partitions is number of specified
  46. * keys + 1.
  47. *
  48. * Generated from protobuf field <code>repeated .Ydb.TypedValue split_points = 1;</code>
  49. * @return \Google\Protobuf\Internal\RepeatedField
  50. */
  51. public function getSplitPoints()
  52. {
  53. return $this->split_points;
  54. }
  55. /**
  56. * Specify key values used to split table into partitions.
  57. * Each value becomes the first key of a new partition.
  58. * Key values should go in ascending order.
  59. * Total number of created partitions is number of specified
  60. * keys + 1.
  61. *
  62. * Generated from protobuf field <code>repeated .Ydb.TypedValue split_points = 1;</code>
  63. * @param array<\Ydb\TypedValue>|\Google\Protobuf\Internal\RepeatedField $var
  64. * @return $this
  65. */
  66. public function setSplitPoints($var)
  67. {
  68. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TypedValue::class);
  69. $this->split_points = $arr;
  70. return $this;
  71. }
  72. }