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

namespace PhpWA\Protocol\Proto\Message;

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

/**
 * Generated from protobuf message <code>proto.Message.TemplateButtonReplyMessage</code>
 */
class TemplateButtonReplyMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string selectedId = 1;</code>
     */
    protected $selectedId = null;
    /**
     * Generated from protobuf field <code>optional string selectedDisplayText = 2;</code>
     */
    protected $selectedDisplayText = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 3;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional uint32 selectedIndex = 4;</code>
     */
    protected $selectedIndex = null;
    /**
     * Generated from protobuf field <code>optional uint32 selectedCarouselCardIndex = 5;</code>
     */
    protected $selectedCarouselCardIndex = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $selectedId
     *     @type string $selectedDisplayText
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type int $selectedIndex
     *     @type int $selectedCarouselCardIndex
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

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

    public function hasSelectedId()
    {
        return isset($this->selectedId);
    }

    public function clearSelectedId()
    {
        unset($this->selectedId);
    }

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

        return $this;
    }

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

    public function hasSelectedDisplayText()
    {
        return isset($this->selectedDisplayText);
    }

    public function clearSelectedDisplayText()
    {
        unset($this->selectedDisplayText);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 3;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

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

        return $this;
    }

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

    public function hasSelectedIndex()
    {
        return isset($this->selectedIndex);
    }

    public function clearSelectedIndex()
    {
        unset($this->selectedIndex);
    }

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

        return $this;
    }

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

    public function hasSelectedCarouselCardIndex()
    {
        return isset($this->selectedCarouselCardIndex);
    }

    public function clearSelectedCarouselCardIndex()
    {
        unset($this->selectedCarouselCardIndex);
    }

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

        return $this;
    }

}

