123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <?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;
- }
- }
|