rv.data.Preferences.Import */ class Import extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Media.ScaleBehavior foreground_scaling = 1; */ protected $foreground_scaling = 0; /** * Generated from protobuf field bool foreground_is_blurred = 6; */ protected $foreground_is_blurred = false; /** * Generated from protobuf field .rv.data.Media.ScaleBehavior background_scaling = 2; */ protected $background_scaling = 0; /** * Generated from protobuf field bool background_is_blurred = 7; */ protected $background_is_blurred = false; /** * Generated from protobuf field .rv.data.Preferences.Import.Image image = 3; */ protected $image = null; /** * Generated from protobuf field .rv.data.Preferences.Import.Video video = 4; */ protected $video = null; /** * Generated from protobuf field .rv.data.Preferences.Import.Audio audio = 5; */ protected $audio = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $foreground_scaling * @type bool $foreground_is_blurred * @type int $background_scaling * @type bool $background_is_blurred * @type \Rv\Data\Preferences\Import\Image $image * @type \Rv\Data\Preferences\Import\Video $video * @type \Rv\Data\Preferences\Import\Audio $audio * } */ public function __construct($data = NULL) { \GPBMetadata\Preferences::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.Media.ScaleBehavior foreground_scaling = 1; * @return int */ public function getForegroundScaling() { return $this->foreground_scaling; } /** * Generated from protobuf field .rv.data.Media.ScaleBehavior foreground_scaling = 1; * @param int $var * @return $this */ public function setForegroundScaling($var) { GPBUtil::checkEnum($var, \Rv\Data\Media\ScaleBehavior::class); $this->foreground_scaling = $var; return $this; } /** * Generated from protobuf field bool foreground_is_blurred = 6; * @return bool */ public function getForegroundIsBlurred() { return $this->foreground_is_blurred; } /** * Generated from protobuf field bool foreground_is_blurred = 6; * @param bool $var * @return $this */ public function setForegroundIsBlurred($var) { GPBUtil::checkBool($var); $this->foreground_is_blurred = $var; return $this; } /** * Generated from protobuf field .rv.data.Media.ScaleBehavior background_scaling = 2; * @return int */ public function getBackgroundScaling() { return $this->background_scaling; } /** * Generated from protobuf field .rv.data.Media.ScaleBehavior background_scaling = 2; * @param int $var * @return $this */ public function setBackgroundScaling($var) { GPBUtil::checkEnum($var, \Rv\Data\Media\ScaleBehavior::class); $this->background_scaling = $var; return $this; } /** * Generated from protobuf field bool background_is_blurred = 7; * @return bool */ public function getBackgroundIsBlurred() { return $this->background_is_blurred; } /** * Generated from protobuf field bool background_is_blurred = 7; * @param bool $var * @return $this */ public function setBackgroundIsBlurred($var) { GPBUtil::checkBool($var); $this->background_is_blurred = $var; return $this; } /** * Generated from protobuf field .rv.data.Preferences.Import.Image image = 3; * @return \Rv\Data\Preferences\Import\Image|null */ public function getImage() { return $this->image; } public function hasImage() { return isset($this->image); } public function clearImage() { unset($this->image); } /** * Generated from protobuf field .rv.data.Preferences.Import.Image image = 3; * @param \Rv\Data\Preferences\Import\Image $var * @return $this */ public function setImage($var) { GPBUtil::checkMessage($var, \Rv\Data\Preferences\Import\Image::class); $this->image = $var; return $this; } /** * Generated from protobuf field .rv.data.Preferences.Import.Video video = 4; * @return \Rv\Data\Preferences\Import\Video|null */ public function getVideo() { return $this->video; } public function hasVideo() { return isset($this->video); } public function clearVideo() { unset($this->video); } /** * Generated from protobuf field .rv.data.Preferences.Import.Video video = 4; * @param \Rv\Data\Preferences\Import\Video $var * @return $this */ public function setVideo($var) { GPBUtil::checkMessage($var, \Rv\Data\Preferences\Import\Video::class); $this->video = $var; return $this; } /** * Generated from protobuf field .rv.data.Preferences.Import.Audio audio = 5; * @return \Rv\Data\Preferences\Import\Audio|null */ public function getAudio() { return $this->audio; } public function hasAudio() { return isset($this->audio); } public function clearAudio() { unset($this->audio); } /** * Generated from protobuf field .rv.data.Preferences.Import.Audio audio = 5; * @param \Rv\Data\Preferences\Import\Audio $var * @return $this */ public function setAudio($var) { GPBUtil::checkMessage($var, \Rv\Data\Preferences\Import\Audio::class); $this->audio = $var; return $this; } }