<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/orchestration/airflow/service/v1/environments.proto

namespace Google\Cloud\Orchestration\Airflow\Service\V1;

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

/**
 * The configuration settings for the Airflow web server App Engine instance.
 *
 * Generated from protobuf message <code>google.cloud.orchestration.airflow.service.v1.WebServerConfig</code>
 */
class WebServerConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Machine type on which Airflow web server is running.
     * It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or
     * composer-n1-webserver-8.
     * If not specified, composer-n1-webserver-2 will be used.
     * Value custom is returned only in response, if Airflow web server parameters
     * were manually changed to a non-standard values.
     *
     * Generated from protobuf field <code>string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $machine_type = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $machine_type
     *           Optional. Machine type on which Airflow web server is running.
     *           It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or
     *           composer-n1-webserver-8.
     *           If not specified, composer-n1-webserver-2 will be used.
     *           Value custom is returned only in response, if Airflow web server parameters
     *           were manually changed to a non-standard values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Orchestration\Airflow\Service\V1\Environments::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Machine type on which Airflow web server is running.
     * It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or
     * composer-n1-webserver-8.
     * If not specified, composer-n1-webserver-2 will be used.
     * Value custom is returned only in response, if Airflow web server parameters
     * were manually changed to a non-standard values.
     *
     * Generated from protobuf field <code>string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getMachineType()
    {
        return $this->machine_type;
    }

    /**
     * Optional. Machine type on which Airflow web server is running.
     * It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or
     * composer-n1-webserver-8.
     * If not specified, composer-n1-webserver-2 will be used.
     * Value custom is returned only in response, if Airflow web server parameters
     * were manually changed to a non-standard values.
     *
     * Generated from protobuf field <code>string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setMachineType($var)
    {
        GPBUtil::checkString($var, True);
        $this->machine_type = $var;

        return $this;
    }

}

