ReadReplicasSettings.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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.ReadReplicasSettings</code>
  10. */
  11. class ReadReplicasSettings extends \Google\Protobuf\Internal\Message
  12. {
  13. protected $settings;
  14. /**
  15. * Constructor.
  16. *
  17. * @param array $data {
  18. * Optional. Data for populating the Message object.
  19. *
  20. * @type int|string $per_az_read_replicas_count
  21. * Set equal read replicas count for every AZ
  22. * @type int|string $any_az_read_replicas_count
  23. * Set total replicas count between all AZs
  24. * }
  25. */
  26. public function __construct($data = NULL) {
  27. \GPBMetadata\Protos\YdbTable::initOnce();
  28. parent::__construct($data);
  29. }
  30. /**
  31. * Set equal read replicas count for every AZ
  32. *
  33. * Generated from protobuf field <code>uint64 per_az_read_replicas_count = 1;</code>
  34. * @return int|string
  35. */
  36. public function getPerAzReadReplicasCount()
  37. {
  38. return $this->readOneof(1);
  39. }
  40. public function hasPerAzReadReplicasCount()
  41. {
  42. return $this->hasOneof(1);
  43. }
  44. /**
  45. * Set equal read replicas count for every AZ
  46. *
  47. * Generated from protobuf field <code>uint64 per_az_read_replicas_count = 1;</code>
  48. * @param int|string $var
  49. * @return $this
  50. */
  51. public function setPerAzReadReplicasCount($var)
  52. {
  53. GPBUtil::checkUint64($var);
  54. $this->writeOneof(1, $var);
  55. return $this;
  56. }
  57. /**
  58. * Set total replicas count between all AZs
  59. *
  60. * Generated from protobuf field <code>uint64 any_az_read_replicas_count = 2;</code>
  61. * @return int|string
  62. */
  63. public function getAnyAzReadReplicasCount()
  64. {
  65. return $this->readOneof(2);
  66. }
  67. public function hasAnyAzReadReplicasCount()
  68. {
  69. return $this->hasOneof(2);
  70. }
  71. /**
  72. * Set total replicas count between all AZs
  73. *
  74. * Generated from protobuf field <code>uint64 any_az_read_replicas_count = 2;</code>
  75. * @param int|string $var
  76. * @return $this
  77. */
  78. public function setAnyAzReadReplicasCount($var)
  79. {
  80. GPBUtil::checkUint64($var);
  81. $this->writeOneof(2, $var);
  82. return $this;
  83. }
  84. /**
  85. * @return string
  86. */
  87. public function getSettings()
  88. {
  89. return $this->whichOneof("settings");
  90. }
  91. }