<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: protos/ydb_cms.proto namespace Ydb\Cms; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Generated from protobuf message <code>Ydb.Cms.StorageUnitDescription</code> */ class StorageUnitDescription extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field <code>string kind = 1;</code> */ protected $kind = ''; /** * Generated from protobuf field <code>map<string, string> labels = 2;</code> */ private $labels; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $kind * @type array|\Google\Protobuf\Internal\MapField $labels * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbCms::initOnce(); parent::__construct($data); } /** * Generated from protobuf field <code>string kind = 1;</code> * @return string */ public function getKind() { return $this->kind; } /** * Generated from protobuf field <code>string kind = 1;</code> * @param string $var * @return $this */ public function setKind($var) { GPBUtil::checkString($var, True); $this->kind = $var; return $this; } /** * Generated from protobuf field <code>map<string, string> labels = 2;</code> * @return \Google\Protobuf\Internal\MapField */ public function getLabels() { return $this->labels; } /** * Generated from protobuf field <code>map<string, string> labels = 2;</code> * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setLabels($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->labels = $arr; return $this; } }