rv.data.Graphics.Shadow
*/
class Shadow extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.Graphics.Shadow.Style style = 1;
*/
protected $style = 0;
/**
* Generated from protobuf field double angle = 2;
*/
protected $angle = 0.0;
/**
* Generated from protobuf field double offset = 3;
*/
protected $offset = 0.0;
/**
* Generated from protobuf field double radius = 4;
*/
protected $radius = 0.0;
/**
* Generated from protobuf field .rv.data.Color color = 5;
*/
protected $color = null;
/**
* Generated from protobuf field double opacity = 6;
*/
protected $opacity = 0.0;
/**
* Generated from protobuf field bool enable = 7;
*/
protected $enable = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $style
* @type float $angle
* @type float $offset
* @type float $radius
* @type \Rv\Data\Color $color
* @type float $opacity
* @type bool $enable
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\GraphicsData::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.Graphics.Shadow.Style style = 1;
* @return int
*/
public function getStyle()
{
return $this->style;
}
/**
* Generated from protobuf field .rv.data.Graphics.Shadow.Style style = 1;
* @param int $var
* @return $this
*/
public function setStyle($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Graphics\Shadow\Style::class);
$this->style = $var;
return $this;
}
/**
* Generated from protobuf field double angle = 2;
* @return float
*/
public function getAngle()
{
return $this->angle;
}
/**
* Generated from protobuf field double angle = 2;
* @param float $var
* @return $this
*/
public function setAngle($var)
{
GPBUtil::checkDouble($var);
$this->angle = $var;
return $this;
}
/**
* Generated from protobuf field double offset = 3;
* @return float
*/
public function getOffset()
{
return $this->offset;
}
/**
* Generated from protobuf field double offset = 3;
* @param float $var
* @return $this
*/
public function setOffset($var)
{
GPBUtil::checkDouble($var);
$this->offset = $var;
return $this;
}
/**
* Generated from protobuf field double radius = 4;
* @return float
*/
public function getRadius()
{
return $this->radius;
}
/**
* Generated from protobuf field double radius = 4;
* @param float $var
* @return $this
*/
public function setRadius($var)
{
GPBUtil::checkDouble($var);
$this->radius = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Color color = 5;
* @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 = 5;
* @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 double opacity = 6;
* @return float
*/
public function getOpacity()
{
return $this->opacity;
}
/**
* Generated from protobuf field double opacity = 6;
* @param float $var
* @return $this
*/
public function setOpacity($var)
{
GPBUtil::checkDouble($var);
$this->opacity = $var;
return $this;
}
/**
* Generated from protobuf field bool enable = 7;
* @return bool
*/
public function getEnable()
{
return $this->enable;
}
/**
* Generated from protobuf field bool enable = 7;
* @param bool $var
* @return $this
*/
public function setEnable($var)
{
GPBUtil::checkBool($var);
$this->enable = $var;
return $this;
}
}