<?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.ListResponseMessage</code>
 */
class ListResponseMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string title = 1;</code>
     */
    protected $title = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ListResponseMessage.ListType listType = 2;</code>
     */
    protected $listType = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.ListResponseMessage.SingleSelectReply singleSelectReply = 3;</code>
     */
    protected $singleSelectReply = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 4;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional string description = 5;</code>
     */
    protected $description = null;

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

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

    public function hasTitle()
    {
        return isset($this->title);
    }

    public function clearTitle()
    {
        unset($this->title);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.ListResponseMessage.ListType listType = 2;</code>
     * @return int
     */
    public function getListType()
    {
        return isset($this->listType) ? $this->listType : 0;
    }

    public function hasListType()
    {
        return isset($this->listType);
    }

    public function clearListType()
    {
        unset($this->listType);
    }

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

        return $this;
    }

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

    public function hasSingleSelectReply()
    {
        return isset($this->singleSelectReply);
    }

    public function clearSingleSelectReply()
    {
        unset($this->singleSelectReply);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 4;</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 = 4;</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 string description = 5;</code>
     * @return string
     */
    public function getDescription()
    {
        return isset($this->description) ? $this->description : '';
    }

    public function hasDescription()
    {
        return isset($this->description);
    }

    public function clearDescription()
    {
        unset($this->description);
    }

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

        return $this;
    }

}

