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

namespace PhpWA\Protocol\Proto\BotFeedbackMessage;

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

/**
 * Generated from protobuf message <code>proto.BotFeedbackMessage.SideBySideSurveyMetadata</code>
 */
class SideBySideSurveyMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string selectedRequestId = 1;</code>
     */
    protected $selectedRequestId = null;
    /**
     * Generated from protobuf field <code>optional uint32 surveyId = 2;</code>
     */
    protected $surveyId = null;
    /**
     * Generated from protobuf field <code>optional string simonSessionFbid = 3;</code>
     */
    protected $simonSessionFbid = null;
    /**
     * Generated from protobuf field <code>optional string responseOtid = 4;</code>
     */
    protected $responseOtid = null;
    /**
     * Generated from protobuf field <code>optional string responseTimestampMsString = 5;</code>
     */
    protected $responseTimestampMsString = null;
    /**
     * Generated from protobuf field <code>optional bool isSelectedResponsePrimary = 6;</code>
     */
    protected $isSelectedResponsePrimary = null;
    /**
     * Generated from protobuf field <code>optional string messageIdToEdit = 7;</code>
     */
    protected $messageIdToEdit = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData analyticsData = 8;</code>
     */
    protected $analyticsData = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData metaAiAnalyticsData = 9;</code>
     */
    protected $metaAiAnalyticsData = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $selectedRequestId
     *     @type int $surveyId
     *     @type string $simonSessionFbid
     *     @type string $responseOtid
     *     @type string $responseTimestampMsString
     *     @type bool $isSelectedResponsePrimary
     *     @type string $messageIdToEdit
     *     @type \PhpWA\Protocol\Proto\BotFeedbackMessage\SideBySideSurveyMetadata\SideBySideSurveyAnalyticsData $analyticsData
     *     @type \PhpWA\Protocol\Proto\BotFeedbackMessage\SideBySideSurveyMetadata\SidebySideSurveyMetaAiAnalyticsData $metaAiAnalyticsData
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasSelectedRequestId()
    {
        return isset($this->selectedRequestId);
    }

    public function clearSelectedRequestId()
    {
        unset($this->selectedRequestId);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 surveyId = 2;</code>
     * @return int
     */
    public function getSurveyId()
    {
        return isset($this->surveyId) ? $this->surveyId : 0;
    }

    public function hasSurveyId()
    {
        return isset($this->surveyId);
    }

    public function clearSurveyId()
    {
        unset($this->surveyId);
    }

    /**
     * Generated from protobuf field <code>optional uint32 surveyId = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setSurveyId($var)
    {
        GPBUtil::checkUint32($var);
        $this->surveyId = $var;

        return $this;
    }

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

    public function hasSimonSessionFbid()
    {
        return isset($this->simonSessionFbid);
    }

    public function clearSimonSessionFbid()
    {
        unset($this->simonSessionFbid);
    }

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

        return $this;
    }

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

    public function hasResponseOtid()
    {
        return isset($this->responseOtid);
    }

    public function clearResponseOtid()
    {
        unset($this->responseOtid);
    }

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

        return $this;
    }

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

    public function hasResponseTimestampMsString()
    {
        return isset($this->responseTimestampMsString);
    }

    public function clearResponseTimestampMsString()
    {
        unset($this->responseTimestampMsString);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool isSelectedResponsePrimary = 6;</code>
     * @return bool
     */
    public function getIsSelectedResponsePrimary()
    {
        return isset($this->isSelectedResponsePrimary) ? $this->isSelectedResponsePrimary : false;
    }

    public function hasIsSelectedResponsePrimary()
    {
        return isset($this->isSelectedResponsePrimary);
    }

    public function clearIsSelectedResponsePrimary()
    {
        unset($this->isSelectedResponsePrimary);
    }

    /**
     * Generated from protobuf field <code>optional bool isSelectedResponsePrimary = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsSelectedResponsePrimary($var)
    {
        GPBUtil::checkBool($var);
        $this->isSelectedResponsePrimary = $var;

        return $this;
    }

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

    public function hasMessageIdToEdit()
    {
        return isset($this->messageIdToEdit);
    }

    public function clearMessageIdToEdit()
    {
        unset($this->messageIdToEdit);
    }

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

        return $this;
    }

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

    public function hasAnalyticsData()
    {
        return isset($this->analyticsData);
    }

    public function clearAnalyticsData()
    {
        unset($this->analyticsData);
    }

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

        return $this;
    }

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

    public function hasMetaAiAnalyticsData()
    {
        return isset($this->metaAiAnalyticsData);
    }

    public function clearMetaAiAnalyticsData()
    {
        unset($this->metaAiAnalyticsData);
    }

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

        return $this;
    }

}

