<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * When set in a
 * [ComputeResourceConfig][google.cloud.hypercomputecluster.v1beta.ComputeResourceConfig],
 * indicates that on-demand (i.e., using the standard provisioning model) VM
 * instances should be created.
 *
 * Generated from protobuf message <code>google.cloud.hypercomputecluster.v1beta.NewOnDemandInstancesConfig</code>
 */
class NewOnDemandInstancesConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Immutable. Name of the zone in which VM instances should run,
     * e.g., `us-central1-a`. Must be in the same region as the cluster, and must
     * match the zone of any other resources specified in the cluster.
     *
     * Generated from protobuf field <code>string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $zone = '';
    /**
     * Required. Immutable. Name of the Compute Engine [machine
     * type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
     * `n2-standard-2`.
     *
     * Generated from protobuf field <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $machine_type = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $zone
     *           Required. Immutable. Name of the zone in which VM instances should run,
     *           e.g., `us-central1-a`. Must be in the same region as the cluster, and must
     *           match the zone of any other resources specified in the cluster.
     *     @type string $machine_type
     *           Required. Immutable. Name of the Compute Engine [machine
     *           type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
     *           `n2-standard-2`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Hypercomputecluster\V1Beta\HypercomputeCluster::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Immutable. Name of the zone in which VM instances should run,
     * e.g., `us-central1-a`. Must be in the same region as the cluster, and must
     * match the zone of any other resources specified in the cluster.
     *
     * Generated from protobuf field <code>string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getZone()
    {
        return $this->zone;
    }

    /**
     * Required. Immutable. Name of the zone in which VM instances should run,
     * e.g., `us-central1-a`. Must be in the same region as the cluster, and must
     * match the zone of any other resources specified in the cluster.
     *
     * Generated from protobuf field <code>string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setZone($var)
    {
        GPBUtil::checkString($var, True);
        $this->zone = $var;

        return $this;
    }

    /**
     * Required. Immutable. Name of the Compute Engine [machine
     * type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
     * `n2-standard-2`.
     *
     * Generated from protobuf field <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getMachineType()
    {
        return $this->machine_type;
    }

    /**
     * Required. Immutable. Name of the Compute Engine [machine
     * type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
     * `n2-standard-2`.
     *
     * Generated from protobuf field <code>string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setMachineType($var)
    {
        GPBUtil::checkString($var, True);
        $this->machine_type = $var;

        return $this;
    }

}

