Ydb.Discovery.ListEndpointsResult */ class ListEndpointsResult extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field repeated .Ydb.Discovery.EndpointInfo endpoints = 1; */ private $endpoints; /** * Generated from protobuf field string self_location = 2; */ protected $self_location = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Ydb\Discovery\EndpointInfo>|\Google\Protobuf\Internal\RepeatedField $endpoints * @type string $self_location * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbDiscovery::initOnce(); parent::__construct($data); } /** * Generated from protobuf field repeated .Ydb.Discovery.EndpointInfo endpoints = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEndpoints() { return $this->endpoints; } /** * Generated from protobuf field repeated .Ydb.Discovery.EndpointInfo endpoints = 1; * @param array<\Ydb\Discovery\EndpointInfo>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEndpoints($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Discovery\EndpointInfo::class); $this->endpoints = $arr; return $this; } /** * Generated from protobuf field string self_location = 2; * @return string */ public function getSelfLocation() { return $this->self_location; } /** * Generated from protobuf field string self_location = 2; * @param string $var * @return $this */ public function setSelfLocation($var) { GPBUtil::checkString($var, True); $this->self_location = $var; return $this; } }