/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Table/ReadReplicasSettings.php
105 строк
3 KB
Alexei Shabalin
updated protos
17 фев 2023, 13:31
17 фев 2023, 13:31
ae6a264
Код
Авторство
О чём код?
<?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.ReadReplicasSettings</code> */ 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 <code>uint64 per_az_read_replicas_count = 1;</code> * @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 <code>uint64 per_az_read_replicas_count = 1;</code> * @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 <code>uint64 any_az_read_replicas_count = 2;</code> * @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 <code>uint64 any_az_read_replicas_count = 2;</code> * @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"); } }