<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proCore.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.SendDataResponse</code>
 */
class SendDataResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 message_id = 1;</code>
     */
    protected $message_id = 0;
    protected $MessageType;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $message_id
     *     @type \Rv\Data\ValidateEncoderResponse $validate_encoder_response
     *     @type \Rv\Data\TimerStateUpdate $timer_state
     *     @type \Rv\Data\CaptureActionRequest $capture_action_request
     *     @type \Rv\Data\TestPatternResponse $test_pattern
     *     @type \Rv\Data\HandledException $handled_exception
     *     @type \Rv\Data\CoreDataStateDump $test_state_dump
     *     @type \Rv\Data\UUID $audio_playlist_focus_uuid
     *     @type \Rv\Data\UUID $audio_playlist_item_triggered_uuid
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProCore::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>int32 message_id = 1;</code>
     * @return int
     */
    public function getMessageId()
    {
        return $this->message_id;
    }

    /**
     * Generated from protobuf field <code>int32 message_id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMessageId($var)
    {
        GPBUtil::checkInt32($var);
        $this->message_id = $var;

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

