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

namespace Google\Cloud\DataCatalog\Lineage\ConfigManagement\V1\Config\Ingestion\IngestionRule\IntegrationSelector;

use UnexpectedValueException;

/**
 * Integration to which the rule applies.
 * This enum is expected to grow over time.
 *
 * Protobuf type <code>google.cloud.datacatalog.lineage.configmanagement.v1.Config.Ingestion.IngestionRule.IntegrationSelector.Integration</code>
 */
class Integration
{
    /**
     * Integration is Unspecified
     *
     * Generated from protobuf enum <code>INTEGRATION_UNSPECIFIED = 0;</code>
     */
    const INTEGRATION_UNSPECIFIED = 0;
    /**
     * Dataproc
     *
     * Generated from protobuf enum <code>DATAPROC = 2;</code>
     */
    const DATAPROC = 2;
    /**
     * Looker Core
     *
     * Generated from protobuf enum <code>LOOKER_CORE = 3;</code>
     */
    const LOOKER_CORE = 3;

    private static $valueToName = [
        self::INTEGRATION_UNSPECIFIED => 'INTEGRATION_UNSPECIFIED',
        self::DATAPROC => 'DATAPROC',
        self::LOOKER_CORE => 'LOOKER_CORE',
    ];

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

