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

namespace Google\Ads\GoogleAds\V23\Enums\ThirdPartyReachIntegrationPartnerEnum;

use UnexpectedValueException;

/**
 * Enum describing available third party integration partners for reach
 * verification.
 *
 * Protobuf type <code>google.ads.googleads.v23.enums.ThirdPartyReachIntegrationPartnerEnum.ThirdPartyReachIntegrationPartner</code>
 */
class ThirdPartyReachIntegrationPartner
{
    /**
     * Not specified.
     *
     * Generated from protobuf enum <code>UNSPECIFIED = 0;</code>
     */
    const UNSPECIFIED = 0;
    /**
     * Used for return value only. Represents value unknown in this version.
     *
     * Generated from protobuf enum <code>UNKNOWN = 1;</code>
     */
    const UNKNOWN = 1;
    /**
     * Nielsen.
     *
     * Generated from protobuf enum <code>NIELSEN = 2;</code>
     */
    const NIELSEN = 2;
    /**
     * Comscore.
     *
     * Generated from protobuf enum <code>COMSCORE = 3;</code>
     */
    const COMSCORE = 3;
    /**
     * Kantar.
     *
     * Generated from protobuf enum <code>KANTAR_MILLWARD_BROWN = 4;</code>
     */
    const KANTAR_MILLWARD_BROWN = 4;
    /**
     * Video Research.
     *
     * Generated from protobuf enum <code>VIDEO_RESEARCH = 5;</code>
     */
    const VIDEO_RESEARCH = 5;
    /**
     * Gemius.
     *
     * Generated from protobuf enum <code>GEMIUS = 6;</code>
     */
    const GEMIUS = 6;
    /**
     * MediaScope.
     *
     * Generated from protobuf enum <code>MEDIA_SCOPE = 7;</code>
     */
    const MEDIA_SCOPE = 7;
    /**
     * AudienceProject
     *
     * Generated from protobuf enum <code>AUDIENCE_PROJECT = 8;</code>
     */
    const AUDIENCE_PROJECT = 8;
    /**
     * VideoAmp
     *
     * Generated from protobuf enum <code>VIDEO_AMP = 9;</code>
     */
    const VIDEO_AMP = 9;
    /**
     * iSpot.tv
     *
     * Generated from protobuf enum <code>ISPOT_TV = 10;</code>
     */
    const ISPOT_TV = 10;

    private static $valueToName = [
        self::UNSPECIFIED => 'UNSPECIFIED',
        self::UNKNOWN => 'UNKNOWN',
        self::NIELSEN => 'NIELSEN',
        self::COMSCORE => 'COMSCORE',
        self::KANTAR_MILLWARD_BROWN => 'KANTAR_MILLWARD_BROWN',
        self::VIDEO_RESEARCH => 'VIDEO_RESEARCH',
        self::GEMIUS => 'GEMIUS',
        self::MEDIA_SCOPE => 'MEDIA_SCOPE',
        self::AUDIENCE_PROJECT => 'AUDIENCE_PROJECT',
        self::VIDEO_AMP => 'VIDEO_AMP',
        self::ISPOT_TV => 'ISPOT_TV',
    ];

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

