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

/**
 * The GKE config for this cluster.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.GkeClusterConfig</code>
 */
class GkeClusterConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. A target for the deployment.
     *
     * Generated from protobuf field <code>.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $namespaced_gke_deployment_target = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dataproc\V1\GkeClusterConfig\NamespacedGkeDeploymentTarget $namespaced_gke_deployment_target
     *           Optional. A target for the deployment.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1\Clusters::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. A target for the deployment.
     *
     * Generated from protobuf field <code>.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\Dataproc\V1\GkeClusterConfig\NamespacedGkeDeploymentTarget|null
     */
    public function getNamespacedGkeDeploymentTarget()
    {
        return isset($this->namespaced_gke_deployment_target) ? $this->namespaced_gke_deployment_target : null;
    }

    public function hasNamespacedGkeDeploymentTarget()
    {
        return isset($this->namespaced_gke_deployment_target);
    }

    public function clearNamespacedGkeDeploymentTarget()
    {
        unset($this->namespaced_gke_deployment_target);
    }

    /**
     * Optional. A target for the deployment.
     *
     * Generated from protobuf field <code>.google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget namespaced_gke_deployment_target = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\Dataproc\V1\GkeClusterConfig\NamespacedGkeDeploymentTarget $var
     * @return $this
     */
    public function setNamespacedGkeDeploymentTarget($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1\GkeClusterConfig\NamespacedGkeDeploymentTarget::class);
        $this->namespaced_gke_deployment_target = $var;

        return $this;
    }

}

