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

namespace PhpWA\Protocol\Proto;

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

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

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

    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseTableMetadata.AIRichResponseTableRow rows = 1;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\AIRichResponseTableMetadata\AIRichResponseTableRow>
     */
    public function getRows()
    {
        return $this->rows;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.AIRichResponseTableMetadata.AIRichResponseTableRow rows = 1;</code>
     * @param \PhpWA\Protocol\Proto\AIRichResponseTableMetadata\AIRichResponseTableRow[] $var
     * @return $this
     */
    public function setRows($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\AIRichResponseTableMetadata\AIRichResponseTableRow::class);
        $this->rows = $arr;

        return $this;
    }

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

        return $this;
    }

}

