ClusterReplicasSettings.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.ClusterReplicasSettings</code>
  10. */
  11. class ClusterReplicasSettings extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * List of read replicas settings for each AZ
  15. *
  16. * Generated from protobuf field <code>repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;</code>
  17. */
  18. private $az_read_replicas_settings;
  19. /**
  20. * Constructor.
  21. *
  22. * @param array $data {
  23. * Optional. Data for populating the Message object.
  24. *
  25. * @type array<\Ydb\Table\AzReadReplicasSettings>|\Google\Protobuf\Internal\RepeatedField $az_read_replicas_settings
  26. * List of read replicas settings for each AZ
  27. * }
  28. */
  29. public function __construct($data = NULL) {
  30. \GPBMetadata\Protos\YdbTable::initOnce();
  31. parent::__construct($data);
  32. }
  33. /**
  34. * List of read replicas settings for each AZ
  35. *
  36. * Generated from protobuf field <code>repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;</code>
  37. * @return \Google\Protobuf\Internal\RepeatedField
  38. */
  39. public function getAzReadReplicasSettings()
  40. {
  41. return $this->az_read_replicas_settings;
  42. }
  43. /**
  44. * List of read replicas settings for each AZ
  45. *
  46. * Generated from protobuf field <code>repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;</code>
  47. * @param array<\Ydb\Table\AzReadReplicasSettings>|\Google\Protobuf\Internal\RepeatedField $var
  48. * @return $this
  49. */
  50. public function setAzReadReplicasSettings($var)
  51. {
  52. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\AzReadReplicasSettings::class);
  53. $this->az_read_replicas_settings = $arr;
  54. return $this;
  55. }
  56. }