Ydb.Table.ReadReplicasSettings */ class ReadReplicasSettings extends \Google\Protobuf\Internal\Message { protected $settings; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $per_az_read_replicas_count * Set equal read replicas count for every AZ * @type int|string $any_az_read_replicas_count * Set total replicas count between all AZs * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * Set equal read replicas count for every AZ * * Generated from protobuf field uint64 per_az_read_replicas_count = 1; * @return int|string */ public function getPerAzReadReplicasCount() { return $this->readOneof(1); } public function hasPerAzReadReplicasCount() { return $this->hasOneof(1); } /** * Set equal read replicas count for every AZ * * Generated from protobuf field uint64 per_az_read_replicas_count = 1; * @param int|string $var * @return $this */ public function setPerAzReadReplicasCount($var) { GPBUtil::checkUint64($var); $this->writeOneof(1, $var); return $this; } /** * Set total replicas count between all AZs * * Generated from protobuf field uint64 any_az_read_replicas_count = 2; * @return int|string */ public function getAnyAzReadReplicasCount() { return $this->readOneof(2); } public function hasAnyAzReadReplicasCount() { return $this->hasOneof(2); } /** * Set total replicas count between all AZs * * Generated from protobuf field uint64 any_az_read_replicas_count = 2; * @param int|string $var * @return $this */ public function setAnyAzReadReplicasCount($var) { GPBUtil::checkUint64($var); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getSettings() { return $this->whichOneof("settings"); } }