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

namespace Google\Cloud\Dataproc\V1;

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

/**
 * Cloud Dataproc job config.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.JobPlacement</code>
 */
class JobPlacement extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the cluster where the job will be submitted.
     *
     * Generated from protobuf field <code>string cluster_name = 1;</code>
     */
    private $cluster_name = '';
    /**
     * Output-only. A cluster UUID generated by the Cloud Dataproc service when
     * the job is submitted.
     *
     * Generated from protobuf field <code>string cluster_uuid = 2;</code>
     */
    private $cluster_uuid = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $cluster_name
     *           Required. The name of the cluster where the job will be submitted.
     *     @type string $cluster_uuid
     *           Output-only. A cluster UUID generated by the Cloud Dataproc service when
     *           the job is submitted.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1\Jobs::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the cluster where the job will be submitted.
     *
     * Generated from protobuf field <code>string cluster_name = 1;</code>
     * @return string
     */
    public function getClusterName()
    {
        return $this->cluster_name;
    }

    /**
     * Required. The name of the cluster where the job will be submitted.
     *
     * Generated from protobuf field <code>string cluster_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setClusterName($var)
    {
        GPBUtil::checkString($var, True);
        $this->cluster_name = $var;

        return $this;
    }

    /**
     * Output-only. A cluster UUID generated by the Cloud Dataproc service when
     * the job is submitted.
     *
     * Generated from protobuf field <code>string cluster_uuid = 2;</code>
     * @return string
     */
    public function getClusterUuid()
    {
        return $this->cluster_uuid;
    }

    /**
     * Output-only. A cluster UUID generated by the Cloud Dataproc service when
     * the job is submitted.
     *
     * Generated from protobuf field <code>string cluster_uuid = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setClusterUuid($var)
    {
        GPBUtil::checkString($var, True);
        $this->cluster_uuid = $var;

        return $this;
    }

}

