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

namespace Mynaparrot\PlugnmeetProto;

use UnexpectedValueException;

/**
 * Protobuf type <code>plugnmeet.RoomArtifactType</code>
 */
class RoomArtifactType
{
    /**
     * Generated from protobuf enum <code>UNKNOWN_ARTIFACT = 0;</code>
     */
    const UNKNOWN_ARTIFACT = 0;
    /**
     * Generated from protobuf enum <code>MEETING_ANALYTICS = 1;</code>
     */
    const MEETING_ANALYTICS = 1;
    /**
     * Generated from protobuf enum <code>MEETING_SUMMARY = 2;</code>
     */
    const MEETING_SUMMARY = 2;
    /**
     * Generated from protobuf enum <code>MEETING_SUMMARY_USAGE = 3;</code>
     */
    const MEETING_SUMMARY_USAGE = 3;
    /**
     * Generated from protobuf enum <code>SPEECH_TRANSCRIPTION = 4;</code>
     */
    const SPEECH_TRANSCRIPTION = 4;
    /**
     * Generated from protobuf enum <code>SPEECH_TRANSCRIPTION_USAGE = 5;</code>
     */
    const SPEECH_TRANSCRIPTION_USAGE = 5;
    /**
     * Generated from protobuf enum <code>SYNTHESIZED_SPEECH_USAGE = 6;</code>
     */
    const SYNTHESIZED_SPEECH_USAGE = 6;
    /**
     * Generated from protobuf enum <code>CHAT_TRANSLATION_USAGE = 7;</code>
     */
    const CHAT_TRANSLATION_USAGE = 7;
    /**
     * Generated from protobuf enum <code>AI_TEXT_CHAT_INTERACTION_USAGE = 8;</code>
     */
    const AI_TEXT_CHAT_INTERACTION_USAGE = 8;
    /**
     * Generated from protobuf enum <code>AI_TEXT_CHAT_SUMMARIZATION_USAGE = 9;</code>
     */
    const AI_TEXT_CHAT_SUMMARIZATION_USAGE = 9;

    private static $valueToName = [
        self::UNKNOWN_ARTIFACT => 'UNKNOWN_ARTIFACT',
        self::MEETING_ANALYTICS => 'MEETING_ANALYTICS',
        self::MEETING_SUMMARY => 'MEETING_SUMMARY',
        self::MEETING_SUMMARY_USAGE => 'MEETING_SUMMARY_USAGE',
        self::SPEECH_TRANSCRIPTION => 'SPEECH_TRANSCRIPTION',
        self::SPEECH_TRANSCRIPTION_USAGE => 'SPEECH_TRANSCRIPTION_USAGE',
        self::SYNTHESIZED_SPEECH_USAGE => 'SYNTHESIZED_SPEECH_USAGE',
        self::CHAT_TRANSLATION_USAGE => 'CHAT_TRANSLATION_USAGE',
        self::AI_TEXT_CHAT_INTERACTION_USAGE => 'AI_TEXT_CHAT_INTERACTION_USAGE',
        self::AI_TEXT_CHAT_SUMMARIZATION_USAGE => 'AI_TEXT_CHAT_SUMMARIZATION_USAGE',
    ];

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

