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