<?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_DiskCapture</code>
 */
class API_v1_DiskCapture extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string file_location = 1;</code>
     */
    protected $file_location = '';
    /**
     * Generated from protobuf field <code>string codec = 2;</code>
     */
    protected $codec = '';
    /**
     * Generated from protobuf field <code>.rv.data.API_v1_Size resolution = 3;</code>
     */
    protected $resolution = null;
    /**
     * Generated from protobuf field <code>double frame_rate = 4;</code>
     */
    protected $frame_rate = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $file_location
     *     @type string $codec
     *     @type \Rv\Data\API_v1_Size $resolution
     *     @type float $frame_rate
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApiV1Capture::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string file_location = 1;</code>
     * @return string
     */
    public function getFileLocation()
    {
        return $this->file_location;
    }

    /**
     * Generated from protobuf field <code>string file_location = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFileLocation($var)
    {
        GPBUtil::checkString($var, True);
        $this->file_location = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string codec = 2;</code>
     * @return string
     */
    public function getCodec()
    {
        return $this->codec;
    }

    /**
     * Generated from protobuf field <code>string codec = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCodec($var)
    {
        GPBUtil::checkString($var, True);
        $this->codec = $var;

        return $this;
    }

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

    public function hasResolution()
    {
        return isset($this->resolution);
    }

    public function clearResolution()
    {
        unset($this->resolution);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>double frame_rate = 4;</code>
     * @return float
     */
    public function getFrameRate()
    {
        return $this->frame_rate;
    }

    /**
     * Generated from protobuf field <code>double frame_rate = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setFrameRate($var)
    {
        GPBUtil::checkDouble($var);
        $this->frame_rate = $var;

        return $this;
    }

}

