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

/**
 * Server provided instructions for enabling finer grained observability on
 * the client to help diagnose customer issues. Internal usage only.
 *
 * Generated from protobuf message <code>google.bigtable.v2.TelemetryConfiguration</code>
 */
class TelemetryConfiguration extends \Google\Protobuf\Internal\Message
{
    /**
     * Selector for the debug counters that should be uploaded.
     *
     * Generated from protobuf field <code>.google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1;</code>
     */
    protected $debug_tag_level = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $debug_tag_level
     *           Selector for the debug counters that should be uploaded.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Session::initOnce();
        parent::__construct($data);
    }

    /**
     * Selector for the debug counters that should be uploaded.
     *
     * Generated from protobuf field <code>.google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1;</code>
     * @return int
     */
    public function getDebugTagLevel()
    {
        return $this->debug_tag_level;
    }

    /**
     * Selector for the debug counters that should be uploaded.
     *
     * Generated from protobuf field <code>.google.bigtable.v2.TelemetryConfiguration.Level debug_tag_level = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setDebugTagLevel($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Bigtable\V2\TelemetryConfiguration\Level::class);
        $this->debug_tag_level = $var;

        return $this;
    }

}

