rv.data.Graphics.Stroke */ class Stroke extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Graphics.Stroke.Style style = 1; */ protected $style = 0; /** * Generated from protobuf field double width = 2; */ protected $width = 0.0; /** * Generated from protobuf field .rv.data.Color color = 3; */ protected $color = null; /** * Generated from protobuf field repeated double pattern = 4; */ private $pattern; /** * Generated from protobuf field bool enable = 5; */ protected $enable = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $style * @type float $width * @type \Rv\Data\Color $color * @type array|\Google\Protobuf\Internal\RepeatedField $pattern * @type bool $enable * } */ public function __construct($data = NULL) { \GPBMetadata\GraphicsData::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.Graphics.Stroke.Style style = 1; * @return int */ public function getStyle() { return $this->style; } /** * Generated from protobuf field .rv.data.Graphics.Stroke.Style style = 1; * @param int $var * @return $this */ public function setStyle($var) { GPBUtil::checkEnum($var, \Rv\Data\Graphics\Stroke\Style::class); $this->style = $var; return $this; } /** * Generated from protobuf field double width = 2; * @return float */ public function getWidth() { return $this->width; } /** * Generated from protobuf field double width = 2; * @param float $var * @return $this */ public function setWidth($var) { GPBUtil::checkDouble($var); $this->width = $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 repeated double pattern = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPattern() { return $this->pattern; } /** * Generated from protobuf field repeated double pattern = 4; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPattern($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); $this->pattern = $arr; return $this; } /** * Generated from protobuf field bool enable = 5; * @return bool */ public function getEnable() { return $this->enable; } /** * Generated from protobuf field bool enable = 5; * @param bool $var * @return $this */ public function setEnable($var) { GPBUtil::checkBool($var); $this->enable = $var; return $this; } }