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

namespace Google\Cloud\Bigtable\V2;

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

/**
 * A response wrapper for operations on a materialized view. Internal usage
 * only.
 *
 * Generated from protobuf message <code>google.bigtable.v2.MaterializedViewResponse</code>
 */
class MaterializedViewResponse extends \Google\Protobuf\Internal\Message
{
    protected $payload;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Bigtable\V2\SessionReadRowResponse $read_row
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Session::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.google.bigtable.v2.SessionReadRowResponse read_row = 1;</code>
     * @return \Google\Cloud\Bigtable\V2\SessionReadRowResponse|null
     */
    public function getReadRow()
    {
        return $this->readOneof(1);
    }

    public function hasReadRow()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.google.bigtable.v2.SessionReadRowResponse read_row = 1;</code>
     * @param \Google\Cloud\Bigtable\V2\SessionReadRowResponse $var
     * @return $this
     */
    public function setReadRow($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\SessionReadRowResponse::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getPayload()
    {
        return $this->whichOneof("payload");
    }

}

