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

namespace Google\Cloud\Bigtable\V2;

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

/**
 * Response message for Bigtable.SampleRowKeys.
 *
 * Generated from protobuf message <code>google.bigtable.v2.SampleRowKeysResponse</code>
 */
class SampleRowKeysResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Sorted streamed sequence of sample row keys in the table. The table might
     * have contents before the first row key in the list and after the last one,
     * but a key containing the empty string indicates "end of table" and will be
     * the last response given, if present.
     * Note that row keys in this list may not have ever been written to or read
     * from, and users should therefore not make any assumptions about the row key
     * structure that are specific to their use case.
     *
     * Generated from protobuf field <code>bytes row_key = 1;</code>
     */
    private $row_key = '';
    /**
     * Approximate total storage space used by all rows in the table which precede
     * `row_key`. Buffering the contents of all rows between two subsequent
     * samples would require space roughly equal to the difference in their
     * `offset_bytes` fields.
     *
     * Generated from protobuf field <code>int64 offset_bytes = 2;</code>
     */
    private $offset_bytes = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $row_key
     *           Sorted streamed sequence of sample row keys in the table. The table might
     *           have contents before the first row key in the list and after the last one,
     *           but a key containing the empty string indicates "end of table" and will be
     *           the last response given, if present.
     *           Note that row keys in this list may not have ever been written to or read
     *           from, and users should therefore not make any assumptions about the row key
     *           structure that are specific to their use case.
     *     @type int|string $offset_bytes
     *           Approximate total storage space used by all rows in the table which precede
     *           `row_key`. Buffering the contents of all rows between two subsequent
     *           samples would require space roughly equal to the difference in their
     *           `offset_bytes` fields.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Bigtable::initOnce();
        parent::__construct($data);
    }

    /**
     * Sorted streamed sequence of sample row keys in the table. The table might
     * have contents before the first row key in the list and after the last one,
     * but a key containing the empty string indicates "end of table" and will be
     * the last response given, if present.
     * Note that row keys in this list may not have ever been written to or read
     * from, and users should therefore not make any assumptions about the row key
     * structure that are specific to their use case.
     *
     * Generated from protobuf field <code>bytes row_key = 1;</code>
     * @return string
     */
    public function getRowKey()
    {
        return $this->row_key;
    }

    /**
     * Sorted streamed sequence of sample row keys in the table. The table might
     * have contents before the first row key in the list and after the last one,
     * but a key containing the empty string indicates "end of table" and will be
     * the last response given, if present.
     * Note that row keys in this list may not have ever been written to or read
     * from, and users should therefore not make any assumptions about the row key
     * structure that are specific to their use case.
     *
     * Generated from protobuf field <code>bytes row_key = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRowKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->row_key = $var;

        return $this;
    }

    /**
     * Approximate total storage space used by all rows in the table which precede
     * `row_key`. Buffering the contents of all rows between two subsequent
     * samples would require space roughly equal to the difference in their
     * `offset_bytes` fields.
     *
     * Generated from protobuf field <code>int64 offset_bytes = 2;</code>
     * @return int|string
     */
    public function getOffsetBytes()
    {
        return $this->offset_bytes;
    }

    /**
     * Approximate total storage space used by all rows in the table which precede
     * `row_key`. Buffering the contents of all rows between two subsequent
     * samples would require space roughly equal to the difference in their
     * `offset_bytes` fields.
     *
     * Generated from protobuf field <code>int64 offset_bytes = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setOffsetBytes($var)
    {
        GPBUtil::checkInt64($var);
        $this->offset_bytes = $var;

        return $this;
    }

}

