<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proCore.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.MediaThumbnail</code>
 */
class MediaThumbnail extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 width = 1;</code>
     */
    protected $width = 0;
    /**
     * Generated from protobuf field <code>int32 height = 2;</code>
     */
    protected $height = 0;
    /**
     * Generated from protobuf field <code>bytes data = 3;</code>
     */
    protected $data = '';
    /**
     * Generated from protobuf field <code>uint64 stride = 4;</code>
     */
    protected $stride = 0;

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

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bytes data = 3;</code>
     * @return string
     */
    public function getData()
    {
        return $this->data;
    }

    /**
     * Generated from protobuf field <code>bytes data = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkString($var, False);
        $this->data = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 stride = 4;</code>
     * @return int|string
     */
    public function getStride()
    {
        return $this->stride;
    }

    /**
     * Generated from protobuf field <code>uint64 stride = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setStride($var)
    {
        GPBUtil::checkUint64($var);
        $this->stride = $var;

        return $this;
    }

}

