<?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;

/**
 * Batch of serialized ProtoRows.
 *
 * Generated from protobuf message <code>google.bigtable.v2.ProtoRowsBatch</code>
 */
class ProtoRowsBatch extends \Google\Protobuf\Internal\Message
{
    /**
     * Merge partial results by concatenating these bytes, then parsing the
     * overall value as a `ProtoRows` message.
     *
     * 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
     *           Merge partial results by concatenating these bytes, then parsing the
     *           overall value as a `ProtoRows` message.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Data::initOnce();
        parent::__construct($data);
    }

    /**
     * Merge partial results by concatenating these bytes, then parsing the
     * overall value as a `ProtoRows` message.
     *
     * Generated from protobuf field <code>bytes batch_data = 1;</code>
     * @return string
     */
    public function getBatchData()
    {
        return $this->batch_data;
    }

    /**
     * Merge partial results by concatenating these bytes, then parsing the
     * overall value as a `ProtoRows` message.
     *
     * 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;
    }

}

