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

namespace Google\Cloud\Container\V1;

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

/**
 * NodePoolLoggingConfig specifies logging configuration for nodepools.
 *
 * Generated from protobuf message <code>google.container.v1.NodePoolLoggingConfig</code>
 */
class NodePoolLoggingConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Logging variant configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.LoggingVariantConfig variant_config = 1;</code>
     */
    private $variant_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Container\V1\LoggingVariantConfig $variant_config
     *           Logging variant configuration.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Logging variant configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.LoggingVariantConfig variant_config = 1;</code>
     * @return \Google\Cloud\Container\V1\LoggingVariantConfig|null
     */
    public function getVariantConfig()
    {
        return $this->variant_config;
    }

    public function hasVariantConfig()
    {
        return isset($this->variant_config);
    }

    public function clearVariantConfig()
    {
        unset($this->variant_config);
    }

    /**
     * Logging variant configuration.
     *
     * Generated from protobuf field <code>.google.container.v1.LoggingVariantConfig variant_config = 1;</code>
     * @param \Google\Cloud\Container\V1\LoggingVariantConfig $var
     * @return $this
     */
    public function setVariantConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingVariantConfig::class);
        $this->variant_config = $var;

        return $this;
    }

}

