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

namespace Google\Cloud\BackupDR\V1\GuestOsFeature;

use UnexpectedValueException;

/**
 * List of the Feature Types.
 *
 * Protobuf type <code>google.cloud.backupdr.v1.GuestOsFeature.FeatureType</code>
 */
class FeatureType
{
    /**
     * Default value, which is unused.
     *
     * Generated from protobuf enum <code>FEATURE_TYPE_UNSPECIFIED = 0;</code>
     */
    const FEATURE_TYPE_UNSPECIFIED = 0;
    /**
     * VIRTIO_SCSI_MULTIQUEUE feature type.
     *
     * Generated from protobuf enum <code>VIRTIO_SCSI_MULTIQUEUE = 1;</code>
     */
    const VIRTIO_SCSI_MULTIQUEUE = 1;
    /**
     * WINDOWS feature type.
     *
     * Generated from protobuf enum <code>WINDOWS = 2;</code>
     */
    const WINDOWS = 2;
    /**
     * MULTI_IP_SUBNET feature type.
     *
     * Generated from protobuf enum <code>MULTI_IP_SUBNET = 3;</code>
     */
    const MULTI_IP_SUBNET = 3;
    /**
     * UEFI_COMPATIBLE feature type.
     *
     * Generated from protobuf enum <code>UEFI_COMPATIBLE = 4;</code>
     */
    const UEFI_COMPATIBLE = 4;
    /**
     * SECURE_BOOT feature type.
     *
     * Generated from protobuf enum <code>SECURE_BOOT = 5;</code>
     */
    const SECURE_BOOT = 5;
    /**
     * GVNIC feature type.
     *
     * Generated from protobuf enum <code>GVNIC = 6;</code>
     */
    const GVNIC = 6;
    /**
     * SEV_CAPABLE feature type.
     *
     * Generated from protobuf enum <code>SEV_CAPABLE = 7;</code>
     */
    const SEV_CAPABLE = 7;
    /**
     * BARE_METAL_LINUX_COMPATIBLE feature type.
     *
     * Generated from protobuf enum <code>BARE_METAL_LINUX_COMPATIBLE = 8;</code>
     */
    const BARE_METAL_LINUX_COMPATIBLE = 8;
    /**
     * SUSPEND_RESUME_COMPATIBLE feature type.
     *
     * Generated from protobuf enum <code>SUSPEND_RESUME_COMPATIBLE = 9;</code>
     */
    const SUSPEND_RESUME_COMPATIBLE = 9;
    /**
     * SEV_LIVE_MIGRATABLE feature type.
     *
     * Generated from protobuf enum <code>SEV_LIVE_MIGRATABLE = 10;</code>
     */
    const SEV_LIVE_MIGRATABLE = 10;
    /**
     * SEV_SNP_CAPABLE feature type.
     *
     * Generated from protobuf enum <code>SEV_SNP_CAPABLE = 11;</code>
     */
    const SEV_SNP_CAPABLE = 11;
    /**
     * TDX_CAPABLE feature type.
     *
     * Generated from protobuf enum <code>TDX_CAPABLE = 12;</code>
     */
    const TDX_CAPABLE = 12;
    /**
     * IDPF feature type.
     *
     * Generated from protobuf enum <code>IDPF = 13;</code>
     */
    const IDPF = 13;
    /**
     * SEV_LIVE_MIGRATABLE_V2 feature type.
     *
     * Generated from protobuf enum <code>SEV_LIVE_MIGRATABLE_V2 = 14;</code>
     */
    const SEV_LIVE_MIGRATABLE_V2 = 14;

    private static $valueToName = [
        self::FEATURE_TYPE_UNSPECIFIED => 'FEATURE_TYPE_UNSPECIFIED',
        self::VIRTIO_SCSI_MULTIQUEUE => 'VIRTIO_SCSI_MULTIQUEUE',
        self::WINDOWS => 'WINDOWS',
        self::MULTI_IP_SUBNET => 'MULTI_IP_SUBNET',
        self::UEFI_COMPATIBLE => 'UEFI_COMPATIBLE',
        self::SECURE_BOOT => 'SECURE_BOOT',
        self::GVNIC => 'GVNIC',
        self::SEV_CAPABLE => 'SEV_CAPABLE',
        self::BARE_METAL_LINUX_COMPATIBLE => 'BARE_METAL_LINUX_COMPATIBLE',
        self::SUSPEND_RESUME_COMPATIBLE => 'SUSPEND_RESUME_COMPATIBLE',
        self::SEV_LIVE_MIGRATABLE => 'SEV_LIVE_MIGRATABLE',
        self::SEV_SNP_CAPABLE => 'SEV_SNP_CAPABLE',
        self::TDX_CAPABLE => 'TDX_CAPABLE',
        self::IDPF => 'IDPF',
        self::SEV_LIVE_MIGRATABLE_V2 => 'SEV_LIVE_MIGRATABLE_V2',
    ];

    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);
    }
}

