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

/**
 * Configuration for returning group information from authenticators.
 *
 * Generated from protobuf message <code>google.container.v1.AuthenticatorGroupsConfig</code>
 */
class AuthenticatorGroupsConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Whether this cluster should return group membership lookups
     * during authentication using a group of security groups.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     */
    protected $enabled = false;
    /**
     * The name of the security group-of-groups to be used. Only relevant
     * if enabled = true.
     *
     * Generated from protobuf field <code>string security_group = 2;</code>
     */
    protected $security_group = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enabled
     *           Whether this cluster should return group membership lookups
     *           during authentication using a group of security groups.
     *     @type string $security_group
     *           The name of the security group-of-groups to be used. Only relevant
     *           if enabled = true.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Container\V1\ClusterService::initOnce();
        parent::__construct($data);
    }

    /**
     * Whether this cluster should return group membership lookups
     * during authentication using a group of security groups.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     * @return bool
     */
    public function getEnabled()
    {
        return $this->enabled;
    }

    /**
     * Whether this cluster should return group membership lookups
     * during authentication using a group of security groups.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->enabled = $var;

        return $this;
    }

    /**
     * The name of the security group-of-groups to be used. Only relevant
     * if enabled = true.
     *
     * Generated from protobuf field <code>string security_group = 2;</code>
     * @return string
     */
    public function getSecurityGroup()
    {
        return $this->security_group;
    }

    /**
     * The name of the security group-of-groups to be used. Only relevant
     * if enabled = true.
     *
     * Generated from protobuf field <code>string security_group = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSecurityGroup($var)
    {
        GPBUtil::checkString($var, True);
        $this->security_group = $var;

        return $this;
    }

}

