<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataproc/v1/jobs.proto

namespace Google\Cloud\Dataproc\V1;

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

/**
 * The runtime logging config of the job.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.LoggingConfig</code>
 */
class LoggingConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The per-package log levels for the driver. This may include
     * "root" package name to configure rootLogger.
     * Examples:
     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
     *
     * Generated from protobuf field <code>map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2;</code>
     */
    private $driver_log_levels;

    public function __construct() {
        \GPBMetadata\Google\Cloud\Dataproc\V1\Jobs::initOnce();
        parent::__construct();
    }

    /**
     * The per-package log levels for the driver. This may include
     * "root" package name to configure rootLogger.
     * Examples:
     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
     *
     * Generated from protobuf field <code>map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getDriverLogLevels()
    {
        return $this->driver_log_levels;
    }

    /**
     * The per-package log levels for the driver. This may include
     * "root" package name to configure rootLogger.
     * Examples:
     *   'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
     *
     * Generated from protobuf field <code>map<string, .google.cloud.dataproc.v1.LoggingConfig.Level> driver_log_levels = 2;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setDriverLogLevels($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dataproc\V1\LoggingConfig_Level::class);
        $this->driver_log_levels = $arr;

        return $this;
    }

}

