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

namespace Google\Cloud\Compute\V1\ReservationSlotsGetVersionRequest;

use UnexpectedValueException;

/**
 *
 * Protobuf type <code>google.cloud.compute.v1.ReservationSlotsGetVersionRequest.SbomSelections</code>
 */
class SbomSelections
{
    /**
     * A value indicating that the enum field is not set.
     *
     * Generated from protobuf enum <code>UNDEFINED_SBOM_SELECTIONS = 0;</code>
     */
    const UNDEFINED_SBOM_SELECTIONS = 0;
    /**
     * Generated from protobuf enum <code>SBOM_SELECTION_CURRENT = 423856692;</code>
     */
    const SBOM_SELECTION_CURRENT = 423856692;
    /**
     * Generated from protobuf enum <code>SBOM_SELECTION_TARGET = 152837462;</code>
     */
    const SBOM_SELECTION_TARGET = 152837462;
    /**
     * Generated from protobuf enum <code>SBOM_SELECTION_UNSPECIFIED = 379615858;</code>
     */
    const SBOM_SELECTION_UNSPECIFIED = 379615858;

    private static $valueToName = [
        self::UNDEFINED_SBOM_SELECTIONS => 'UNDEFINED_SBOM_SELECTIONS',
        self::SBOM_SELECTION_CURRENT => 'SBOM_SELECTION_CURRENT',
        self::SBOM_SELECTION_TARGET => 'SBOM_SELECTION_TARGET',
        self::SBOM_SELECTION_UNSPECIFIED => 'SBOM_SELECTION_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);
    }
}

