Ydb.Discovery.EndpointInfo */ 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 string address = 1; */ protected $address = ''; /** * Generated from protobuf field uint32 port = 2; */ protected $port = 0; /** * Generated from protobuf field float load_factor = 3; */ protected $load_factor = 0.0; /** * Generated from protobuf field bool ssl = 4; */ protected $ssl = false; /** * Generated from protobuf field repeated string service = 5; */ private $service; /** * Generated from protobuf field string location = 6; */ protected $location = ''; /** * Generated from protobuf field uint32 node_id = 7; */ 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 repeated string ip_v4 = 8; */ private $ip_v4; /** * Generated from protobuf field repeated string ip_v6 = 9; */ 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 string ssl_target_name_override = 10; */ 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|\Google\Protobuf\Internal\RepeatedField $service * @type string $location * @type int $node_id * @type array|\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|\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 string address = 1; * @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 string address = 1; * @param string $var * @return $this */ public function setAddress($var) { GPBUtil::checkString($var, True); $this->address = $var; return $this; } /** * Generated from protobuf field uint32 port = 2; * @return int */ public function getPort() { return $this->port; } /** * Generated from protobuf field uint32 port = 2; * @param int $var * @return $this */ public function setPort($var) { GPBUtil::checkUint32($var); $this->port = $var; return $this; } /** * Generated from protobuf field float load_factor = 3; * @return float */ public function getLoadFactor() { return $this->load_factor; } /** * Generated from protobuf field float load_factor = 3; * @param float $var * @return $this */ public function setLoadFactor($var) { GPBUtil::checkFloat($var); $this->load_factor = $var; return $this; } /** * Generated from protobuf field bool ssl = 4; * @return bool */ public function getSsl() { return $this->ssl; } /** * Generated from protobuf field bool ssl = 4; * @param bool $var * @return $this */ public function setSsl($var) { GPBUtil::checkBool($var); $this->ssl = $var; return $this; } /** * Generated from protobuf field repeated string service = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getService() { return $this->service; } /** * Generated from protobuf field repeated string service = 5; * @param array|\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 string location = 6; * @return string */ public function getLocation() { return $this->location; } /** * Generated from protobuf field string location = 6; * @param string $var * @return $this */ public function setLocation($var) { GPBUtil::checkString($var, True); $this->location = $var; return $this; } /** * Generated from protobuf field uint32 node_id = 7; * @return int */ public function getNodeId() { return $this->node_id; } /** * Generated from protobuf field uint32 node_id = 7; * @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 repeated string ip_v4 = 8; * @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 repeated string ip_v4 = 8; * @param array|\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 repeated string ip_v6 = 9; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIpV6() { return $this->ip_v6; } /** * Generated from protobuf field repeated string ip_v6 = 9; * @param array|\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 string ssl_target_name_override = 10; * @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 string ssl_target_name_override = 10; * @param string $var * @return $this */ public function setSslTargetNameOverride($var) { GPBUtil::checkString($var, True); $this->ssl_target_name_override = $var; return $this; } }