<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/resources.proto
namespace Matomo\Dependencies\GoogleAnalyticsImporter\Google\Analytics\Admin\V1alpha;

use UnexpectedValueException;
/**
 * The coarse conversion value set on the updatePostbackConversionValue SDK call
 * when a ConversionValues.event_mappings conditions are satisfied. For
 * more information, see
 * [SKAdNetwork.CoarseConversionValue](https://developer.apple.com/documentation/storekit/skadnetwork/coarseconversionvalue).
 *
 * Protobuf type <code>google.analytics.admin.v1alpha.CoarseValue</code>
 */
class CoarseValue
{
    /**
     * Coarse value not specified.
     *
     * Generated from protobuf enum <code>COARSE_VALUE_UNSPECIFIED = 0;</code>
     */
    const COARSE_VALUE_UNSPECIFIED = 0;
    /**
     * Coarse value of low.
     *
     * Generated from protobuf enum <code>COARSE_VALUE_LOW = 1;</code>
     */
    const COARSE_VALUE_LOW = 1;
    /**
     * Coarse value of medium.
     *
     * Generated from protobuf enum <code>COARSE_VALUE_MEDIUM = 2;</code>
     */
    const COARSE_VALUE_MEDIUM = 2;
    /**
     * Coarse value of high.
     *
     * Generated from protobuf enum <code>COARSE_VALUE_HIGH = 3;</code>
     */
    const COARSE_VALUE_HIGH = 3;
    private static $valueToName = [self::COARSE_VALUE_UNSPECIFIED => 'COARSE_VALUE_UNSPECIFIED', self::COARSE_VALUE_LOW => 'COARSE_VALUE_LOW', self::COARSE_VALUE_MEDIUM => 'COARSE_VALUE_MEDIUM', self::COARSE_VALUE_HIGH => 'COARSE_VALUE_HIGH'];
    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);
    }
}
