<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/datamanager/v1/user_list_license_client_account_type.proto

namespace Google\Ads\DataManager\V1;

use UnexpectedValueException;

/**
 * Possible product of a client account for a user list license.
 *
 * Protobuf type <code>google.ads.datamanager.v1.UserListLicenseClientAccountType</code>
 */
class UserListLicenseClientAccountType
{
    /**
     * Unknown.
     *
     * Generated from protobuf enum <code>USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_UNKNOWN = 0;</code>
     */
    const USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_UNKNOWN = 0;
    /**
     * Google Ads customer.
     *
     * Generated from protobuf enum <code>USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_ADS = 1;</code>
     */
    const USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_ADS = 1;
    /**
     * Display & Video 360 partner.
     *
     * Generated from protobuf enum <code>USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_PARTNER = 2;</code>
     */
    const USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_PARTNER = 2;
    /**
     * Display & Video 360 advertiser.
     *
     * Generated from protobuf enum <code>USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_ADVERTISER = 3;</code>
     */
    const USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_ADVERTISER = 3;
    /**
     * Google Ad Manager audience link.
     *
     * Generated from protobuf enum <code>USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_AD_MANAGER_AUDIENCE_LINK = 4;</code>
     */
    const USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_AD_MANAGER_AUDIENCE_LINK = 4;

    private static $valueToName = [
        self::USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_UNKNOWN => 'USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_UNKNOWN',
        self::USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_ADS => 'USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_ADS',
        self::USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_PARTNER => 'USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_PARTNER',
        self::USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_ADVERTISER => 'USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_ADVERTISER',
        self::USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_AD_MANAGER_AUDIENCE_LINK => 'USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_AD_MANAGER_AUDIENCE_LINK',
    ];

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

