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

namespace Rv\Data\Slide\Element\DataLink\VisibilityLink;

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

/**
 * Generated from protobuf message <code>rv.data.Slide.Element.DataLink.VisibilityLink.Condition</code>
 */
class Condition extends \Google\Protobuf\Internal\Message
{
    protected $ConditionType;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\ElementVisibility $element_visibility
     *     @type \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\TimerVisibility $timer_visibility
     *     @type \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\VideoCountdownVisibility $video_countdown_visibility
     *     @type \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\CaptureSessionVisibility $capture_session_visibility
     *     @type \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\VideoInputVisibility $video_input_visibility
     *     @type \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\AudioCountdownVisibility $audio_countdown_visibility
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Slide::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.ElementVisibility element_visibility = 1;</code>
     * @return \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\ElementVisibility|null
     */
    public function getElementVisibility()
    {
        return $this->readOneof(1);
    }

    public function hasElementVisibility()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.ElementVisibility element_visibility = 1;</code>
     * @param \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\ElementVisibility $var
     * @return $this
     */
    public function setElementVisibility($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\ElementVisibility::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.TimerVisibility timer_visibility = 2;</code>
     * @return \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\TimerVisibility|null
     */
    public function getTimerVisibility()
    {
        return $this->readOneof(2);
    }

    public function hasTimerVisibility()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.TimerVisibility timer_visibility = 2;</code>
     * @param \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\TimerVisibility $var
     * @return $this
     */
    public function setTimerVisibility($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\TimerVisibility::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.VideoCountdownVisibility video_countdown_visibility = 3;</code>
     * @return \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\VideoCountdownVisibility|null
     */
    public function getVideoCountdownVisibility()
    {
        return $this->readOneof(3);
    }

    public function hasVideoCountdownVisibility()
    {
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.VideoCountdownVisibility video_countdown_visibility = 3;</code>
     * @param \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\VideoCountdownVisibility $var
     * @return $this
     */
    public function setVideoCountdownVisibility($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\VideoCountdownVisibility::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.CaptureSessionVisibility capture_session_visibility = 4;</code>
     * @return \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\CaptureSessionVisibility|null
     */
    public function getCaptureSessionVisibility()
    {
        return $this->readOneof(4);
    }

    public function hasCaptureSessionVisibility()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.CaptureSessionVisibility capture_session_visibility = 4;</code>
     * @param \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\CaptureSessionVisibility $var
     * @return $this
     */
    public function setCaptureSessionVisibility($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\CaptureSessionVisibility::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.VideoInputVisibility video_input_visibility = 5;</code>
     * @return \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\VideoInputVisibility|null
     */
    public function getVideoInputVisibility()
    {
        return $this->readOneof(5);
    }

    public function hasVideoInputVisibility()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.VideoInputVisibility video_input_visibility = 5;</code>
     * @param \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\VideoInputVisibility $var
     * @return $this
     */
    public function setVideoInputVisibility($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\VideoInputVisibility::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.AudioCountdownVisibility audio_countdown_visibility = 6;</code>
     * @return \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\AudioCountdownVisibility|null
     */
    public function getAudioCountdownVisibility()
    {
        return $this->readOneof(6);
    }

    public function hasAudioCountdownVisibility()
    {
        return $this->hasOneof(6);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Slide.Element.DataLink.VisibilityLink.Condition.AudioCountdownVisibility audio_countdown_visibility = 6;</code>
     * @param \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\AudioCountdownVisibility $var
     * @return $this
     */
    public function setAudioCountdownVisibility($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Slide\Element\DataLink\VisibilityLink\Condition\AudioCountdownVisibility::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getConditionType()
    {
        return $this->whichOneof("ConditionType");
    }

}

