rv.data.Effect.Preset */ class Preset 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.Effect effects = 3; */ private $effects; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\UUID $uuid * @type string $name * @type array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $effects * } */ public function __construct($data = NULL) { \GPBMetadata\Effects::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.Effect effects = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEffects() { return $this->effects; } /** * Generated from protobuf field repeated .rv.data.Effect effects = 3; * @param array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEffects($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Effect::class); $this->effects = $arr; return $this; } }