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

namespace Rv\Data\TestPatternRequest;

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

/**
 * Generated from protobuf message <code>rv.data.TestPatternRequest.GetThumbnail</code>
 */
class GetThumbnail extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDefinition pattern = 1;</code>
     */
    protected $pattern = null;
    /**
     * Generated from protobuf field <code>int32 width = 2;</code>
     */
    protected $width = 0;
    /**
     * Generated from protobuf field <code>int32 height = 3;</code>
     */
    protected $height = 0;

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

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDefinition pattern = 1;</code>
     * @return \Rv\Data\TestPatternDefinition|null
     */
    public function getPattern()
    {
        return $this->pattern;
    }

    public function hasPattern()
    {
        return isset($this->pattern);
    }

    public function clearPattern()
    {
        unset($this->pattern);
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>int32 width = 2;</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 = 3;</code>
     * @return int
     */
    public function getHeight()
    {
        return $this->height;
    }

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

        return $this;
    }

}

