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

namespace Google\Cloud\Dataproc\V1;

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

/**
 * Security related configuration, including Kerberos.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.SecurityConfig</code>
 */
class SecurityConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Kerberos related configuration.
     *
     * Generated from protobuf field <code>.google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1;</code>
     */
    private $kerberos_config = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dataproc\V1\KerberosConfig $kerberos_config
     *           Kerberos related configuration.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1\Clusters::initOnce();
        parent::__construct($data);
    }

    /**
     * Kerberos related configuration.
     *
     * Generated from protobuf field <code>.google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1;</code>
     * @return \Google\Cloud\Dataproc\V1\KerberosConfig
     */
    public function getKerberosConfig()
    {
        return $this->kerberos_config;
    }

    /**
     * Kerberos related configuration.
     *
     * Generated from protobuf field <code>.google.cloud.dataproc.v1.KerberosConfig kerberos_config = 1;</code>
     * @param \Google\Cloud\Dataproc\V1\KerberosConfig $var
     * @return $this
     */
    public function setKerberosConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1\KerberosConfig::class);
        $this->kerberos_config = $var;

        return $this;
    }

}

