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

namespace Google\Cloud\Dataplex\V1;

use UnexpectedValueException;

/**
 * Identifies the cloud system that manages the data storage.
 *
 * Protobuf type <code>google.cloud.dataplex.v1.StorageSystem</code>
 */
class StorageSystem
{
    /**
     * Storage system unspecified.
     *
     * Generated from protobuf enum <code>STORAGE_SYSTEM_UNSPECIFIED = 0;</code>
     */
    const STORAGE_SYSTEM_UNSPECIFIED = 0;
    /**
     * The entity data is contained within a Cloud Storage bucket.
     *
     * Generated from protobuf enum <code>CLOUD_STORAGE = 1;</code>
     */
    const CLOUD_STORAGE = 1;
    /**
     * The entity data is contained within a BigQuery dataset.
     *
     * Generated from protobuf enum <code>BIGQUERY = 2;</code>
     */
    const BIGQUERY = 2;

    private static $valueToName = [
        self::STORAGE_SYSTEM_UNSPECIFIED => 'STORAGE_SYSTEM_UNSPECIFIED',
        self::CLOUD_STORAGE => 'CLOUD_STORAGE',
        self::BIGQUERY => 'BIGQUERY',
    ];

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

