1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_table.proto
- namespace Ydb\Table;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Table.ClusterReplicasSettings</code>
- */
- class ClusterReplicasSettings extends \Google\Protobuf\Internal\Message
- {
- /**
- * List of read replicas settings for each AZ
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;</code>
- */
- private $az_read_replicas_settings;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Ydb\Table\AzReadReplicasSettings>|\Google\Protobuf\Internal\RepeatedField $az_read_replicas_settings
- * List of read replicas settings for each AZ
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTable::initOnce();
- parent::__construct($data);
- }
- /**
- * List of read replicas settings for each AZ
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAzReadReplicasSettings()
- {
- return $this->az_read_replicas_settings;
- }
- /**
- * List of read replicas settings for each AZ
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;</code>
- * @param array<\Ydb\Table\AzReadReplicasSettings>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAzReadReplicasSettings($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\AzReadReplicasSettings::class);
- $this->az_read_replicas_settings = $arr;
- return $this;
- }
- }
|