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

namespace PhpWA\Protocol\Proto\BotFeedbackMessage;

use UnexpectedValueException;

/**
 * Protobuf type <code>proto.BotFeedbackMessage.BotFeedbackKindMultipleNegative</code>
 */
class BotFeedbackKindMultipleNegative
{
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_UNSPECIFIED = 0;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_UNSPECIFIED = 0;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC = 1;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL = 2;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING = 4;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE = 8;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE = 16;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER = 32;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED = 64;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING = 128;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;</code>
     */
    const BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT = 256;

    private static $valueToName = [
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_UNSPECIFIED => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_UNSPECIFIED',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING',
        self::BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT => 'BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT',
    ];

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

