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

namespace Google\Cloud\Compute\V1\FutureReservation;

use UnexpectedValueException;

/**
 * Type of the deployment requested as part of future reservation.
 *
 * Protobuf type <code>google.cloud.compute.v1.FutureReservation.DeploymentType</code>
 */
class DeploymentType
{
    /**
     * A value indicating that the enum field is not set.
     *
     * Generated from protobuf enum <code>UNDEFINED_DEPLOYMENT_TYPE = 0;</code>
     */
    const UNDEFINED_DEPLOYMENT_TYPE = 0;
    /**
     * The reserved capacity is made up of densely deployed reservation blocks.
     *
     * Generated from protobuf enum <code>DENSE = 64932607;</code>
     */
    const DENSE = 64932607;
    /**
     * Generated from protobuf enum <code>DEPLOYMENT_TYPE_UNSPECIFIED = 234847180;</code>
     */
    const DEPLOYMENT_TYPE_UNSPECIFIED = 234847180;

    private static $valueToName = [
        self::UNDEFINED_DEPLOYMENT_TYPE => 'UNDEFINED_DEPLOYMENT_TYPE',
        self::DENSE => 'DENSE',
        self::DEPLOYMENT_TYPE_UNSPECIFIED => 'DEPLOYMENT_TYPE_UNSPECIFIED',
    ];

    public static function name($value)
    {
        if (!isset(self::$valueToName[$value])) {
            throw new UnexpectedValueException(sprintf(
                    'Enum %s has no name defined for value %s', __CLASS__, $value));
        }
        return self::$valueToName[$value];
    }


    public static function value($name)
    {
        $const = __CLASS__ . '::' . strtoupper($name);
        if (!defined($const)) {
            throw new UnexpectedValueException(sprintf(
                    'Enum %s has no value defined for name %s', __CLASS__, $name));
        }
        return constant($const);
    }
}


