rv.data.Media.DrawingProperties
*/
class DrawingProperties extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.Media.ScaleBehavior scale_behavior = 1;
*/
protected $scale_behavior = 0;
/**
* Generated from protobuf field bool is_blurred = 16;
*/
protected $is_blurred = false;
/**
* Generated from protobuf field .rv.data.Media.ScaleAlignment scale_alignment = 2;
*/
protected $scale_alignment = 0;
/**
* Generated from protobuf field bool flipped_horizontally = 3;
*/
protected $flipped_horizontally = false;
/**
* Generated from protobuf field bool flipped_vertically = 4;
*/
protected $flipped_vertically = false;
/**
* Generated from protobuf field .rv.data.Graphics.Size natural_size = 5;
*/
protected $natural_size = null;
/**
* Generated from protobuf field double custom_image_rotation = 6;
*/
protected $custom_image_rotation = 0.0;
/**
* Generated from protobuf field .rv.data.Graphics.Rect custom_image_bounds = 7;
*/
protected $custom_image_bounds = null;
/**
* Generated from protobuf field bool custom_image_aspect_locked = 8;
*/
protected $custom_image_aspect_locked = false;
/**
* Generated from protobuf field bool alpha_inverted = 9;
*/
protected $alpha_inverted = false;
/**
* Generated from protobuf field .rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 10;
*/
protected $native_rotation = 0;
/**
* Generated from protobuf field .rv.data.UUID selected_effect_preset_uuid = 11;
*/
protected $selected_effect_preset_uuid = null;
/**
* Generated from protobuf field repeated .rv.data.Effect effects = 12;
*/
private $effects;
/**
* Generated from protobuf field bool crop_enable = 13;
*/
protected $crop_enable = false;
/**
* Generated from protobuf field .rv.data.Graphics.EdgeInsets crop_insets = 14;
*/
protected $crop_insets = null;
/**
* Generated from protobuf field .rv.data.AlphaType alpha_type = 15;
*/
protected $alpha_type = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $scale_behavior
* @type bool $is_blurred
* @type int $scale_alignment
* @type bool $flipped_horizontally
* @type bool $flipped_vertically
* @type \Rv\Data\Graphics\Size $natural_size
* @type float $custom_image_rotation
* @type \Rv\Data\Graphics\Rect $custom_image_bounds
* @type bool $custom_image_aspect_locked
* @type bool $alpha_inverted
* @type int $native_rotation
* @type \Rv\Data\UUID $selected_effect_preset_uuid
* @type array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $effects
* @type bool $crop_enable
* @type \Rv\Data\Graphics\EdgeInsets $crop_insets
* @type int $alpha_type
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\GraphicsData::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.Media.ScaleBehavior scale_behavior = 1;
* @return int
*/
public function getScaleBehavior()
{
return $this->scale_behavior;
}
/**
* Generated from protobuf field .rv.data.Media.ScaleBehavior scale_behavior = 1;
* @param int $var
* @return $this
*/
public function setScaleBehavior($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Media\ScaleBehavior::class);
$this->scale_behavior = $var;
return $this;
}
/**
* Generated from protobuf field bool is_blurred = 16;
* @return bool
*/
public function getIsBlurred()
{
return $this->is_blurred;
}
/**
* Generated from protobuf field bool is_blurred = 16;
* @param bool $var
* @return $this
*/
public function setIsBlurred($var)
{
GPBUtil::checkBool($var);
$this->is_blurred = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Media.ScaleAlignment scale_alignment = 2;
* @return int
*/
public function getScaleAlignment()
{
return $this->scale_alignment;
}
/**
* Generated from protobuf field .rv.data.Media.ScaleAlignment scale_alignment = 2;
* @param int $var
* @return $this
*/
public function setScaleAlignment($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Media\ScaleAlignment::class);
$this->scale_alignment = $var;
return $this;
}
/**
* Generated from protobuf field bool flipped_horizontally = 3;
* @return bool
*/
public function getFlippedHorizontally()
{
return $this->flipped_horizontally;
}
/**
* Generated from protobuf field bool flipped_horizontally = 3;
* @param bool $var
* @return $this
*/
public function setFlippedHorizontally($var)
{
GPBUtil::checkBool($var);
$this->flipped_horizontally = $var;
return $this;
}
/**
* Generated from protobuf field bool flipped_vertically = 4;
* @return bool
*/
public function getFlippedVertically()
{
return $this->flipped_vertically;
}
/**
* Generated from protobuf field bool flipped_vertically = 4;
* @param bool $var
* @return $this
*/
public function setFlippedVertically($var)
{
GPBUtil::checkBool($var);
$this->flipped_vertically = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Size natural_size = 5;
* @return \Rv\Data\Graphics\Size|null
*/
public function getNaturalSize()
{
return $this->natural_size;
}
public function hasNaturalSize()
{
return isset($this->natural_size);
}
public function clearNaturalSize()
{
unset($this->natural_size);
}
/**
* Generated from protobuf field .rv.data.Graphics.Size natural_size = 5;
* @param \Rv\Data\Graphics\Size $var
* @return $this
*/
public function setNaturalSize($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Size::class);
$this->natural_size = $var;
return $this;
}
/**
* Generated from protobuf field double custom_image_rotation = 6;
* @return float
*/
public function getCustomImageRotation()
{
return $this->custom_image_rotation;
}
/**
* Generated from protobuf field double custom_image_rotation = 6;
* @param float $var
* @return $this
*/
public function setCustomImageRotation($var)
{
GPBUtil::checkDouble($var);
$this->custom_image_rotation = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.Rect custom_image_bounds = 7;
* @return \Rv\Data\Graphics\Rect|null
*/
public function getCustomImageBounds()
{
return $this->custom_image_bounds;
}
public function hasCustomImageBounds()
{
return isset($this->custom_image_bounds);
}
public function clearCustomImageBounds()
{
unset($this->custom_image_bounds);
}
/**
* Generated from protobuf field .rv.data.Graphics.Rect custom_image_bounds = 7;
* @param \Rv\Data\Graphics\Rect $var
* @return $this
*/
public function setCustomImageBounds($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Rect::class);
$this->custom_image_bounds = $var;
return $this;
}
/**
* Generated from protobuf field bool custom_image_aspect_locked = 8;
* @return bool
*/
public function getCustomImageAspectLocked()
{
return $this->custom_image_aspect_locked;
}
/**
* Generated from protobuf field bool custom_image_aspect_locked = 8;
* @param bool $var
* @return $this
*/
public function setCustomImageAspectLocked($var)
{
GPBUtil::checkBool($var);
$this->custom_image_aspect_locked = $var;
return $this;
}
/**
* Generated from protobuf field bool alpha_inverted = 9;
* @return bool
*/
public function getAlphaInverted()
{
return $this->alpha_inverted;
}
/**
* Generated from protobuf field bool alpha_inverted = 9;
* @param bool $var
* @return $this
*/
public function setAlphaInverted($var)
{
GPBUtil::checkBool($var);
$this->alpha_inverted = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 10;
* @return int
*/
public function getNativeRotation()
{
return $this->native_rotation;
}
/**
* Generated from protobuf field .rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 10;
* @param int $var
* @return $this
*/
public function setNativeRotation($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Media\DrawingProperties\NativeRotationType::class);
$this->native_rotation = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.UUID selected_effect_preset_uuid = 11;
* @return \Rv\Data\UUID|null
*/
public function getSelectedEffectPresetUuid()
{
return $this->selected_effect_preset_uuid;
}
public function hasSelectedEffectPresetUuid()
{
return isset($this->selected_effect_preset_uuid);
}
public function clearSelectedEffectPresetUuid()
{
unset($this->selected_effect_preset_uuid);
}
/**
* Generated from protobuf field .rv.data.UUID selected_effect_preset_uuid = 11;
* @param \Rv\Data\UUID $var
* @return $this
*/
public function setSelectedEffectPresetUuid($var)
{
GPBUtil::checkMessage($var, \Rv\Data\UUID::class);
$this->selected_effect_preset_uuid = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.Effect effects = 12;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getEffects()
{
return $this->effects;
}
/**
* Generated from protobuf field repeated .rv.data.Effect effects = 12;
* @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 bool crop_enable = 13;
* @return bool
*/
public function getCropEnable()
{
return $this->crop_enable;
}
/**
* Generated from protobuf field bool crop_enable = 13;
* @param bool $var
* @return $this
*/
public function setCropEnable($var)
{
GPBUtil::checkBool($var);
$this->crop_enable = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Graphics.EdgeInsets crop_insets = 14;
* @return \Rv\Data\Graphics\EdgeInsets|null
*/
public function getCropInsets()
{
return $this->crop_insets;
}
public function hasCropInsets()
{
return isset($this->crop_insets);
}
public function clearCropInsets()
{
unset($this->crop_insets);
}
/**
* Generated from protobuf field .rv.data.Graphics.EdgeInsets crop_insets = 14;
* @param \Rv\Data\Graphics\EdgeInsets $var
* @return $this
*/
public function setCropInsets($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\EdgeInsets::class);
$this->crop_insets = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.AlphaType alpha_type = 15;
* @return int
*/
public function getAlphaType()
{
return $this->alpha_type;
}
/**
* Generated from protobuf field .rv.data.AlphaType alpha_type = 15;
* @param int $var
* @return $this
*/
public function setAlphaType($var)
{
GPBUtil::checkEnum($var, \Rv\Data\AlphaType::class);
$this->alpha_type = $var;
return $this;
}
}