Ydb.Discovery.ListEndpointsRequest
*/
class ListEndpointsRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string database = 1;
*/
protected $database = '';
/**
* Generated from protobuf field repeated string service = 2;
*/
private $service;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $database
* @type array|\Google\Protobuf\Internal\RepeatedField $service
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbDiscovery::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string database = 1;
* @return string
*/
public function getDatabase()
{
return $this->database;
}
/**
* Generated from protobuf field string database = 1;
* @param string $var
* @return $this
*/
public function setDatabase($var)
{
GPBUtil::checkString($var, True);
$this->database = $var;
return $this;
}
/**
* Generated from protobuf field repeated string service = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getService()
{
return $this->service;
}
/**
* Generated from protobuf field repeated string service = 2;
* @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;
}
}