rv.data.MacrosDocument.MacroCollection
*/
class MacroCollection extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.UUID uuid = 1;
*/
protected $uuid = null;
/**
* Generated from protobuf field string name = 2;
*/
protected $name = '';
/**
* Generated from protobuf field repeated .rv.data.MacrosDocument.MacroCollection.Item items = 3;
*/
private $items;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\UUID $uuid
* @type string $name
* @type array<\Rv\Data\MacrosDocument\MacroCollection\Item>|\Google\Protobuf\Internal\RepeatedField $items
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Macros::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.UUID uuid = 1;
* @return \Rv\Data\UUID|null
*/
public function getUuid()
{
return $this->uuid;
}
public function hasUuid()
{
return isset($this->uuid);
}
public function clearUuid()
{
unset($this->uuid);
}
/**
* Generated from protobuf field .rv.data.UUID uuid = 1;
* @param \Rv\Data\UUID $var
* @return $this
*/
public function setUuid($var)
{
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
$this->uuid = $var;
return $this;
}
/**
* Generated from protobuf field string name = 2;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 2;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.MacrosDocument.MacroCollection.Item items = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getItems()
{
return $this->items;
}
/**
* Generated from protobuf field repeated .rv.data.MacrosDocument.MacroCollection.Item items = 3;
* @param array<\Rv\Data\MacrosDocument\MacroCollection\Item>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setItems($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\MacrosDocument\MacroCollection\Item::class);
$this->items = $arr;
return $this;
}
}