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

namespace PhpWA\Protocol\Proto\BotUnifiedResponseMutation;

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

/**
 * Generated from protobuf message <code>proto.BotUnifiedResponseMutation.SideBySideMetadata</code>
 */
class SideBySideMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string primaryResponseId = 1;</code>
     */
    protected $primaryResponseId = null;
    /**
     * Generated from protobuf field <code>optional bool surveyCtaHasRendered = 2;</code>
     */
    protected $surveyCtaHasRendered = null;

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

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

    public function hasPrimaryResponseId()
    {
        return isset($this->primaryResponseId);
    }

    public function clearPrimaryResponseId()
    {
        unset($this->primaryResponseId);
    }

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

        return $this;
    }

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

    public function hasSurveyCtaHasRendered()
    {
        return isset($this->surveyCtaHasRendered);
    }

    public function clearSurveyCtaHasRendered()
    {
        unset($this->surveyCtaHasRendered);
    }

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

        return $this;
    }

}

