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

namespace Google\Cloud\GkeMultiCloud\V1;

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

/**
 * Parameters that describe the Logging configuration in a cluster.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.LoggingConfig</code>
 */
class LoggingConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The configuration of the logging components;
     *
     * Generated from protobuf field <code>.google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1;</code>
     */
    private $component_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $component_config
     *           The configuration of the logging components;
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce();
        parent::__construct($data);
    }

    /**
     * The configuration of the logging components;
     *
     * Generated from protobuf field <code>.google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1;</code>
     * @return \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig|null
     */
    public function getComponentConfig()
    {
        return $this->component_config;
    }

    public function hasComponentConfig()
    {
        return isset($this->component_config);
    }

    public function clearComponentConfig()
    {
        unset($this->component_config);
    }

    /**
     * The configuration of the logging components;
     *
     * Generated from protobuf field <code>.google.cloud.gkemulticloud.v1.LoggingComponentConfig component_config = 1;</code>
     * @param \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig $var
     * @return $this
     */
    public function setComponentConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig::class);
        $this->component_config = $var;

        return $this;
    }

}

