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

namespace Mynaparrot\PlugnmeetProto;

use UnexpectedValueException;

/**
 * start AI Text Chat
 *
 * Protobuf type <code>plugnmeet.InsightsAITextChatRole</code>
 */
class InsightsAITextChatRole
{
    /**
     * Generated from protobuf enum <code>INSIGHTS_AI_TEXT_CHAT_ROLE_UNSPECIFIED = 0;</code>
     */
    const INSIGHTS_AI_TEXT_CHAT_ROLE_UNSPECIFIED = 0;
    /**
     * Generated from protobuf enum <code>INSIGHTS_AI_TEXT_CHAT_ROLE_SYSTEM = 1;</code>
     */
    const INSIGHTS_AI_TEXT_CHAT_ROLE_SYSTEM = 1;
    /**
     * Generated from protobuf enum <code>INSIGHTS_AI_TEXT_CHAT_ROLE_USER = 2;</code>
     */
    const INSIGHTS_AI_TEXT_CHAT_ROLE_USER = 2;
    /**
     * Generated from protobuf enum <code>INSIGHTS_AI_TEXT_CHAT_ROLE_MODEL = 3;</code>
     */
    const INSIGHTS_AI_TEXT_CHAT_ROLE_MODEL = 3;

    private static $valueToName = [
        self::INSIGHTS_AI_TEXT_CHAT_ROLE_UNSPECIFIED => 'INSIGHTS_AI_TEXT_CHAT_ROLE_UNSPECIFIED',
        self::INSIGHTS_AI_TEXT_CHAT_ROLE_SYSTEM => 'INSIGHTS_AI_TEXT_CHAT_ROLE_SYSTEM',
        self::INSIGHTS_AI_TEXT_CHAT_ROLE_USER => 'INSIGHTS_AI_TEXT_CHAT_ROLE_USER',
        self::INSIGHTS_AI_TEXT_CHAT_ROLE_MODEL => 'INSIGHTS_AI_TEXT_CHAT_ROLE_MODEL',
    ];

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

