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

namespace PhpWA\Protocol\Proto\AIRichResponseTableMetadata;

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

/**
 * Generated from protobuf message <code>proto.AIRichResponseTableMetadata.AIRichResponseTableRow</code>
 */
class AIRichResponseTableRow extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>repeated string items = 1;</code>
     */
    private $items;
    /**
     * Generated from protobuf field <code>optional bool isHeading = 2;</code>
     */
    protected $isHeading = null;

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

    /**
     * Generated from protobuf field <code>repeated string items = 1;</code>
     * @return RepeatedField<string>
     */
    public function getItems()
    {
        return $this->items;
    }

    /**
     * Generated from protobuf field <code>repeated string items = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->items = $arr;

        return $this;
    }

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

    public function hasIsHeading()
    {
        return isset($this->isHeading);
    }

    public function clearIsHeading()
    {
        unset($this->isHeading);
    }

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

        return $this;
    }

}

