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

namespace Rv\Analytics\Trackedevents;

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

/**
 * Generated from protobuf message <code>rv.analytics.trackedevents.StartCaptureDisk</code>
 */
class StartCaptureDisk extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.Codec codec = 1;</code>
     */
    protected $codec = 0;
    /**
     * Generated from protobuf field <code>uint32 resolution_width = 2;</code>
     */
    protected $resolution_width = 0;
    /**
     * Generated from protobuf field <code>uint32 resolution_height = 3;</code>
     */
    protected $resolution_height = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.FrameRate frame_rate = 4;</code>
     */
    protected $frame_rate = 0;
    /**
     * Generated from protobuf field <code>bool stream_started = 5;</code>
     */
    protected $stream_started = false;
    /**
     * Generated from protobuf field <code>uint32 video_bitrate = 6;</code>
     */
    protected $video_bitrate = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $codec
     *     @type int $resolution_width
     *     @type int $resolution_height
     *     @type int $frame_rate
     *     @type bool $stream_started
     *     @type int $video_bitrate
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTrackedEvents::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.Codec codec = 1;</code>
     * @return int
     */
    public function getCodec()
    {
        return $this->codec;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.Codec codec = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCodec($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trackedevents\Codec::class);
        $this->codec = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 resolution_width = 2;</code>
     * @return int
     */
    public function getResolutionWidth()
    {
        return $this->resolution_width;
    }

    /**
     * Generated from protobuf field <code>uint32 resolution_width = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setResolutionWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->resolution_width = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 resolution_height = 3;</code>
     * @return int
     */
    public function getResolutionHeight()
    {
        return $this->resolution_height;
    }

    /**
     * Generated from protobuf field <code>uint32 resolution_height = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setResolutionHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->resolution_height = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.FrameRate frame_rate = 4;</code>
     * @return int
     */
    public function getFrameRate()
    {
        return $this->frame_rate;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.trackedevents.FrameRate frame_rate = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setFrameRate($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\Trackedevents\FrameRate::class);
        $this->frame_rate = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool stream_started = 5;</code>
     * @return bool
     */
    public function getStreamStarted()
    {
        return $this->stream_started;
    }

    /**
     * Generated from protobuf field <code>bool stream_started = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setStreamStarted($var)
    {
        GPBUtil::checkBool($var);
        $this->stream_started = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 video_bitrate = 6;</code>
     * @return int
     */
    public function getVideoBitrate()
    {
        return $this->video_bitrate;
    }

    /**
     * Generated from protobuf field <code>uint32 video_bitrate = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setVideoBitrate($var)
    {
        GPBUtil::checkUint32($var);
        $this->video_bitrate = $var;

        return $this;
    }

}

