/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Discovery/EndpointInfo.php
337 строк
9 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_discovery.proto namespace Ydb\Discovery; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Generated from protobuf message <code>Ydb.Discovery.EndpointInfo</code> */ class EndpointInfo extends \Google\Protobuf\Internal\Message { /** * This is an address (usually fqdn) and port of this node's grpc endpoint * * Generated from protobuf field <code>string address = 1;</code> */ protected $address = ''; /** * Generated from protobuf field <code>uint32 port = 2;</code> */ protected $port = 0; /** * Generated from protobuf field <code>float load_factor = 3;</code> */ protected $load_factor = 0.0; /** * Generated from protobuf field <code>bool ssl = 4;</code> */ protected $ssl = false; /** * Generated from protobuf field <code>repeated string service = 5;</code> */ private $service; /** * Generated from protobuf field <code>string location = 6;</code> */ protected $location = ''; /** * Generated from protobuf field <code>uint32 node_id = 7;</code> */ protected $node_id = 0; /** * Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may * use instead of a dns name in the address field. * * Generated from protobuf field <code>repeated string ip_v4 = 8;</code> */ private $ip_v4; /** * Generated from protobuf field <code>repeated string ip_v6 = 9;</code> */ private $ip_v6; /** * Optional value for grpc.ssl_target_name_override option that must be * used when connecting to this endpoint. This may be specified when an ssl * endpoint is using certificate chain valid for a balancer hostname, and * not this specific node hostname. * * Generated from protobuf field <code>string ssl_target_name_override = 10;</code> */ protected $ssl_target_name_override = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $address * This is an address (usually fqdn) and port of this node's grpc endpoint * @type int $port * @type float $load_factor * @type bool $ssl * @type array<string>|\Google\Protobuf\Internal\RepeatedField $service * @type string $location * @type int $node_id * @type array<string>|\Google\Protobuf\Internal\RepeatedField $ip_v4 * Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may * use instead of a dns name in the address field. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $ip_v6 * @type string $ssl_target_name_override * Optional value for grpc.ssl_target_name_override option that must be * used when connecting to this endpoint. This may be specified when an ssl * endpoint is using certificate chain valid for a balancer hostname, and * not this specific node hostname. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbDiscovery::initOnce(); parent::__construct($data); } /** * This is an address (usually fqdn) and port of this node's grpc endpoint * * Generated from protobuf field <code>string address = 1;</code> * @return string */ public function getAddress() { return $this->address; } /** * This is an address (usually fqdn) and port of this node's grpc endpoint * * Generated from protobuf field <code>string address = 1;</code> * @param string $var * @return $this */ public function setAddress($var) { GPBUtil::checkString($var, True); $this->address = $var; return $this; } /** * Generated from protobuf field <code>uint32 port = 2;</code> * @return int */ public function getPort() { return $this->port; } /** * Generated from protobuf field <code>uint32 port = 2;</code> * @param int $var * @return $this */ public function setPort($var) { GPBUtil::checkUint32($var); $this->port = $var; return $this; } /** * Generated from protobuf field <code>float load_factor = 3;</code> * @return float */ public function getLoadFactor() { return $this->load_factor; } /** * Generated from protobuf field <code>float load_factor = 3;</code> * @param float $var * @return $this */ public function setLoadFactor($var) { GPBUtil::checkFloat($var); $this->load_factor = $var; return $this; } /** * Generated from protobuf field <code>bool ssl = 4;</code> * @return bool */ public function getSsl() { return $this->ssl; } /** * Generated from protobuf field <code>bool ssl = 4;</code> * @param bool $var * @return $this */ public function setSsl($var) { GPBUtil::checkBool($var); $this->ssl = $var; return $this; } /** * Generated from protobuf field <code>repeated string service = 5;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getService() { return $this->service; } /** * Generated from protobuf field <code>repeated string service = 5;</code> * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setService($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->service = $arr; return $this; } /** * Generated from protobuf field <code>string location = 6;</code> * @return string */ public function getLocation() { return $this->location; } /** * Generated from protobuf field <code>string location = 6;</code> * @param string $var * @return $this */ public function setLocation($var) { GPBUtil::checkString($var, True); $this->location = $var; return $this; } /** * Generated from protobuf field <code>uint32 node_id = 7;</code> * @return int */ public function getNodeId() { return $this->node_id; } /** * Generated from protobuf field <code>uint32 node_id = 7;</code> * @param int $var * @return $this */ public function setNodeId($var) { GPBUtil::checkUint32($var); $this->node_id = $var; return $this; } /** * Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may * use instead of a dns name in the address field. * * Generated from protobuf field <code>repeated string ip_v4 = 8;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getIpV4() { return $this->ip_v4; } /** * Optional ipv4 and/or ipv6 addresses of the endpoint, which clients may * use instead of a dns name in the address field. * * Generated from protobuf field <code>repeated string ip_v4 = 8;</code> * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIpV4($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->ip_v4 = $arr; return $this; } /** * Generated from protobuf field <code>repeated string ip_v6 = 9;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getIpV6() { return $this->ip_v6; } /** * Generated from protobuf field <code>repeated string ip_v6 = 9;</code> * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIpV6($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->ip_v6 = $arr; return $this; } /** * Optional value for grpc.ssl_target_name_override option that must be * used when connecting to this endpoint. This may be specified when an ssl * endpoint is using certificate chain valid for a balancer hostname, and * not this specific node hostname. * * Generated from protobuf field <code>string ssl_target_name_override = 10;</code> * @return string */ public function getSslTargetNameOverride() { return $this->ssl_target_name_override; } /** * Optional value for grpc.ssl_target_name_override option that must be * used when connecting to this endpoint. This may be specified when an ssl * endpoint is using certificate chain valid for a balancer hostname, and * not this specific node hostname. * * Generated from protobuf field <code>string ssl_target_name_override = 10;</code> * @param string $var * @return $this */ public function setSslTargetNameOverride($var) { GPBUtil::checkString($var, True); $this->ssl_target_name_override = $var; return $this; } }