rv.data.Graphics.Text.GradientFill */ class GradientFill extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .rv.data.Graphics.Gradient gradient = 1; */ protected $gradient = null; /** * Generated from protobuf field bool stretch_to_document_bounds = 2; */ protected $stretch_to_document_bounds = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Rv\Data\Graphics\Gradient $gradient * @type bool $stretch_to_document_bounds * } */ public function __construct($data = NULL) { \GPBMetadata\GraphicsData::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .rv.data.Graphics.Gradient gradient = 1; * @return \Rv\Data\Graphics\Gradient|null */ public function getGradient() { return $this->gradient; } public function hasGradient() { return isset($this->gradient); } public function clearGradient() { unset($this->gradient); } /** * Generated from protobuf field .rv.data.Graphics.Gradient gradient = 1; * @param \Rv\Data\Graphics\Gradient $var * @return $this */ public function setGradient($var) { GPBUtil::checkMessage($var, \Rv\Data\Graphics\Gradient::class); $this->gradient = $var; return $this; } /** * Generated from protobuf field bool stretch_to_document_bounds = 2; * @return bool */ public function getStretchToDocumentBounds() { return $this->stretch_to_document_bounds; } /** * Generated from protobuf field bool stretch_to_document_bounds = 2; * @param bool $var * @return $this */ public function setStretchToDocumentBounds($var) { GPBUtil::checkBool($var); $this->stretch_to_document_bounds = $var; return $this; } }