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

namespace Rv\Analytics\Startup\ScreenConfiguration\Output;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.analytics.Startup.ScreenConfiguration.Output.OutputType</code>
 */
class OutputType
{
    /**
     * Generated from protobuf enum <code>OUTPUT_TYPE_UNKNOWN = 0;</code>
     */
    const OUTPUT_TYPE_UNKNOWN = 0;
    /**
     * Generated from protobuf enum <code>OUTPUT_TYPE_SDI = 1;</code>
     */
    const OUTPUT_TYPE_SDI = 1;
    /**
     * Generated from protobuf enum <code>OUTPUT_TYPE_NDI = 2;</code>
     */
    const OUTPUT_TYPE_NDI = 2;
    /**
     * Generated from protobuf enum <code>OUTPUT_TYPE_SYPHON = 3;</code>
     */
    const OUTPUT_TYPE_SYPHON = 3;
    /**
     * Generated from protobuf enum <code>OUTPUT_TYPE_SYSTEM = 4;</code>
     */
    const OUTPUT_TYPE_SYSTEM = 4;
    /**
     * Generated from protobuf enum <code>OUTPUT_TYPE_PLACEHOLDER = 5;</code>
     */
    const OUTPUT_TYPE_PLACEHOLDER = 5;
    /**
     * Generated from protobuf enum <code>OUTPUT_TYPE_DVI = 6;</code>
     */
    const OUTPUT_TYPE_DVI = 6;

    private static $valueToName = [
        self::OUTPUT_TYPE_UNKNOWN => 'OUTPUT_TYPE_UNKNOWN',
        self::OUTPUT_TYPE_SDI => 'OUTPUT_TYPE_SDI',
        self::OUTPUT_TYPE_NDI => 'OUTPUT_TYPE_NDI',
        self::OUTPUT_TYPE_SYPHON => 'OUTPUT_TYPE_SYPHON',
        self::OUTPUT_TYPE_SYSTEM => 'OUTPUT_TYPE_SYSTEM',
        self::OUTPUT_TYPE_PLACEHOLDER => 'OUTPUT_TYPE_PLACEHOLDER',
        self::OUTPUT_TYPE_DVI => 'OUTPUT_TYPE_DVI',
    ];

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

