rv.data.Layer */ class Layer 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 .rv.data.Color color = 3; */ protected $color = null; /** * Generated from protobuf field bool muted = 4; */ protected $muted = false; /** * Generated from protobuf field bool hidden = 5; */ protected $hidden = false; /** * Generated from protobuf field .rv.data.Layer.BlendMode blend_mode = 6; */ protected $blend_mode = 0; /** * Generated from protobuf field double opacity = 7; */ protected $opacity = 0.0; /** * Generated from protobuf field .rv.data.UUID selected_target_set_uuid = 8; */ protected $selected_target_set_uuid = null; /** * Generated from protobuf field .rv.data.UUID effects_preset_uuid = 9; */ protected $effects_preset_uuid = null; /** * Generated from protobuf field double effects_build_duration = 10; */ protected $effects_build_duration = 0.0; /** * Generated from protobuf field .rv.data.UUID layer_preset_uuid = 11; */ protected $layer_preset_uuid = null; /** * Generated from protobuf field .rv.data.HotKey hot_key = 12; */ protected $hot_key = null; /** * Generated from protobuf field .rv.data.Transition transition = 13; */ protected $transition = null; /** * Generated from protobuf field repeated .rv.data.Effect effects = 14; */ private $effects; /** * Generated from protobuf field .rv.data.Layer.Blending blend = 15; */ protected $blend = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\UUID $uuid * @type string $name * @type \Rv\Data\Color $color * @type bool $muted * @type bool $hidden * @type int $blend_mode * @type float $opacity * @type \Rv\Data\UUID $selected_target_set_uuid * @type \Rv\Data\UUID $effects_preset_uuid * @type float $effects_build_duration * @type \Rv\Data\UUID $layer_preset_uuid * @type \Rv\Data\HotKey $hot_key * @type \Rv\Data\Transition $transition * @type array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $effects * @type \Rv\Data\Layer\Blending $blend * } */ public function __construct($data = NULL) { \GPBMetadata\Layers::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 .rv.data.Color color = 3; * @return \Rv\Data\Color|null */ public function getColor() { return $this->color; } public function hasColor() { return isset($this->color); } public function clearColor() { unset($this->color); } /** * Generated from protobuf field .rv.data.Color color = 3; * @param \Rv\Data\Color $var * @return $this */ public function setColor($var) { GPBUtil::checkMessage($var, \Rv\Data\Color::class); $this->color = $var; return $this; } /** * Generated from protobuf field bool muted = 4; * @return bool */ public function getMuted() { return $this->muted; } /** * Generated from protobuf field bool muted = 4; * @param bool $var * @return $this */ public function setMuted($var) { GPBUtil::checkBool($var); $this->muted = $var; return $this; } /** * Generated from protobuf field bool hidden = 5; * @return bool */ public function getHidden() { return $this->hidden; } /** * Generated from protobuf field bool hidden = 5; * @param bool $var * @return $this */ public function setHidden($var) { GPBUtil::checkBool($var); $this->hidden = $var; return $this; } /** * Generated from protobuf field .rv.data.Layer.BlendMode blend_mode = 6; * @return int */ public function getBlendMode() { return $this->blend_mode; } /** * Generated from protobuf field .rv.data.Layer.BlendMode blend_mode = 6; * @param int $var * @return $this */ public function setBlendMode($var) { GPBUtil::checkEnum($var, \Rv\Data\Layer\BlendMode::class); $this->blend_mode = $var; return $this; } /** * Generated from protobuf field double opacity = 7; * @return float */ public function getOpacity() { return $this->opacity; } /** * Generated from protobuf field double opacity = 7; * @param float $var * @return $this */ public function setOpacity($var) { GPBUtil::checkDouble($var); $this->opacity = $var; return $this; } /** * Generated from protobuf field .rv.data.UUID selected_target_set_uuid = 8; * @return \Rv\Data\UUID|null */ public function getSelectedTargetSetUuid() { return $this->selected_target_set_uuid; } public function hasSelectedTargetSetUuid() { return isset($this->selected_target_set_uuid); } public function clearSelectedTargetSetUuid() { unset($this->selected_target_set_uuid); } /** * Generated from protobuf field .rv.data.UUID selected_target_set_uuid = 8; * @param \Rv\Data\UUID $var * @return $this */ public function setSelectedTargetSetUuid($var) { GPBUtil::checkMessage($var, \Rv\Data\UUID::class); $this->selected_target_set_uuid = $var; return $this; } /** * Generated from protobuf field .rv.data.UUID effects_preset_uuid = 9; * @return \Rv\Data\UUID|null */ public function getEffectsPresetUuid() { return $this->effects_preset_uuid; } public function hasEffectsPresetUuid() { return isset($this->effects_preset_uuid); } public function clearEffectsPresetUuid() { unset($this->effects_preset_uuid); } /** * Generated from protobuf field .rv.data.UUID effects_preset_uuid = 9; * @param \Rv\Data\UUID $var * @return $this */ public function setEffectsPresetUuid($var) { GPBUtil::checkMessage($var, \Rv\Data\UUID::class); $this->effects_preset_uuid = $var; return $this; } /** * Generated from protobuf field double effects_build_duration = 10; * @return float */ public function getEffectsBuildDuration() { return $this->effects_build_duration; } /** * Generated from protobuf field double effects_build_duration = 10; * @param float $var * @return $this */ public function setEffectsBuildDuration($var) { GPBUtil::checkDouble($var); $this->effects_build_duration = $var; return $this; } /** * Generated from protobuf field .rv.data.UUID layer_preset_uuid = 11; * @return \Rv\Data\UUID|null */ public function getLayerPresetUuid() { return $this->layer_preset_uuid; } public function hasLayerPresetUuid() { return isset($this->layer_preset_uuid); } public function clearLayerPresetUuid() { unset($this->layer_preset_uuid); } /** * Generated from protobuf field .rv.data.UUID layer_preset_uuid = 11; * @param \Rv\Data\UUID $var * @return $this */ public function setLayerPresetUuid($var) { GPBUtil::checkMessage($var, \Rv\Data\UUID::class); $this->layer_preset_uuid = $var; return $this; } /** * Generated from protobuf field .rv.data.HotKey hot_key = 12; * @return \Rv\Data\HotKey|null */ public function getHotKey() { return $this->hot_key; } public function hasHotKey() { return isset($this->hot_key); } public function clearHotKey() { unset($this->hot_key); } /** * Generated from protobuf field .rv.data.HotKey hot_key = 12; * @param \Rv\Data\HotKey $var * @return $this */ public function setHotKey($var) { GPBUtil::checkMessage($var, \Rv\Data\HotKey::class); $this->hot_key = $var; return $this; } /** * Generated from protobuf field .rv.data.Transition transition = 13; * @return \Rv\Data\Transition|null */ public function getTransition() { return $this->transition; } public function hasTransition() { return isset($this->transition); } public function clearTransition() { unset($this->transition); } /** * Generated from protobuf field .rv.data.Transition transition = 13; * @param \Rv\Data\Transition $var * @return $this */ public function setTransition($var) { GPBUtil::checkMessage($var, \Rv\Data\Transition::class); $this->transition = $var; return $this; } /** * Generated from protobuf field repeated .rv.data.Effect effects = 14; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEffects() { return $this->effects; } /** * Generated from protobuf field repeated .rv.data.Effect effects = 14; * @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; } /** * Generated from protobuf field .rv.data.Layer.Blending blend = 15; * @return \Rv\Data\Layer\Blending|null */ public function getBlend() { return $this->blend; } public function hasBlend() { return isset($this->blend); } public function clearBlend() { unset($this->blend); } /** * Generated from protobuf field .rv.data.Layer.Blending blend = 15; * @param \Rv\Data\Layer\Blending $var * @return $this */ public function setBlend($var) { GPBUtil::checkMessage($var, \Rv\Data\Layer\Blending::class); $this->blend = $var; return $this; } }