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

namespace Mynaparrot\PlugnmeetProto;

use UnexpectedValueException;

/**
 * Protobuf type <code>plugnmeet.InsightsServiceType</code>
 */
class InsightsServiceType
{
    /**
     * Generated from protobuf enum <code>INSIGHTS_SERVICE_TYPE_UNSPECIFIED = 0;</code>
     */
    const INSIGHTS_SERVICE_TYPE_UNSPECIFIED = 0;
    /**
     * Generated from protobuf enum <code>INSIGHTS_SERVICE_TYPE_TRANSCRIPTION = 1;</code>
     */
    const INSIGHTS_SERVICE_TYPE_TRANSCRIPTION = 1;
    /**
     * Generated from protobuf enum <code>INSIGHTS_SERVICE_TYPE_TRANSLATION = 2;</code>
     */
    const INSIGHTS_SERVICE_TYPE_TRANSLATION = 2;
    /**
     * Generated from protobuf enum <code>INSIGHTS_SERVICE_TYPE_SPEECH_SYNTHESIS = 3;</code>
     */
    const INSIGHTS_SERVICE_TYPE_SPEECH_SYNTHESIS = 3;
    /**
     * Generated from protobuf enum <code>INSIGHTS_SERVICE_TYPE_AI_TEXT_CHAT = 4;</code>
     */
    const INSIGHTS_SERVICE_TYPE_AI_TEXT_CHAT = 4;
    /**
     * Generated from protobuf enum <code>INSIGHTS_SERVICE_TYPE_CHAT_TRANSLATION = 5;</code>
     */
    const INSIGHTS_SERVICE_TYPE_CHAT_TRANSLATION = 5;
    /**
     * Generated from protobuf enum <code>INSIGHTS_SERVICE_TYPE_MEETING_SUMMARIZING = 6;</code>
     */
    const INSIGHTS_SERVICE_TYPE_MEETING_SUMMARIZING = 6;

    private static $valueToName = [
        self::INSIGHTS_SERVICE_TYPE_UNSPECIFIED => 'INSIGHTS_SERVICE_TYPE_UNSPECIFIED',
        self::INSIGHTS_SERVICE_TYPE_TRANSCRIPTION => 'INSIGHTS_SERVICE_TYPE_TRANSCRIPTION',
        self::INSIGHTS_SERVICE_TYPE_TRANSLATION => 'INSIGHTS_SERVICE_TYPE_TRANSLATION',
        self::INSIGHTS_SERVICE_TYPE_SPEECH_SYNTHESIS => 'INSIGHTS_SERVICE_TYPE_SPEECH_SYNTHESIS',
        self::INSIGHTS_SERVICE_TYPE_AI_TEXT_CHAT => 'INSIGHTS_SERVICE_TYPE_AI_TEXT_CHAT',
        self::INSIGHTS_SERVICE_TYPE_CHAT_TRANSLATION => 'INSIGHTS_SERVICE_TYPE_CHAT_TRANSLATION',
        self::INSIGHTS_SERVICE_TYPE_MEETING_SUMMARIZING => 'INSIGHTS_SERVICE_TYPE_MEETING_SUMMARIZING',
    ];

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

