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

namespace Rv\Analytics\Trackedevents\EditorObjectAdded;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.analytics.trackedevents.EditorObjectAdded.InsertedType</code>
 */
class InsertedType
{
    /**
     * Generated from protobuf enum <code>EDITOR_TEXT = 0;</code>
     */
    const EDITOR_TEXT = 0;
    /**
     * Generated from protobuf enum <code>EDITOR_SHAPE = 1;</code>
     */
    const EDITOR_SHAPE = 1;
    /**
     * Generated from protobuf enum <code>EDITOR_CUSTOM_SHAPE = 2;</code>
     */
    const EDITOR_CUSTOM_SHAPE = 2;
    /**
     * Generated from protobuf enum <code>EDITOR_MEDIA = 3;</code>
     */
    const EDITOR_MEDIA = 3;
    /**
     * Generated from protobuf enum <code>EDITOR_VIDEO_INPUT = 4;</code>
     */
    const EDITOR_VIDEO_INPUT = 4;
    /**
     * Generated from protobuf enum <code>EDITOR_WEB = 5;</code>
     */
    const EDITOR_WEB = 5;
    /**
     * Generated from protobuf enum <code>EDITOR_CURRENT_SLIDE = 6;</code>
     */
    const EDITOR_CURRENT_SLIDE = 6;
    /**
     * Generated from protobuf enum <code>EDITOR_NEXT_SLIDE = 7;</code>
     */
    const EDITOR_NEXT_SLIDE = 7;
    /**
     * Generated from protobuf enum <code>EDITOR_SCREEN_PREVIEW = 8;</code>
     */
    const EDITOR_SCREEN_PREVIEW = 8;
    /**
     * Generated from protobuf enum <code>EDITOR_TIMER = 9;</code>
     */
    const EDITOR_TIMER = 9;
    /**
     * Generated from protobuf enum <code>EDITOR_SYSTEM_CLOCK = 10;</code>
     */
    const EDITOR_SYSTEM_CLOCK = 10;
    /**
     * Generated from protobuf enum <code>EDITOR_VIDEO_COUNTDOWN = 11;</code>
     */
    const EDITOR_VIDEO_COUNTDOWN = 11;
    /**
     * Generated from protobuf enum <code>EDITOR_AUDIO_COUNTDOWN = 12;</code>
     */
    const EDITOR_AUDIO_COUNTDOWN = 12;
    /**
     * Generated from protobuf enum <code>EDITOR_PLAYBACK_MARKER = 13;</code>
     */
    const EDITOR_PLAYBACK_MARKER = 13;
    /**
     * Generated from protobuf enum <code>EDITOR_CHORD_CHART = 14;</code>
     */
    const EDITOR_CHORD_CHART = 14;
    /**
     * Generated from protobuf enum <code>EDITOR_STAGE_MESSAGE = 15;</code>
     */
    const EDITOR_STAGE_MESSAGE = 15;
    /**
     * Generated from protobuf enum <code>EDITOR_PLANNING_CENTER_LIVE = 16;</code>
     */
    const EDITOR_PLANNING_CENTER_LIVE = 16;
    /**
     * Generated from protobuf enum <code>EDITOR_TIMECODE = 17;</code>
     */
    const EDITOR_TIMECODE = 17;
    /**
     * Generated from protobuf enum <code>EDITOR_GROUP = 18;</code>
     */
    const EDITOR_GROUP = 18;
    /**
     * Generated from protobuf enum <code>EDITOR_LABEL = 19;</code>
     */
    const EDITOR_LABEL = 19;
    /**
     * Generated from protobuf enum <code>EDITOR_CAPTURE_STATUS = 20;</code>
     */
    const EDITOR_CAPTURE_STATUS = 20;

    private static $valueToName = [
        self::EDITOR_TEXT => 'EDITOR_TEXT',
        self::EDITOR_SHAPE => 'EDITOR_SHAPE',
        self::EDITOR_CUSTOM_SHAPE => 'EDITOR_CUSTOM_SHAPE',
        self::EDITOR_MEDIA => 'EDITOR_MEDIA',
        self::EDITOR_VIDEO_INPUT => 'EDITOR_VIDEO_INPUT',
        self::EDITOR_WEB => 'EDITOR_WEB',
        self::EDITOR_CURRENT_SLIDE => 'EDITOR_CURRENT_SLIDE',
        self::EDITOR_NEXT_SLIDE => 'EDITOR_NEXT_SLIDE',
        self::EDITOR_SCREEN_PREVIEW => 'EDITOR_SCREEN_PREVIEW',
        self::EDITOR_TIMER => 'EDITOR_TIMER',
        self::EDITOR_SYSTEM_CLOCK => 'EDITOR_SYSTEM_CLOCK',
        self::EDITOR_VIDEO_COUNTDOWN => 'EDITOR_VIDEO_COUNTDOWN',
        self::EDITOR_AUDIO_COUNTDOWN => 'EDITOR_AUDIO_COUNTDOWN',
        self::EDITOR_PLAYBACK_MARKER => 'EDITOR_PLAYBACK_MARKER',
        self::EDITOR_CHORD_CHART => 'EDITOR_CHORD_CHART',
        self::EDITOR_STAGE_MESSAGE => 'EDITOR_STAGE_MESSAGE',
        self::EDITOR_PLANNING_CENTER_LIVE => 'EDITOR_PLANNING_CENTER_LIVE',
        self::EDITOR_TIMECODE => 'EDITOR_TIMECODE',
        self::EDITOR_GROUP => 'EDITOR_GROUP',
        self::EDITOR_LABEL => 'EDITOR_LABEL',
        self::EDITOR_CAPTURE_STATUS => 'EDITOR_CAPTURE_STATUS',
    ];

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

