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

namespace Google\Cloud\ConfidentialComputing\V1\NvidiaAttestation;

use UnexpectedValueException;

/**
 * GpuArchitectureType enumerates the supported GPU architecture types.
 *
 * Protobuf type <code>google.cloud.confidentialcomputing.v1.NvidiaAttestation.GpuArchitectureType</code>
 */
class GpuArchitectureType
{
    /**
     * Unspecified GPU architecture type.
     *
     * Generated from protobuf enum <code>GPU_ARCHITECTURE_TYPE_UNSPECIFIED = 0;</code>
     */
    const GPU_ARCHITECTURE_TYPE_UNSPECIFIED = 0;
    /**
     * Hopper GPU architecture type.
     *
     * Generated from protobuf enum <code>GPU_ARCHITECTURE_TYPE_HOPPER = 8;</code>
     */
    const GPU_ARCHITECTURE_TYPE_HOPPER = 8;
    /**
     * Blackwell GPU architecture type.
     *
     * Generated from protobuf enum <code>GPU_ARCHITECTURE_TYPE_BLACKWELL = 10;</code>
     */
    const GPU_ARCHITECTURE_TYPE_BLACKWELL = 10;

    private static $valueToName = [
        self::GPU_ARCHITECTURE_TYPE_UNSPECIFIED => 'GPU_ARCHITECTURE_TYPE_UNSPECIFIED',
        self::GPU_ARCHITECTURE_TYPE_HOPPER => 'GPU_ARCHITECTURE_TYPE_HOPPER',
        self::GPU_ARCHITECTURE_TYPE_BLACKWELL => 'GPU_ARCHITECTURE_TYPE_BLACKWELL',
    ];

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

