rv.data.Graphics.Path.Shape */ class Shape extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Type type = 1; */ protected $type = 0; protected $AdditionalData; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $type * @type \Rv\Data\Graphics\Path\Shape\RoundedRectangle $rounded_rectangle * @type \Rv\Data\Graphics\Path\Shape\Polygon $polygon * @type \Rv\Data\Graphics\Path\Shape\Star $star * @type \Rv\Data\Graphics\Path\Shape\Arrow $arrow * } */ public function __construct($data = NULL) { \GPBMetadata\GraphicsData::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Type type = 1; * @return int */ public function getType() { return $this->type; } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Type type = 1; * @param int $var * @return $this */ public function setType($var) { GPBUtil::checkEnum($var, \Rv\Data\Graphics\Path\Shape\Type::class); $this->type = $var; return $this; } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.RoundedRectangle rounded_rectangle = 2; * @return \Rv\Data\Graphics\Path\Shape\RoundedRectangle|null */ public function getRoundedRectangle() { return $this->readOneof(2); } public function hasRoundedRectangle() { return $this->hasOneof(2); } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.RoundedRectangle rounded_rectangle = 2; * @param \Rv\Data\Graphics\Path\Shape\RoundedRectangle $var * @return $this */ public function setRoundedRectangle($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path\Shape\RoundedRectangle::class); $this->writeOneof(2, $var); return $this; } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Polygon polygon = 3; * @return \Rv\Data\Graphics\Path\Shape\Polygon|null */ public function getPolygon() { return $this->readOneof(3); } public function hasPolygon() { return $this->hasOneof(3); } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Polygon polygon = 3; * @param \Rv\Data\Graphics\Path\Shape\Polygon $var * @return $this */ public function setPolygon($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path\Shape\Polygon::class); $this->writeOneof(3, $var); return $this; } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Star star = 4; * @return \Rv\Data\Graphics\Path\Shape\Star|null */ public function getStar() { return $this->readOneof(4); } public function hasStar() { return $this->hasOneof(4); } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Star star = 4; * @param \Rv\Data\Graphics\Path\Shape\Star $var * @return $this */ public function setStar($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path\Shape\Star::class); $this->writeOneof(4, $var); return $this; } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Arrow arrow = 5; * @return \Rv\Data\Graphics\Path\Shape\Arrow|null */ public function getArrow() { return $this->readOneof(5); } public function hasArrow() { return $this->hasOneof(5); } /** * Generated from protobuf field .rv.data.Graphics.Path.Shape.Arrow arrow = 5; * @param \Rv\Data\Graphics\Path\Shape\Arrow $var * @return $this */ public function setArrow($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Path\Shape\Arrow::class); $this->writeOneof(5, $var); return $this; } /** * @return string */ public function getAdditionalData() { return $this->whichOneof("AdditionalData"); } }