<?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.BoolProperty</code>
 */
class BoolProperty extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool value = 1;</code>
     */
    protected $value = false;
    /**
     * Generated from protobuf field <code>repeated .rv.data.TestPatternDocument.TestPatternData.Property dependent_properties = 2;</code>
     */
    private $dependent_properties;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $value
     *     @type array<\Rv\Data\TestPatternDocument\TestPatternData\Property>|\Google\Protobuf\Internal\RepeatedField $dependent_properties
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\TestPattern::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool value = 1;</code>
     * @return bool
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Generated from protobuf field <code>bool value = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setValue($var)
    {
        GPBUtil::checkBool($var);
        $this->value = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.TestPatternDocument.TestPatternData.Property dependent_properties = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDependentProperties()
    {
        return $this->dependent_properties;
    }

    /**
     * Generated from protobuf field <code>repeated .rv.data.TestPatternDocument.TestPatternData.Property dependent_properties = 2;</code>
     * @param array<\Rv\Data\TestPatternDocument\TestPatternData\Property>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDependentProperties($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\TestPatternDocument\TestPatternData\Property::class);
        $this->dependent_properties = $arr;

        return $this;
    }

}

