<?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.BotFeedbackMessage</code>
 */
class BotFeedbackMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey messageKey = 1;</code>
     */
    protected $messageKey = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.BotFeedbackKind kind = 2;</code>
     */
    protected $kind = null;
    /**
     * Generated from protobuf field <code>optional string text = 3;</code>
     */
    protected $text = null;
    /**
     * Generated from protobuf field <code>optional uint64 kindNegative = 4;</code>
     */
    protected $kindNegative = null;
    /**
     * Generated from protobuf field <code>optional uint64 kindPositive = 5;</code>
     */
    protected $kindPositive = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.ReportKind kindReport = 6;</code>
     */
    protected $kindReport = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;</code>
     */
    protected $sideBySideSurveyMetadata = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\MessageKey $messageKey
     *     @type int $kind
     *     @type string $text
     *     @type int|string $kindNegative
     *     @type int|string $kindPositive
     *     @type int $kindReport
     *     @type \PhpWA\Protocol\Proto\BotFeedbackMessage\SideBySideSurveyMetadata $sideBySideSurveyMetadata
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey messageKey = 1;</code>
     * @return \PhpWA\Protocol\Proto\MessageKey|null
     */
    public function getMessageKey()
    {
        return $this->messageKey;
    }

    public function hasMessageKey()
    {
        return isset($this->messageKey);
    }

    public function clearMessageKey()
    {
        unset($this->messageKey);
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey messageKey = 1;</code>
     * @param \PhpWA\Protocol\Proto\MessageKey $var
     * @return $this
     */
    public function setMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->messageKey = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.BotFeedbackKind kind = 2;</code>
     * @return int
     */
    public function getKind()
    {
        return isset($this->kind) ? $this->kind : 0;
    }

    public function hasKind()
    {
        return isset($this->kind);
    }

    public function clearKind()
    {
        unset($this->kind);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.BotFeedbackKind kind = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setKind($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotFeedbackMessage\BotFeedbackKind::class);
        $this->kind = $var;

        return $this;
    }

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

    public function hasText()
    {
        return isset($this->text);
    }

    public function clearText()
    {
        unset($this->text);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 kindNegative = 4;</code>
     * @return int|string
     */
    public function getKindNegative()
    {
        return isset($this->kindNegative) ? $this->kindNegative : 0;
    }

    public function hasKindNegative()
    {
        return isset($this->kindNegative);
    }

    public function clearKindNegative()
    {
        unset($this->kindNegative);
    }

    /**
     * Generated from protobuf field <code>optional uint64 kindNegative = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setKindNegative($var)
    {
        GPBUtil::checkUint64($var);
        $this->kindNegative = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 kindPositive = 5;</code>
     * @return int|string
     */
    public function getKindPositive()
    {
        return isset($this->kindPositive) ? $this->kindPositive : 0;
    }

    public function hasKindPositive()
    {
        return isset($this->kindPositive);
    }

    public function clearKindPositive()
    {
        unset($this->kindPositive);
    }

    /**
     * Generated from protobuf field <code>optional uint64 kindPositive = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setKindPositive($var)
    {
        GPBUtil::checkUint64($var);
        $this->kindPositive = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.ReportKind kindReport = 6;</code>
     * @return int
     */
    public function getKindReport()
    {
        return isset($this->kindReport) ? $this->kindReport : 0;
    }

    public function hasKindReport()
    {
        return isset($this->kindReport);
    }

    public function clearKindReport()
    {
        unset($this->kindReport);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.ReportKind kindReport = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setKindReport($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotFeedbackMessage\ReportKind::class);
        $this->kindReport = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;</code>
     * @return \PhpWA\Protocol\Proto\BotFeedbackMessage\SideBySideSurveyMetadata|null
     */
    public function getSideBySideSurveyMetadata()
    {
        return $this->sideBySideSurveyMetadata;
    }

    public function hasSideBySideSurveyMetadata()
    {
        return isset($this->sideBySideSurveyMetadata);
    }

    public function clearSideBySideSurveyMetadata()
    {
        unset($this->sideBySideSurveyMetadata);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.SideBySideSurveyMetadata sideBySideSurveyMetadata = 7;</code>
     * @param \PhpWA\Protocol\Proto\BotFeedbackMessage\SideBySideSurveyMetadata $var
     * @return $this
     */
    public function setSideBySideSurveyMetadata($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\BotFeedbackMessage\SideBySideSurveyMetadata::class);
        $this->sideBySideSurveyMetadata = $var;

        return $this;
    }

}

