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

namespace Rv\Data\TestPatternDefinition;

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

/**
 * Generated from protobuf message <code>rv.data.TestPatternDefinition.FontProperty</code>
 */
class FontProperty extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Font font = 1;</code>
     */
    protected $font = null;

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

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

    public function hasFont()
    {
        return isset($this->font);
    }

    public function clearFont()
    {
        unset($this->font);
    }

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

        return $this;
    }

}

