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

namespace PhpWA\Protocol\Proto\MessageAssociation;

use UnexpectedValueException;

/**
 * Protobuf type <code>proto.MessageAssociation.AssociationType</code>
 */
class AssociationType
{
    /**
     * Generated from protobuf enum <code>UNKNOWN = 0;</code>
     */
    const UNKNOWN = 0;
    /**
     * Generated from protobuf enum <code>MEDIA_ALBUM = 1;</code>
     */
    const MEDIA_ALBUM = 1;
    /**
     * Generated from protobuf enum <code>BOT_PLUGIN = 2;</code>
     */
    const BOT_PLUGIN = 2;
    /**
     * Generated from protobuf enum <code>EVENT_COVER_IMAGE = 3;</code>
     */
    const EVENT_COVER_IMAGE = 3;
    /**
     * Generated from protobuf enum <code>STATUS_POLL = 4;</code>
     */
    const STATUS_POLL = 4;
    /**
     * Generated from protobuf enum <code>HD_VIDEO_DUAL_UPLOAD = 5;</code>
     */
    const HD_VIDEO_DUAL_UPLOAD = 5;
    /**
     * Generated from protobuf enum <code>STATUS_EXTERNAL_RESHARE = 6;</code>
     */
    const STATUS_EXTERNAL_RESHARE = 6;
    /**
     * Generated from protobuf enum <code>MEDIA_POLL = 7;</code>
     */
    const MEDIA_POLL = 7;
    /**
     * Generated from protobuf enum <code>STATUS_ADD_YOURS = 8;</code>
     */
    const STATUS_ADD_YOURS = 8;
    /**
     * Generated from protobuf enum <code>STATUS_NOTIFICATION = 9;</code>
     */
    const STATUS_NOTIFICATION = 9;
    /**
     * Generated from protobuf enum <code>HD_IMAGE_DUAL_UPLOAD = 10;</code>
     */
    const HD_IMAGE_DUAL_UPLOAD = 10;
    /**
     * Generated from protobuf enum <code>STICKER_ANNOTATION = 11;</code>
     */
    const STICKER_ANNOTATION = 11;
    /**
     * Generated from protobuf enum <code>MOTION_PHOTO = 12;</code>
     */
    const MOTION_PHOTO = 12;
    /**
     * Generated from protobuf enum <code>STATUS_LINK_ACTION = 13;</code>
     */
    const STATUS_LINK_ACTION = 13;
    /**
     * Generated from protobuf enum <code>VIEW_ALL_REPLIES = 14;</code>
     */
    const VIEW_ALL_REPLIES = 14;
    /**
     * Generated from protobuf enum <code>STATUS_ADD_YOURS_AI_IMAGINE = 15;</code>
     */
    const STATUS_ADD_YOURS_AI_IMAGINE = 15;
    /**
     * Generated from protobuf enum <code>STATUS_QUESTION = 16;</code>
     */
    const STATUS_QUESTION = 16;
    /**
     * Generated from protobuf enum <code>STATUS_ADD_YOURS_DIWALI = 17;</code>
     */
    const STATUS_ADD_YOURS_DIWALI = 17;
    /**
     * Generated from protobuf enum <code>STATUS_REACTION = 18;</code>
     */
    const STATUS_REACTION = 18;
    /**
     * Generated from protobuf enum <code>HEVC_VIDEO_DUAL_UPLOAD = 19;</code>
     */
    const HEVC_VIDEO_DUAL_UPLOAD = 19;

    private static $valueToName = [
        self::UNKNOWN => 'UNKNOWN',
        self::MEDIA_ALBUM => 'MEDIA_ALBUM',
        self::BOT_PLUGIN => 'BOT_PLUGIN',
        self::EVENT_COVER_IMAGE => 'EVENT_COVER_IMAGE',
        self::STATUS_POLL => 'STATUS_POLL',
        self::HD_VIDEO_DUAL_UPLOAD => 'HD_VIDEO_DUAL_UPLOAD',
        self::STATUS_EXTERNAL_RESHARE => 'STATUS_EXTERNAL_RESHARE',
        self::MEDIA_POLL => 'MEDIA_POLL',
        self::STATUS_ADD_YOURS => 'STATUS_ADD_YOURS',
        self::STATUS_NOTIFICATION => 'STATUS_NOTIFICATION',
        self::HD_IMAGE_DUAL_UPLOAD => 'HD_IMAGE_DUAL_UPLOAD',
        self::STICKER_ANNOTATION => 'STICKER_ANNOTATION',
        self::MOTION_PHOTO => 'MOTION_PHOTO',
        self::STATUS_LINK_ACTION => 'STATUS_LINK_ACTION',
        self::VIEW_ALL_REPLIES => 'VIEW_ALL_REPLIES',
        self::STATUS_ADD_YOURS_AI_IMAGINE => 'STATUS_ADD_YOURS_AI_IMAGINE',
        self::STATUS_QUESTION => 'STATUS_QUESTION',
        self::STATUS_ADD_YOURS_DIWALI => 'STATUS_ADD_YOURS_DIWALI',
        self::STATUS_REACTION => 'STATUS_REACTION',
        self::HEVC_VIDEO_DUAL_UPLOAD => 'HEVC_VIDEO_DUAL_UPLOAD',
    ];

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

