rv.data.Slide.Element.DataLink.Ticker
*/
class Ticker extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field double play_rate = 4;
*/
protected $play_rate = 0.0;
/**
* Generated from protobuf field bool should_loop = 5;
*/
protected $should_loop = false;
/**
* Generated from protobuf field double loop_delay = 6;
*/
protected $loop_delay = 0.0;
/**
* Generated from protobuf field string text_delimiter = 7;
*/
protected $text_delimiter = '';
protected $SourceType;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type float $play_rate
* @type bool $should_loop
* @type float $loop_delay
* @type string $text_delimiter
* @type \Rv\Data\Slide\Element\DataLink\Ticker\TextType $text_type
* @type \Rv\Data\Slide\Element\DataLink\Ticker\RSSType $rss_type
* @type \Rv\Data\Slide\Element\DataLink\Ticker\FileType $file_type
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Slide::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field double play_rate = 4;
* @return float
*/
public function getPlayRate()
{
return $this->play_rate;
}
/**
* Generated from protobuf field double play_rate = 4;
* @param float $var
* @return $this
*/
public function setPlayRate($var)
{
GPBUtil::checkDouble($var);
$this->play_rate = $var;
return $this;
}
/**
* Generated from protobuf field bool should_loop = 5;
* @return bool
*/
public function getShouldLoop()
{
return $this->should_loop;
}
/**
* Generated from protobuf field bool should_loop = 5;
* @param bool $var
* @return $this
*/
public function setShouldLoop($var)
{
GPBUtil::checkBool($var);
$this->should_loop = $var;
return $this;
}
/**
* Generated from protobuf field double loop_delay = 6;
* @return float
*/
public function getLoopDelay()
{
return $this->loop_delay;
}
/**
* Generated from protobuf field double loop_delay = 6;
* @param float $var
* @return $this
*/
public function setLoopDelay($var)
{
GPBUtil::checkDouble($var);
$this->loop_delay = $var;
return $this;
}
/**
* Generated from protobuf field string text_delimiter = 7;
* @return string
*/
public function getTextDelimiter()
{
return $this->text_delimiter;
}
/**
* Generated from protobuf field string text_delimiter = 7;
* @param string $var
* @return $this
*/
public function setTextDelimiter($var)
{
GPBUtil::checkString($var, True);
$this->text_delimiter = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Slide.Element.DataLink.Ticker.TextType text_type = 1;
* @return \Rv\Data\Slide\Element\DataLink\Ticker\TextType|null
*/
public function getTextType()
{
return $this->readOneof(1);
}
public function hasTextType()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field .rv.data.Slide.Element.DataLink.Ticker.TextType text_type = 1;
* @param \Rv\Data\Slide\Element\DataLink\Ticker\TextType $var
* @return $this
*/
public function setTextType($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\Ticker\TextType::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.Slide.Element.DataLink.Ticker.RSSType rss_type = 2;
* @return \Rv\Data\Slide\Element\DataLink\Ticker\RSSType|null
*/
public function getRssType()
{
return $this->readOneof(2);
}
public function hasRssType()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .rv.data.Slide.Element.DataLink.Ticker.RSSType rss_type = 2;
* @param \Rv\Data\Slide\Element\DataLink\Ticker\RSSType $var
* @return $this
*/
public function setRssType($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\Ticker\RSSType::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.Slide.Element.DataLink.Ticker.FileType file_type = 3;
* @return \Rv\Data\Slide\Element\DataLink\Ticker\FileType|null
*/
public function getFileType()
{
return $this->readOneof(3);
}
public function hasFileType()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field .rv.data.Slide.Element.DataLink.Ticker.FileType file_type = 3;
* @param \Rv\Data\Slide\Element\DataLink\Ticker\FileType $var
* @return $this
*/
public function setFileType($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\Ticker\FileType::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* @return string
*/
public function getSourceType()
{
return $this->whichOneof("SourceType");
}
}