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

namespace Google\Cloud\Bigtable\V2;

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

/**
 * FullReadStatsView captures all known information about a read.
 *
 * Generated from protobuf message <code>google.bigtable.v2.FullReadStatsView</code>
 */
class FullReadStatsView extends \Google\Protobuf\Internal\Message
{
    /**
     * Iteration stats describe how efficient the read is, e.g. comparing
     * rows seen vs. rows returned or cells seen vs cells returned can provide an
     * indication of read efficiency (the higher the ratio of seen to retuned the
     * better).
     *
     * Generated from protobuf field <code>.google.bigtable.v2.ReadIterationStats read_iteration_stats = 1;</code>
     */
    private $read_iteration_stats = null;
    /**
     * Request latency stats describe the time taken to complete a request, from
     * the server side.
     *
     * Generated from protobuf field <code>.google.bigtable.v2.RequestLatencyStats request_latency_stats = 2;</code>
     */
    private $request_latency_stats = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Bigtable\V2\ReadIterationStats $read_iteration_stats
     *           Iteration stats describe how efficient the read is, e.g. comparing
     *           rows seen vs. rows returned or cells seen vs cells returned can provide an
     *           indication of read efficiency (the higher the ratio of seen to retuned the
     *           better).
     *     @type \Google\Cloud\Bigtable\V2\RequestLatencyStats $request_latency_stats
     *           Request latency stats describe the time taken to complete a request, from
     *           the server side.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\RequestStats::initOnce();
        parent::__construct($data);
    }

    /**
     * Iteration stats describe how efficient the read is, e.g. comparing
     * rows seen vs. rows returned or cells seen vs cells returned can provide an
     * indication of read efficiency (the higher the ratio of seen to retuned the
     * better).
     *
     * Generated from protobuf field <code>.google.bigtable.v2.ReadIterationStats read_iteration_stats = 1;</code>
     * @return \Google\Cloud\Bigtable\V2\ReadIterationStats|null
     */
    public function getReadIterationStats()
    {
        return $this->read_iteration_stats;
    }

    public function hasReadIterationStats()
    {
        return isset($this->read_iteration_stats);
    }

    public function clearReadIterationStats()
    {
        unset($this->read_iteration_stats);
    }

    /**
     * Iteration stats describe how efficient the read is, e.g. comparing
     * rows seen vs. rows returned or cells seen vs cells returned can provide an
     * indication of read efficiency (the higher the ratio of seen to retuned the
     * better).
     *
     * Generated from protobuf field <code>.google.bigtable.v2.ReadIterationStats read_iteration_stats = 1;</code>
     * @param \Google\Cloud\Bigtable\V2\ReadIterationStats $var
     * @return $this
     */
    public function setReadIterationStats($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\ReadIterationStats::class);
        $this->read_iteration_stats = $var;

        return $this;
    }

    /**
     * Request latency stats describe the time taken to complete a request, from
     * the server side.
     *
     * Generated from protobuf field <code>.google.bigtable.v2.RequestLatencyStats request_latency_stats = 2;</code>
     * @return \Google\Cloud\Bigtable\V2\RequestLatencyStats|null
     */
    public function getRequestLatencyStats()
    {
        return $this->request_latency_stats;
    }

    public function hasRequestLatencyStats()
    {
        return isset($this->request_latency_stats);
    }

    public function clearRequestLatencyStats()
    {
        unset($this->request_latency_stats);
    }

    /**
     * Request latency stats describe the time taken to complete a request, from
     * the server side.
     *
     * Generated from protobuf field <code>.google.bigtable.v2.RequestLatencyStats request_latency_stats = 2;</code>
     * @param \Google\Cloud\Bigtable\V2\RequestLatencyStats $var
     * @return $this
     */
    public function setRequestLatencyStats($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\V2\RequestLatencyStats::class);
        $this->request_latency_stats = $var;

        return $this;
    }

}

