AzReadReplicasSettings.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.AzReadReplicasSettings</code>
  10. */
  11. class AzReadReplicasSettings extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * AZ name
  15. *
  16. * Generated from protobuf field <code>string name = 1;</code>
  17. */
  18. protected $name = '';
  19. /**
  20. * Read replicas count in this AZ
  21. *
  22. * Generated from protobuf field <code>uint64 read_replicas_count = 2;</code>
  23. */
  24. protected $read_replicas_count = 0;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type string $name
  32. * AZ name
  33. * @type int|string $read_replicas_count
  34. * Read replicas count in this AZ
  35. * }
  36. */
  37. public function __construct($data = NULL) {
  38. \GPBMetadata\Protos\YdbTable::initOnce();
  39. parent::__construct($data);
  40. }
  41. /**
  42. * AZ name
  43. *
  44. * Generated from protobuf field <code>string name = 1;</code>
  45. * @return string
  46. */
  47. public function getName()
  48. {
  49. return $this->name;
  50. }
  51. /**
  52. * AZ name
  53. *
  54. * Generated from protobuf field <code>string name = 1;</code>
  55. * @param string $var
  56. * @return $this
  57. */
  58. public function setName($var)
  59. {
  60. GPBUtil::checkString($var, True);
  61. $this->name = $var;
  62. return $this;
  63. }
  64. /**
  65. * Read replicas count in this AZ
  66. *
  67. * Generated from protobuf field <code>uint64 read_replicas_count = 2;</code>
  68. * @return int|string
  69. */
  70. public function getReadReplicasCount()
  71. {
  72. return $this->read_replicas_count;
  73. }
  74. /**
  75. * Read replicas count in this AZ
  76. *
  77. * Generated from protobuf field <code>uint64 read_replicas_count = 2;</code>
  78. * @param int|string $var
  79. * @return $this
  80. */
  81. public function setReadReplicasCount($var)
  82. {
  83. GPBUtil::checkUint64($var);
  84. $this->read_replicas_count = $var;
  85. return $this;
  86. }
  87. }