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

namespace Rv\Analytics\Trigger\Action\ClearLayer;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.analytics.Trigger.Action.ClearLayer.ClearLayerType</code>
 */
class ClearLayerType
{
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_UNKNOWN = 0;</code>
     */
    const CLEAR_LAYER_TYPE_UNKNOWN = 0;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_AUDIO = 1;</code>
     */
    const CLEAR_LAYER_TYPE_AUDIO = 1;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_MESSAGES = 2;</code>
     */
    const CLEAR_LAYER_TYPE_MESSAGES = 2;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_PROPS = 3;</code>
     */
    const CLEAR_LAYER_TYPE_PROPS = 3;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_ANNOUNCEMENTS = 4;</code>
     */
    const CLEAR_LAYER_TYPE_ANNOUNCEMENTS = 4;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_SLIDE = 5;</code>
     */
    const CLEAR_LAYER_TYPE_SLIDE = 5;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_MEDIA = 6;</code>
     */
    const CLEAR_LAYER_TYPE_MEDIA = 6;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_VIDEO_INPUT = 7;</code>
     */
    const CLEAR_LAYER_TYPE_VIDEO_INPUT = 7;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_CLEAR_TO_LOGO = 8;</code>
     */
    const CLEAR_LAYER_TYPE_CLEAR_TO_LOGO = 8;
    /**
     * Generated from protobuf enum <code>CLEAR_LAYER_TYPE_CLEAR_GROUP = 9;</code>
     */
    const CLEAR_LAYER_TYPE_CLEAR_GROUP = 9;

    private static $valueToName = [
        self::CLEAR_LAYER_TYPE_UNKNOWN => 'CLEAR_LAYER_TYPE_UNKNOWN',
        self::CLEAR_LAYER_TYPE_AUDIO => 'CLEAR_LAYER_TYPE_AUDIO',
        self::CLEAR_LAYER_TYPE_MESSAGES => 'CLEAR_LAYER_TYPE_MESSAGES',
        self::CLEAR_LAYER_TYPE_PROPS => 'CLEAR_LAYER_TYPE_PROPS',
        self::CLEAR_LAYER_TYPE_ANNOUNCEMENTS => 'CLEAR_LAYER_TYPE_ANNOUNCEMENTS',
        self::CLEAR_LAYER_TYPE_SLIDE => 'CLEAR_LAYER_TYPE_SLIDE',
        self::CLEAR_LAYER_TYPE_MEDIA => 'CLEAR_LAYER_TYPE_MEDIA',
        self::CLEAR_LAYER_TYPE_VIDEO_INPUT => 'CLEAR_LAYER_TYPE_VIDEO_INPUT',
        self::CLEAR_LAYER_TYPE_CLEAR_TO_LOGO => 'CLEAR_LAYER_TYPE_CLEAR_TO_LOGO',
        self::CLEAR_LAYER_TYPE_CLEAR_GROUP => 'CLEAR_LAYER_TYPE_CLEAR_GROUP',
    ];

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

