<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApiV1Capture.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_Capture_Request</code>
 */
class API_v1_Capture_Request extends \Google\Protobuf\Internal\Message
{
    protected $Request;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\API_v1_Capture_Request\Status $get_status
     *     @type \Rv\Data\API_v1_Capture_Request\Operation $operation
     *     @type \Rv\Data\API_v1_Capture_Request\GetSettings $get_settings
     *     @type \Rv\Data\API_v1_Capture_Request\SetSettings $set_settings
     *     @type \Rv\Data\API_v1_Capture_Request\Encodings $get_encodings
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Capture::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

