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

namespace Rv\Data\ClearGroupsDocument\ClearGroup;

use UnexpectedValueException;

/**
 * Protobuf type <code>rv.data.ClearGroupsDocument.ClearGroup.ImageType</code>
 */
class ImageType
{
    /**
     * Generated from protobuf enum <code>ImageTypeCustom = 0;</code>
     */
    const ImageTypeCustom = 0;
    /**
     * Generated from protobuf enum <code>ImageTypeOne = 1;</code>
     */
    const ImageTypeOne = 1;
    /**
     * Generated from protobuf enum <code>ImageTypeTwo = 2;</code>
     */
    const ImageTypeTwo = 2;
    /**
     * Generated from protobuf enum <code>ImageTypeThree = 3;</code>
     */
    const ImageTypeThree = 3;
    /**
     * Generated from protobuf enum <code>ImageTypeFour = 4;</code>
     */
    const ImageTypeFour = 4;
    /**
     * Generated from protobuf enum <code>ImageTypeFive = 5;</code>
     */
    const ImageTypeFive = 5;
    /**
     * Generated from protobuf enum <code>ImageTypeSix = 6;</code>
     */
    const ImageTypeSix = 6;
    /**
     * Generated from protobuf enum <code>ImageTypeSeven = 7;</code>
     */
    const ImageTypeSeven = 7;
    /**
     * Generated from protobuf enum <code>ImageTypeEight = 8;</code>
     */
    const ImageTypeEight = 8;
    /**
     * Generated from protobuf enum <code>ImageTypeNine = 9;</code>
     */
    const ImageTypeNine = 9;
    /**
     * Generated from protobuf enum <code>ImageTypeZero = 10;</code>
     */
    const ImageTypeZero = 10;
    /**
     * Generated from protobuf enum <code>ImageTypeAll = 11;</code>
     */
    const ImageTypeAll = 11;
    /**
     * Generated from protobuf enum <code>ImageTypeMegahorn = 12;</code>
     */
    const ImageTypeMegahorn = 12;
    /**
     * Generated from protobuf enum <code>ImageTypePlay = 13;</code>
     */
    const ImageTypePlay = 13;
    /**
     * Generated from protobuf enum <code>ImageTypeBulb = 14;</code>
     */
    const ImageTypeBulb = 14;
    /**
     * Generated from protobuf enum <code>ImageTypeSunglasses = 15;</code>
     */
    const ImageTypeSunglasses = 15;
    /**
     * Generated from protobuf enum <code>ImageTypeArrow = 16;</code>
     */
    const ImageTypeArrow = 16;
    /**
     * Generated from protobuf enum <code>ImageTypeTarget = 17;</code>
     */
    const ImageTypeTarget = 17;
    /**
     * Generated from protobuf enum <code>ImageTypeStar = 18;</code>
     */
    const ImageTypeStar = 18;
    /**
     * Generated from protobuf enum <code>ImageTypeSun = 19;</code>
     */
    const ImageTypeSun = 19;
    /**
     * Generated from protobuf enum <code>ImageTypeBell = 20;</code>
     */
    const ImageTypeBell = 20;
    /**
     * Generated from protobuf enum <code>ImageTypePaperclip = 21;</code>
     */
    const ImageTypePaperclip = 21;
    /**
     * Generated from protobuf enum <code>ImageTypeFlask = 22;</code>
     */
    const ImageTypeFlask = 22;
    /**
     * Generated from protobuf enum <code>ImageTypeEyeglasses = 23;</code>
     */
    const ImageTypeEyeglasses = 23;
    /**
     * Generated from protobuf enum <code>ImageTypeCupcake = 24;</code>
     */
    const ImageTypeCupcake = 24;
    /**
     * Generated from protobuf enum <code>ImageTypeSlide = 25;</code>
     */
    const ImageTypeSlide = 25;
    /**
     * Generated from protobuf enum <code>ImageTypeHat = 26;</code>
     */
    const ImageTypeHat = 26;
    /**
     * Generated from protobuf enum <code>ImageTypeFlower = 27;</code>
     */
    const ImageTypeFlower = 27;
    /**
     * Generated from protobuf enum <code>ImageTypeHeart = 28;</code>
     */
    const ImageTypeHeart = 28;
    /**
     * Generated from protobuf enum <code>ImageTypeMessage = 29;</code>
     */
    const ImageTypeMessage = 29;
    /**
     * Generated from protobuf enum <code>ImageTypeAudio = 30;</code>
     */
    const ImageTypeAudio = 30;
    /**
     * Generated from protobuf enum <code>ImageTypeCloud = 31;</code>
     */
    const ImageTypeCloud = 31;
    /**
     * Generated from protobuf enum <code>ImageTypeExclamation = 32;</code>
     */
    const ImageTypeExclamation = 32;

    private static $valueToName = [
        self::ImageTypeCustom => 'ImageTypeCustom',
        self::ImageTypeOne => 'ImageTypeOne',
        self::ImageTypeTwo => 'ImageTypeTwo',
        self::ImageTypeThree => 'ImageTypeThree',
        self::ImageTypeFour => 'ImageTypeFour',
        self::ImageTypeFive => 'ImageTypeFive',
        self::ImageTypeSix => 'ImageTypeSix',
        self::ImageTypeSeven => 'ImageTypeSeven',
        self::ImageTypeEight => 'ImageTypeEight',
        self::ImageTypeNine => 'ImageTypeNine',
        self::ImageTypeZero => 'ImageTypeZero',
        self::ImageTypeAll => 'ImageTypeAll',
        self::ImageTypeMegahorn => 'ImageTypeMegahorn',
        self::ImageTypePlay => 'ImageTypePlay',
        self::ImageTypeBulb => 'ImageTypeBulb',
        self::ImageTypeSunglasses => 'ImageTypeSunglasses',
        self::ImageTypeArrow => 'ImageTypeArrow',
        self::ImageTypeTarget => 'ImageTypeTarget',
        self::ImageTypeStar => 'ImageTypeStar',
        self::ImageTypeSun => 'ImageTypeSun',
        self::ImageTypeBell => 'ImageTypeBell',
        self::ImageTypePaperclip => 'ImageTypePaperclip',
        self::ImageTypeFlask => 'ImageTypeFlask',
        self::ImageTypeEyeglasses => 'ImageTypeEyeglasses',
        self::ImageTypeCupcake => 'ImageTypeCupcake',
        self::ImageTypeSlide => 'ImageTypeSlide',
        self::ImageTypeHat => 'ImageTypeHat',
        self::ImageTypeFlower => 'ImageTypeFlower',
        self::ImageTypeHeart => 'ImageTypeHeart',
        self::ImageTypeMessage => 'ImageTypeMessage',
        self::ImageTypeAudio => 'ImageTypeAudio',
        self::ImageTypeCloud => 'ImageTypeCloud',
        self::ImageTypeExclamation => 'ImageTypeExclamation',
    ];

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

