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

namespace Rv\Analytics\Capture;

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

/**
 * Generated from protobuf message <code>rv.analytics.Capture.Start</code>
 */
class Start extends \Google\Protobuf\Internal\Message
{
    protected $Component;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\Capture\Start\RTMP $rtmp
     *     @type \Rv\Analytics\Capture\Start\Disk $disk
     *     @type \Rv\Analytics\Capture\Start\Resi $resi
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsCapture::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Capture.Start.RTMP rtmp = 1;</code>
     * @return \Rv\Analytics\Capture\Start\RTMP|null
     */
    public function getRtmp()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Capture.Start.RTMP rtmp = 1;</code>
     * @param \Rv\Analytics\Capture\Start\RTMP $var
     * @return $this
     */
    public function setRtmp($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Capture\Start\RTMP::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Capture.Start.Disk disk = 2;</code>
     * @return \Rv\Analytics\Capture\Start\Disk|null
     */
    public function getDisk()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Capture.Start.Disk disk = 2;</code>
     * @param \Rv\Analytics\Capture\Start\Disk $var
     * @return $this
     */
    public function setDisk($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Capture\Start\Disk::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Capture.Start.Resi resi = 3;</code>
     * @return \Rv\Analytics\Capture\Start\Resi|null
     */
    public function getResi()
    {
        return $this->readOneof(3);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Capture.Start.Resi resi = 3;</code>
     * @param \Rv\Analytics\Capture\Start\Resi $var
     * @return $this
     */
    public function setResi($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Capture\Start\Resi::class);
        $this->writeOneof(3, $var);

        return $this;
    }

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

}

