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

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.API_v1_Announcement_Response</code>
 */
class API_v1_Announcement_Response extends \Google\Protobuf\Internal\Message
{
    protected $Request;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Announcement_Response\ActiveTimelineOperation $active_timeline_operation
     *     @type \Rv\Data\API_v1_Announcement_Response\ActiveTimelineStatus $active_timeline_status
     *     @type \Rv\Data\API_v1_Announcement_Response\Active $active
     *     @type \Rv\Data\API_v1_Announcement_Response\SlideIndex $slide_index
     *     @type \Rv\Data\API_v1_Announcement_Response\ActiveFocus $active_focus
     *     @type \Rv\Data\API_v1_Announcement_Response\ActiveTrigger $active_trigger
     *     @type \Rv\Data\API_v1_Announcement_Response\ActiveNextTrigger $active_next_trigger
     *     @type \Rv\Data\API_v1_Announcement_Response\ActivePreviousTrigger $active_previous_trigger
     *     @type \Rv\Data\API_v1_Announcement_Response\ActiveIndexTrigger $active_index_trigger
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Announcement::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveTimelineOperation active_timeline_operation = 1;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\ActiveTimelineOperation|null
     */
    public function getActiveTimelineOperation()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveTimelineOperation active_timeline_operation = 1;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\ActiveTimelineOperation $var
     * @return $this
     */
    public function setActiveTimelineOperation($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\ActiveTimelineOperation::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveTimelineStatus active_timeline_status = 2;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\ActiveTimelineStatus|null
     */
    public function getActiveTimelineStatus()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveTimelineStatus active_timeline_status = 2;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\ActiveTimelineStatus $var
     * @return $this
     */
    public function setActiveTimelineStatus($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\ActiveTimelineStatus::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.Active active = 3;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\Active|null
     */
    public function getActive()
    {
        return $this->readOneof(3);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.Active active = 3;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\Active $var
     * @return $this
     */
    public function setActive($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\Active::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.SlideIndex slide_index = 4;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\SlideIndex|null
     */
    public function getSlideIndex()
    {
        return $this->readOneof(4);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.SlideIndex slide_index = 4;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\SlideIndex $var
     * @return $this
     */
    public function setSlideIndex($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\SlideIndex::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveFocus active_focus = 5;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\ActiveFocus|null
     */
    public function getActiveFocus()
    {
        return $this->readOneof(5);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveFocus active_focus = 5;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\ActiveFocus $var
     * @return $this
     */
    public function setActiveFocus($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\ActiveFocus::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveTrigger active_trigger = 6;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\ActiveTrigger|null
     */
    public function getActiveTrigger()
    {
        return $this->readOneof(6);
    }

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

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveTrigger active_trigger = 6;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\ActiveTrigger $var
     * @return $this
     */
    public function setActiveTrigger($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\ActiveTrigger::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveNextTrigger active_next_trigger = 7;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\ActiveNextTrigger|null
     */
    public function getActiveNextTrigger()
    {
        return $this->readOneof(7);
    }

    public function hasActiveNextTrigger()
    {
        return $this->hasOneof(7);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveNextTrigger active_next_trigger = 7;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\ActiveNextTrigger $var
     * @return $this
     */
    public function setActiveNextTrigger($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\ActiveNextTrigger::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActivePreviousTrigger active_previous_trigger = 8;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\ActivePreviousTrigger|null
     */
    public function getActivePreviousTrigger()
    {
        return $this->readOneof(8);
    }

    public function hasActivePreviousTrigger()
    {
        return $this->hasOneof(8);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActivePreviousTrigger active_previous_trigger = 8;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\ActivePreviousTrigger $var
     * @return $this
     */
    public function setActivePreviousTrigger($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\ActivePreviousTrigger::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveIndexTrigger active_index_trigger = 9;</code>
     * @return \Rv\Data\API_v1_Announcement_Response\ActiveIndexTrigger|null
     */
    public function getActiveIndexTrigger()
    {
        return $this->readOneof(9);
    }

    public function hasActiveIndexTrigger()
    {
        return $this->hasOneof(9);
    }

    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Announcement_Response.ActiveIndexTrigger active_index_trigger = 9;</code>
     * @param \Rv\Data\API_v1_Announcement_Response\ActiveIndexTrigger $var
     * @return $this
     */
    public function setActiveIndexTrigger($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\API_v1_Announcement_Response\ActiveIndexTrigger::class);
        $this->writeOneof(9, $var);

        return $this;
    }

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

}

