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

/**
 * LoggingVariantConfig specifies the behaviour of the logging component.
 *
 * Generated from protobuf message <code>google.container.v1.LoggingVariantConfig</code>
 */
class LoggingVariantConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Logging variant deployed on nodes.
     *
     * Generated from protobuf field <code>.google.container.v1.LoggingVariantConfig.Variant variant = 1;</code>
     */
    private $variant = 0;

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

    /**
     * Logging variant deployed on nodes.
     *
     * Generated from protobuf field <code>.google.container.v1.LoggingVariantConfig.Variant variant = 1;</code>
     * @return int
     */
    public function getVariant()
    {
        return $this->variant;
    }

    /**
     * Logging variant deployed on nodes.
     *
     * Generated from protobuf field <code>.google.container.v1.LoggingVariantConfig.Variant variant = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setVariant($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LoggingVariantConfig\Variant::class);
        $this->variant = $var;

        return $this;
    }

}

