<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

use UnexpectedValueException;

/**
 * Protobuf type <code>proto.BotMetricsThreadEntryPoint</code>
 */
class BotMetricsThreadEntryPoint
{
    /**
     * Generated from protobuf enum <code>BOT_METRICS_THREAD_ENTRY_POINT_UNSPECIFIED = 0;</code>
     */
    const BOT_METRICS_THREAD_ENTRY_POINT_UNSPECIFIED = 0;
    /**
     * Generated from protobuf enum <code>AI_TAB_THREAD = 1;</code>
     */
    const AI_TAB_THREAD = 1;
    /**
     * Generated from protobuf enum <code>AI_HOME_THREAD = 2;</code>
     */
    const AI_HOME_THREAD = 2;
    /**
     * Generated from protobuf enum <code>AI_DEEPLINK_IMMERSIVE_THREAD = 3;</code>
     */
    const AI_DEEPLINK_IMMERSIVE_THREAD = 3;
    /**
     * Generated from protobuf enum <code>AI_DEEPLINK_THREAD = 4;</code>
     */
    const AI_DEEPLINK_THREAD = 4;
    /**
     * Generated from protobuf enum <code>ASK_META_AI_CONTEXT_MENU_THREAD = 5;</code>
     */
    const ASK_META_AI_CONTEXT_MENU_THREAD = 5;

    private static $valueToName = [
        self::BOT_METRICS_THREAD_ENTRY_POINT_UNSPECIFIED => 'BOT_METRICS_THREAD_ENTRY_POINT_UNSPECIFIED',
        self::AI_TAB_THREAD => 'AI_TAB_THREAD',
        self::AI_HOME_THREAD => 'AI_HOME_THREAD',
        self::AI_DEEPLINK_IMMERSIVE_THREAD => 'AI_DEEPLINK_IMMERSIVE_THREAD',
        self::AI_DEEPLINK_THREAD => 'AI_DEEPLINK_THREAD',
        self::ASK_META_AI_CONTEXT_MENU_THREAD => 'ASK_META_AI_CONTEXT_MENU_THREAD',
    ];

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

