<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/hypercomputecluster/v1beta/hypercompute_cluster.proto

namespace Google\Cloud\HypercomputeCluster\V1beta;

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

/**
 * The component responsible for scheduling and running workloads on the
 * cluster as well as providing the user interface for interacting with the
 * cluster at runtime.
 *
 * Generated from protobuf message <code>google.cloud.hypercomputecluster.v1beta.Orchestrator</code>
 */
class Orchestrator extends \Google\Protobuf\Internal\Message
{
    protected $option;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\HypercomputeCluster\V1beta\SlurmOrchestrator $slurm
     *           Optional. If set, indicates that the cluster should use Slurm as the
     *           orchestrator.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Hypercomputecluster\V1Beta\HypercomputeCluster::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. If set, indicates that the cluster should use Slurm as the
     * orchestrator.
     *
     * Generated from protobuf field <code>.google.cloud.hypercomputecluster.v1beta.SlurmOrchestrator slurm = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\HypercomputeCluster\V1beta\SlurmOrchestrator|null
     */
    public function getSlurm()
    {
        return $this->readOneof(1);
    }

    public function hasSlurm()
    {
        return $this->hasOneof(1);
    }

    /**
     * Optional. If set, indicates that the cluster should use Slurm as the
     * orchestrator.
     *
     * Generated from protobuf field <code>.google.cloud.hypercomputecluster.v1beta.SlurmOrchestrator slurm = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\HypercomputeCluster\V1beta\SlurmOrchestrator $var
     * @return $this
     */
    public function setSlurm($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\HypercomputeCluster\V1beta\SlurmOrchestrator::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getOption()
    {
        return $this->whichOneof("option");
    }

}

