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

namespace Rv\Data\Action;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.data.Action.ActionType</code>
 */
class ActionType
{
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_UNKNOWN = 0;</code>
     */
    const ACTION_TYPE_UNKNOWN = 0;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_STAGE_LAYOUT = 1;</code>
     */
    const ACTION_TYPE_STAGE_LAYOUT = 1;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_MEDIA = 2;</code>
     */
    const ACTION_TYPE_MEDIA = 2;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_TIMER = 3;</code>
     */
    const ACTION_TYPE_TIMER = 3;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_COMMUNICATION = 4;</code>
     */
    const ACTION_TYPE_COMMUNICATION = 4;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_CLEAR = 5;</code>
     */
    const ACTION_TYPE_CLEAR = 5;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_PROP = 6;</code>
     */
    const ACTION_TYPE_PROP = 6;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_MASK = 7;</code>
     */
    const ACTION_TYPE_MASK = 7;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_MESSAGE = 8;</code>
     */
    const ACTION_TYPE_MESSAGE = 8;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_SOCIAL_MEDIA = 9;</code>
     */
    const ACTION_TYPE_SOCIAL_MEDIA = 9;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_MULTISCREEN = 10;</code>
     */
    const ACTION_TYPE_MULTISCREEN = 10;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_PRESENTATION_SLIDE = 11;</code>
     */
    const ACTION_TYPE_PRESENTATION_SLIDE = 11;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_FOREGROUND_MEDIA = 12;</code>
     */
    const ACTION_TYPE_FOREGROUND_MEDIA = 12;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_BACKGROUND_MEDIA = 13;</code>
     */
    const ACTION_TYPE_BACKGROUND_MEDIA = 13;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_PRESENTATION_DOCUMENT = 14;</code>
     */
    const ACTION_TYPE_PRESENTATION_DOCUMENT = 14;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_PROP_SLIDE = 15;</code>
     */
    const ACTION_TYPE_PROP_SLIDE = 15;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_EXTERNAL_PRESENTATION = 17;</code>
     */
    const ACTION_TYPE_EXTERNAL_PRESENTATION = 17;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_AUDIENCE_LOOK = 18;</code>
     */
    const ACTION_TYPE_AUDIENCE_LOOK = 18;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_AUDIO_INPUT = 19;</code>
     */
    const ACTION_TYPE_AUDIO_INPUT = 19;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_AUDIO_BIN_PLAYLIST = 20;</code>
     */
    const ACTION_TYPE_AUDIO_BIN_PLAYLIST = 20;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_MEDIA_BIN_PLAYLIST = 21;</code>
     */
    const ACTION_TYPE_MEDIA_BIN_PLAYLIST = 21;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_SLIDE_DESTINATION = 22;</code>
     */
    const ACTION_TYPE_SLIDE_DESTINATION = 22;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_MACRO = 23;</code>
     */
    const ACTION_TYPE_MACRO = 23;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_CLEAR_GROUP = 24;</code>
     */
    const ACTION_TYPE_CLEAR_GROUP = 24;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_CAPTURE = 25;</code>
     */
    const ACTION_TYPE_CAPTURE = 25;
    /**
     * Generated from protobuf enum <code>ACTION_TYPE_LIBRARY_PLAYLIST = 26;</code>
     */
    const ACTION_TYPE_LIBRARY_PLAYLIST = 26;

    private static $valueToName = [
        self::ACTION_TYPE_UNKNOWN => 'ACTION_TYPE_UNKNOWN',
        self::ACTION_TYPE_STAGE_LAYOUT => 'ACTION_TYPE_STAGE_LAYOUT',
        self::ACTION_TYPE_MEDIA => 'ACTION_TYPE_MEDIA',
        self::ACTION_TYPE_TIMER => 'ACTION_TYPE_TIMER',
        self::ACTION_TYPE_COMMUNICATION => 'ACTION_TYPE_COMMUNICATION',
        self::ACTION_TYPE_CLEAR => 'ACTION_TYPE_CLEAR',
        self::ACTION_TYPE_PROP => 'ACTION_TYPE_PROP',
        self::ACTION_TYPE_MASK => 'ACTION_TYPE_MASK',
        self::ACTION_TYPE_MESSAGE => 'ACTION_TYPE_MESSAGE',
        self::ACTION_TYPE_SOCIAL_MEDIA => 'ACTION_TYPE_SOCIAL_MEDIA',
        self::ACTION_TYPE_MULTISCREEN => 'ACTION_TYPE_MULTISCREEN',
        self::ACTION_TYPE_PRESENTATION_SLIDE => 'ACTION_TYPE_PRESENTATION_SLIDE',
        self::ACTION_TYPE_FOREGROUND_MEDIA => 'ACTION_TYPE_FOREGROUND_MEDIA',
        self::ACTION_TYPE_BACKGROUND_MEDIA => 'ACTION_TYPE_BACKGROUND_MEDIA',
        self::ACTION_TYPE_PRESENTATION_DOCUMENT => 'ACTION_TYPE_PRESENTATION_DOCUMENT',
        self::ACTION_TYPE_PROP_SLIDE => 'ACTION_TYPE_PROP_SLIDE',
        self::ACTION_TYPE_EXTERNAL_PRESENTATION => 'ACTION_TYPE_EXTERNAL_PRESENTATION',
        self::ACTION_TYPE_AUDIENCE_LOOK => 'ACTION_TYPE_AUDIENCE_LOOK',
        self::ACTION_TYPE_AUDIO_INPUT => 'ACTION_TYPE_AUDIO_INPUT',
        self::ACTION_TYPE_AUDIO_BIN_PLAYLIST => 'ACTION_TYPE_AUDIO_BIN_PLAYLIST',
        self::ACTION_TYPE_MEDIA_BIN_PLAYLIST => 'ACTION_TYPE_MEDIA_BIN_PLAYLIST',
        self::ACTION_TYPE_SLIDE_DESTINATION => 'ACTION_TYPE_SLIDE_DESTINATION',
        self::ACTION_TYPE_MACRO => 'ACTION_TYPE_MACRO',
        self::ACTION_TYPE_CLEAR_GROUP => 'ACTION_TYPE_CLEAR_GROUP',
        self::ACTION_TYPE_CAPTURE => 'ACTION_TYPE_CAPTURE',
        self::ACTION_TYPE_LIBRARY_PLAYLIST => 'ACTION_TYPE_LIBRARY_PLAYLIST',
    ];

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

