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

namespace Rv\Data\TestPatternResponse;

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

/**
 * Generated from protobuf message <code>rv.data.TestPatternResponse.GetThumbnail</code>
 */
class GetThumbnail extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.UUID pattern = 1;</code>
     */
    protected $pattern = null;
    /**
     * Generated from protobuf field <code>bytes image = 2;</code>
     */
    protected $image = '';

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

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

        return $this;
    }

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

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

        return $this;
    }

}

