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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.BotMemoryMetadata</code>
 */
class BotMemoryMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated .proto.BotMemoryFact addedFacts = 1;</code>
     */
    private $addedFacts;
    /**
     * Generated from protobuf field <code>repeated .proto.BotMemoryFact removedFacts = 2;</code>
     */
    private $removedFacts;
    /**
     * Generated from protobuf field <code>optional string disclaimer = 3;</code>
     */
    protected $disclaimer = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\BotMemoryFact[] $addedFacts
     *     @type \PhpWA\Protocol\Proto\BotMemoryFact[] $removedFacts
     *     @type string $disclaimer
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>repeated .proto.BotMemoryFact addedFacts = 1;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\BotMemoryFact>
     */
    public function getAddedFacts()
    {
        return $this->addedFacts;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.BotMemoryFact addedFacts = 1;</code>
     * @param \PhpWA\Protocol\Proto\BotMemoryFact[] $var
     * @return $this
     */
    public function setAddedFacts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\BotMemoryFact::class);
        $this->addedFacts = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.BotMemoryFact removedFacts = 2;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\BotMemoryFact>
     */
    public function getRemovedFacts()
    {
        return $this->removedFacts;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.BotMemoryFact removedFacts = 2;</code>
     * @param \PhpWA\Protocol\Proto\BotMemoryFact[] $var
     * @return $this
     */
    public function setRemovedFacts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\BotMemoryFact::class);
        $this->removedFacts = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string disclaimer = 3;</code>
     * @return string
     */
    public function getDisclaimer()
    {
        return isset($this->disclaimer) ? $this->disclaimer : '';
    }

    public function hasDisclaimer()
    {
        return isset($this->disclaimer);
    }

    public function clearDisclaimer()
    {
        unset($this->disclaimer);
    }

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

        return $this;
    }

}

