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

namespace Rv\Data\TestPatternDocument\TestPatternData;

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

/**
 * Generated from protobuf message <code>rv.data.TestPatternDocument.TestPatternData.Property</code>
 */
class Property extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string name_localization_key = 1;</code>
     */
    protected $name_localization_key = '';
    protected $PropertyType;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name_localization_key
     *     @type \Rv\Data\TestPatternDocument\TestPatternData\ColorProperty $color_property
     *     @type \Rv\Data\TestPatternDocument\TestPatternData\DoubleProperty $double_property
     *     @type \Rv\Data\TestPatternDocument\TestPatternData\IntProperty $int_property
     *     @type \Rv\Data\TestPatternDocument\TestPatternData\BoolProperty $bool_property
     *     @type \Rv\Data\TestPatternDocument\TestPatternData\StringProperty $string_property
     *     @type \Rv\Data\TestPatternDocument\TestPatternData\FontProperty $font_property
     *     @type \Rv\Data\TestPatternDocument\TestPatternData\SelectorProperty $selector_property
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\TestPattern::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.ColorProperty color_property = 2;</code>
     * @return \Rv\Data\TestPatternDocument\TestPatternData\ColorProperty|null
     */
    public function getColorProperty()
    {
        return $this->readOneof(2);
    }

    public function hasColorProperty()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.ColorProperty color_property = 2;</code>
     * @param \Rv\Data\TestPatternDocument\TestPatternData\ColorProperty $var
     * @return $this
     */
    public function setColorProperty($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TestPatternDocument\TestPatternData\ColorProperty::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.DoubleProperty double_property = 3;</code>
     * @return \Rv\Data\TestPatternDocument\TestPatternData\DoubleProperty|null
     */
    public function getDoubleProperty()
    {
        return $this->readOneof(3);
    }

    public function hasDoubleProperty()
    {
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.DoubleProperty double_property = 3;</code>
     * @param \Rv\Data\TestPatternDocument\TestPatternData\DoubleProperty $var
     * @return $this
     */
    public function setDoubleProperty($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TestPatternDocument\TestPatternData\DoubleProperty::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.IntProperty int_property = 4;</code>
     * @return \Rv\Data\TestPatternDocument\TestPatternData\IntProperty|null
     */
    public function getIntProperty()
    {
        return $this->readOneof(4);
    }

    public function hasIntProperty()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.IntProperty int_property = 4;</code>
     * @param \Rv\Data\TestPatternDocument\TestPatternData\IntProperty $var
     * @return $this
     */
    public function setIntProperty($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TestPatternDocument\TestPatternData\IntProperty::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.BoolProperty bool_property = 5;</code>
     * @return \Rv\Data\TestPatternDocument\TestPatternData\BoolProperty|null
     */
    public function getBoolProperty()
    {
        return $this->readOneof(5);
    }

    public function hasBoolProperty()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.BoolProperty bool_property = 5;</code>
     * @param \Rv\Data\TestPatternDocument\TestPatternData\BoolProperty $var
     * @return $this
     */
    public function setBoolProperty($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TestPatternDocument\TestPatternData\BoolProperty::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.StringProperty string_property = 6;</code>
     * @return \Rv\Data\TestPatternDocument\TestPatternData\StringProperty|null
     */
    public function getStringProperty()
    {
        return $this->readOneof(6);
    }

    public function hasStringProperty()
    {
        return $this->hasOneof(6);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.StringProperty string_property = 6;</code>
     * @param \Rv\Data\TestPatternDocument\TestPatternData\StringProperty $var
     * @return $this
     */
    public function setStringProperty($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TestPatternDocument\TestPatternData\StringProperty::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.FontProperty font_property = 7;</code>
     * @return \Rv\Data\TestPatternDocument\TestPatternData\FontProperty|null
     */
    public function getFontProperty()
    {
        return $this->readOneof(7);
    }

    public function hasFontProperty()
    {
        return $this->hasOneof(7);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.FontProperty font_property = 7;</code>
     * @param \Rv\Data\TestPatternDocument\TestPatternData\FontProperty $var
     * @return $this
     */
    public function setFontProperty($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TestPatternDocument\TestPatternData\FontProperty::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.SelectorProperty selector_property = 8;</code>
     * @return \Rv\Data\TestPatternDocument\TestPatternData\SelectorProperty|null
     */
    public function getSelectorProperty()
    {
        return $this->readOneof(8);
    }

    public function hasSelectorProperty()
    {
        return $this->hasOneof(8);
    }

    /**
     * Generated from protobuf field <code>.rv.data.TestPatternDocument.TestPatternData.SelectorProperty selector_property = 8;</code>
     * @param \Rv\Data\TestPatternDocument\TestPatternData\SelectorProperty $var
     * @return $this
     */
    public function setSelectorProperty($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\TestPatternDocument\TestPatternData\SelectorProperty::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getPropertyType()
    {
        return $this->whichOneof("PropertyType");
    }

}

