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

namespace PhpWA\Protocol\Proto\BotRenderingMetadata;

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

/**
 * Generated from protobuf message <code>proto.BotRenderingMetadata.Keyword</code>
 */
class Keyword extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string value = 1;</code>
     */
    protected $value = null;
    /**
     * Generated from protobuf field <code>repeated string associatedPrompts = 2;</code>
     */
    private $associatedPrompts;

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

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

    public function hasValue()
    {
        return isset($this->value);
    }

    public function clearValue()
    {
        unset($this->value);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string associatedPrompts = 2;</code>
     * @return RepeatedField<string>
     */
    public function getAssociatedPrompts()
    {
        return $this->associatedPrompts;
    }

    /**
     * Generated from protobuf field <code>repeated string associatedPrompts = 2;</code>
     * @param string[] $var
     * @return $this
     */
    public function setAssociatedPrompts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->associatedPrompts = $arr;

        return $this;
    }

}

