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

namespace Google\Cloud\Dataproc\V1;

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

/**
 * Spark History Server configuration for the workload.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.SparkHistoryServerConfig</code>
 */
class SparkHistoryServerConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
     * History Server for the workload.
     * Example:
     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
     *
     * Generated from protobuf field <code>string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $dataproc_cluster = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dataproc_cluster
     *           Optional. Resource name of an existing Dataproc Cluster to act as a Spark
     *           History Server for the workload.
     *           Example:
     *           * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1\Shared::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
     * History Server for the workload.
     * Example:
     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
     *
     * Generated from protobuf field <code>string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getDataprocCluster()
    {
        return $this->dataproc_cluster;
    }

    /**
     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
     * History Server for the workload.
     * Example:
     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
     *
     * Generated from protobuf field <code>string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setDataprocCluster($var)
    {
        GPBUtil::checkString($var, True);
        $this->dataproc_cluster = $var;

        return $this;
    }

}

