<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/enums/benchmarks_customer_percentile_tier.proto

namespace Google\Ads\GoogleAds\V25\Enums\BenchmarksCustomerPercentileTierEnum;

use UnexpectedValueException;

/**
 * Customer percentile tiers for the Benchmarks Service.
 *
 * Protobuf type <code>google.ads.googleads.v25.enums.BenchmarksCustomerPercentileTierEnum.BenchmarksCustomerPercentileTier</code>
 */
class BenchmarksCustomerPercentileTier
{
    /**
     * Not specified.
     *
     * Generated from protobuf enum <code>UNSPECIFIED = 0;</code>
     */
    const UNSPECIFIED = 0;
    /**
     * The value is unknown in this version.
     *
     * Generated from protobuf enum <code>UNKNOWN = 1;</code>
     */
    const UNKNOWN = 1;
    /**
     * Developing: The customer ranks below the 10th percentile among
     * advertisers scoped by the analysis. Range: [0%, 10%).
     *
     * Generated from protobuf enum <code>DEVELOPING = 2;</code>
     */
    const DEVELOPING = 2;
    /**
     * Entry level: The customer ranks in the 10th to 25th percentile among
     * advertisers scoped by the analysis. Range: [10%, 25%).
     *
     * Generated from protobuf enum <code>ENTRY_LEVEL = 3;</code>
     */
    const ENTRY_LEVEL = 3;
    /**
     * Emerging Player: The customer ranks in the 25th to 50th percentile among
     * advertisers scoped by the analysis. Range: [25%, 50%).
     *
     * Generated from protobuf enum <code>EMERGING_PLAYER = 4;</code>
     */
    const EMERGING_PLAYER = 4;
    /**
     * Competitor: The customer ranks in the 50th to 75th percentile among
     * advertisers scoped by the analysis. Range: [50%, 75%).
     *
     * Generated from protobuf enum <code>COMPETITOR = 5;</code>
     */
    const COMPETITOR = 5;
    /**
     * Strong competitor: The customer ranks in the 75th to 90th percentile
     * among advertisers scoped by the analysis. Range: [75%, 90%).
     *
     * Generated from protobuf enum <code>STRONG_COMPETITOR = 6;</code>
     */
    const STRONG_COMPETITOR = 6;
    /**
     * Market leader: The customer ranks at or above the 90th percentile among
     * advertisers scoped by the analysis. Range: [90%, 100%].
     *
     * Generated from protobuf enum <code>MARKET_LEADER = 7;</code>
     */
    const MARKET_LEADER = 7;

    private static $valueToName = [
        self::UNSPECIFIED => 'UNSPECIFIED',
        self::UNKNOWN => 'UNKNOWN',
        self::DEVELOPING => 'DEVELOPING',
        self::ENTRY_LEVEL => 'ENTRY_LEVEL',
        self::EMERGING_PLAYER => 'EMERGING_PLAYER',
        self::COMPETITOR => 'COMPETITOR',
        self::STRONG_COMPETITOR => 'STRONG_COMPETITOR',
        self::MARKET_LEADER => 'MARKET_LEADER',
    ];

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

