<?php

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/data/v1alpha/analytics_data_api.proto
namespace SEOPressPro\Vendor\Google\Analytics\Data\V1alpha\RunFunnelReportRequest;

use UnexpectedValueException;
/**
 * Controls the dimensions present in the funnel visualization sub report
 * response.
 *
 * Protobuf type <code>google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType</code>
 */
class FunnelVisualizationType
{
    /**
     * Unspecified type.
     *
     * Generated from protobuf enum <code>FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0;</code>
     */
    const FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0;
    /**
     * A standard (stepped) funnel. The funnel visualization sub report in the
     * response will not contain date.
     *
     * Generated from protobuf enum <code>STANDARD_FUNNEL = 1;</code>
     */
    const STANDARD_FUNNEL = 1;
    /**
     * A trended (line chart) funnel. The funnel visualization sub report in the
     * response will contain the date dimension.
     *
     * Generated from protobuf enum <code>TRENDED_FUNNEL = 2;</code>
     */
    const TRENDED_FUNNEL = 2;
    private static $valueToName = [self::FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED => 'FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED', self::STANDARD_FUNNEL => 'STANDARD_FUNNEL', self::TRENDED_FUNNEL => 'TRENDED_FUNNEL'];
    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);
    }
}
