<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/documentai/v1/document.proto

namespace Google\Cloud\DocumentAI\V1\Document\Page\Table;

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

/**
 * A row of table cells.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.Document.Page.Table.TableRow</code>
 */
class TableRow extends \Google\Protobuf\Internal\Message
{
    /**
     * Cells that make up this row.
     *
     * Generated from protobuf field <code>repeated .google.cloud.documentai.v1.Document.Page.Table.TableCell cells = 1;</code>
     */
    private $cells;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Table\TableCell>|\Google\Protobuf\Internal\RepeatedField $cells
     *           Cells that make up this row.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce();
        parent::__construct($data);
    }

    /**
     * Cells that make up this row.
     *
     * Generated from protobuf field <code>repeated .google.cloud.documentai.v1.Document.Page.Table.TableCell cells = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCells()
    {
        return $this->cells;
    }

    /**
     * Cells that make up this row.
     *
     * Generated from protobuf field <code>repeated .google.cloud.documentai.v1.Document.Page.Table.TableCell cells = 1;</code>
     * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Table\TableCell>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCells($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Table\TableCell::class);
        $this->cells = $arr;

        return $this;
    }

}


