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

namespace Rv\Data\API_v1_ClearGroup;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.data.API_v1_ClearGroup.API_v1_ClearGroupLayerType</code>
 */
class API_v1_ClearGroupLayerType
{
    /**
     * Generated from protobuf enum <code>music = 0;</code>
     */
    const music = 0;
    /**
     * Generated from protobuf enum <code>audio_effects = 1;</code>
     */
    const audio_effects = 1;
    /**
     * Generated from protobuf enum <code>props = 2;</code>
     */
    const props = 2;
    /**
     * Generated from protobuf enum <code>messages = 3;</code>
     */
    const messages = 3;
    /**
     * Generated from protobuf enum <code>announcements = 4;</code>
     */
    const announcements = 4;
    /**
     * Generated from protobuf enum <code>presentation = 5;</code>
     */
    const presentation = 5;
    /**
     * Generated from protobuf enum <code>presentation_media = 6;</code>
     */
    const presentation_media = 6;
    /**
     * Generated from protobuf enum <code>video_input = 7;</code>
     */
    const video_input = 7;

    private static $valueToName = [
        self::music => 'music',
        self::audio_effects => 'audio_effects',
        self::props => 'props',
        self::messages => 'messages',
        self::announcements => 'announcements',
        self::presentation => 'presentation',
        self::presentation_media => 'presentation_media',
        self::video_input => 'video_input',
    ];

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

