252 lines
6.4 KiB
PHP
252 lines
6.4 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: preferences.proto
|
|
|
|
namespace Rv\Data\Preferences;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Preferences.Import</code>
|
|
*/
|
|
class Import extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.ScaleBehavior foreground_scaling = 1;</code>
|
|
*/
|
|
protected $foreground_scaling = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool foreground_is_blurred = 6;</code>
|
|
*/
|
|
protected $foreground_is_blurred = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.ScaleBehavior background_scaling = 2;</code>
|
|
*/
|
|
protected $background_scaling = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool background_is_blurred = 7;</code>
|
|
*/
|
|
protected $background_is_blurred = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Preferences.Import.Image image = 3;</code>
|
|
*/
|
|
protected $image = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Preferences.Import.Video video = 4;</code>
|
|
*/
|
|
protected $video = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Preferences.Import.Audio audio = 5;</code>
|
|
*/
|
|
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 <code>.rv.data.Media.ScaleBehavior foreground_scaling = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getForegroundScaling()
|
|
{
|
|
return $this->foreground_scaling;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.ScaleBehavior foreground_scaling = 1;</code>
|
|
* @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 <code>bool foreground_is_blurred = 6;</code>
|
|
* @return bool
|
|
*/
|
|
public function getForegroundIsBlurred()
|
|
{
|
|
return $this->foreground_is_blurred;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool foreground_is_blurred = 6;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setForegroundIsBlurred($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->foreground_is_blurred = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.ScaleBehavior background_scaling = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getBackgroundScaling()
|
|
{
|
|
return $this->background_scaling;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.ScaleBehavior background_scaling = 2;</code>
|
|
* @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 <code>bool background_is_blurred = 7;</code>
|
|
* @return bool
|
|
*/
|
|
public function getBackgroundIsBlurred()
|
|
{
|
|
return $this->background_is_blurred;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool background_is_blurred = 7;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setBackgroundIsBlurred($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->background_is_blurred = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Preferences.Import.Image image = 3;</code>
|
|
* @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 <code>.rv.data.Preferences.Import.Image image = 3;</code>
|
|
* @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 <code>.rv.data.Preferences.Import.Video video = 4;</code>
|
|
* @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 <code>.rv.data.Preferences.Import.Video video = 4;</code>
|
|
* @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 <code>.rv.data.Preferences.Import.Audio audio = 5;</code>
|
|
* @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 <code>.rv.data.Preferences.Import.Audio audio = 5;</code>
|
|
* @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;
|
|
}
|
|
|
|
}
|
|
|