<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: screens.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.DisplayMode</code>
 */
class DisplayMode extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>uint32 width = 2;</code>
     */
    protected $width = 0;
    /**
     * Generated from protobuf field <code>uint32 height = 3;</code>
     */
    protected $height = 0;
    /**
     * Generated from protobuf field <code>double refresh_rate = 4;</code>
     */
    protected $refresh_rate = 0.0;
    /**
     * Generated from protobuf field <code>bool interlaced = 5;</code>
     */
    protected $interlaced = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *     @type int $width
     *     @type int $height
     *     @type float $refresh_rate
     *     @type bool $interlaced
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Screens::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

