<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: analyticsTrigger.proto

namespace Rv\Analytics\Trigger\Cue\Slide;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>rv.analytics.Trigger.Cue.Slide.ScrollingTextElement</code>
 */
class ScrollingTextElement extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.Direction direction = 1;</code>
     */
    protected $direction = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.StartPosition start_position = 2;</code>
     */
    protected $start_position = 0;
    /**
     * Generated from protobuf field <code>bool is_repeat_enabled = 3;</code>
     */
    protected $is_repeat_enabled = false;
    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.Speed speed = 4;</code>
     */
    protected $speed = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.DestinationLayer destination_layer = 5;</code>
     */
    protected $destination_layer = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $direction
     *     @type int $start_position
     *     @type bool $is_repeat_enabled
     *     @type int $speed
     *     @type int $destination_layer
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTrigger::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.Direction direction = 1;</code>
     * @return int
     */
    public function getDirection()
    {
        return $this->direction;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.Direction direction = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setDirection($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trigger\Cue\Slide\ScrollingTextElement\Direction::class);
        $this->direction = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.StartPosition start_position = 2;</code>
     * @return int
     */
    public function getStartPosition()
    {
        return $this->start_position;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.StartPosition start_position = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setStartPosition($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trigger\Cue\Slide\ScrollingTextElement\StartPosition::class);
        $this->start_position = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_repeat_enabled = 3;</code>
     * @return bool
     */
    public function getIsRepeatEnabled()
    {
        return $this->is_repeat_enabled;
    }

    /**
     * Generated from protobuf field <code>bool is_repeat_enabled = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsRepeatEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->is_repeat_enabled = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.Speed speed = 4;</code>
     * @return int
     */
    public function getSpeed()
    {
        return $this->speed;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.ScrollingTextElement.Speed speed = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setSpeed($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trigger\Cue\Slide\ScrollingTextElement\Speed::class);
        $this->speed = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.DestinationLayer destination_layer = 5;</code>
     * @return int
     */
    public function getDestinationLayer()
    {
        return $this->destination_layer;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Trigger.Cue.Slide.DestinationLayer destination_layer = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setDestinationLayer($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trigger\Cue\Slide\DestinationLayer::class);
        $this->destination_layer = $var;

        return $this;
    }

}

