<?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 component configuration in a cluster.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.LoggingComponentConfig</code>
 */
class LoggingComponentConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The components to be enabled.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1;</code>
     */
    private $enable_components;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $enable_components
     *           The components to be enabled.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\CommonResources::initOnce();
        parent::__construct($data);
    }

    /**
     * The components to be enabled.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEnableComponents()
    {
        return $this->enable_components;
    }

    /**
     * The components to be enabled.
     *
     * Generated from protobuf field <code>repeated .google.cloud.gkemulticloud.v1.LoggingComponentConfig.Component enable_components = 1;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEnableComponents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\GkeMultiCloud\V1\LoggingComponentConfig\Component::class);
        $this->enable_components = $arr;

        return $this;
    }

}

