<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/v2/data.proto

namespace Google\Cloud\Bigtable\V2;

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

/**
 * A part of a serialized `ProtoRows` message.
 *
 * Generated from protobuf message <code>google.bigtable.v2.ProtoRowsBatch</code>
 */
class ProtoRowsBatch extends \Google\Protobuf\Internal\Message
{
    /**
     * Part of a serialized `ProtoRows` message.
     * A complete, parseable ProtoRows message is constructed by
     * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
     * `PartialResultSet` that contains the last part has `complete_batch` set to
     * `true`.
     *
     * Generated from protobuf field <code>bytes batch_data = 1;</code>
     */
    protected $batch_data = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $batch_data
     *           Part of a serialized `ProtoRows` message.
     *           A complete, parseable ProtoRows message is constructed by
     *           concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
     *           `PartialResultSet` that contains the last part has `complete_batch` set to
     *           `true`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * Part of a serialized `ProtoRows` message.
     * A complete, parseable ProtoRows message is constructed by
     * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
     * `PartialResultSet` that contains the last part has `complete_batch` set to
     * `true`.
     *
     * Generated from protobuf field <code>bytes batch_data = 1;</code>
     * @return string
     */
    public function getBatchData()
    {
        return $this->batch_data;
    }

    /**
     * Part of a serialized `ProtoRows` message.
     * A complete, parseable ProtoRows message is constructed by
     * concatenating `batch_data` from multiple `ProtoRowsBatch` messages. The
     * `PartialResultSet` that contains the last part has `complete_batch` set to
     * `true`.
     *
     * Generated from protobuf field <code>bytes batch_data = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setBatchData($var)
    {
        GPBUtil::checkString($var, False);
        $this->batch_data = $var;

        return $this;
    }

}

