propresenter-php/php/generated/Rv/Data/Graphics/Text/GradientFill.php
2026-03-01 16:12:17 +01:00

97 lines
2.4 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: graphicsData.proto
namespace Rv\Data\Graphics\Text;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.Graphics.Text.GradientFill</code>
*/
class GradientFill extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.rv.data.Graphics.Gradient gradient = 1;</code>
*/
protected $gradient = null;
/**
* Generated from protobuf field <code>bool stretch_to_document_bounds = 2;</code>
*/
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 <code>.rv.data.Graphics.Gradient gradient = 1;</code>
* @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 <code>.rv.data.Graphics.Gradient gradient = 1;</code>
* @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 <code>bool stretch_to_document_bounds = 2;</code>
* @return bool
*/
public function getStretchToDocumentBounds()
{
return $this->stretch_to_document_bounds;
}
/**
* Generated from protobuf field <code>bool stretch_to_document_bounds = 2;</code>
* @param bool $var
* @return $this
*/
public function setStretchToDocumentBounds($var)
{
GPBUtil::checkBool($var);
$this->stretch_to_document_bounds = $var;
return $this;
}
}