<?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.BotFeedbackKind</code>
 */
class BotFeedbackKind
{
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_POSITIVE = 0;</code>
     */
    const BOT_FEEDBACK_POSITIVE = 0;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_GENERIC = 1;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_GENERIC = 1;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_HELPFUL = 2;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_INTERESTING = 3;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_ACCURATE = 4;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_SAFE = 5;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_SAFE = 5;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_OTHER = 6;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_OTHER = 6;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_REFUSED = 7;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_REFUSED = 7;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING = 8;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT = 9;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_PERSONALIZED = 10;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_CLARITY = 11;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_CLARITY = 11;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON = 12;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;</code>
     */
    const BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY = 13;
    /**
     * Generated from protobuf enum <code>BOT_FEEDBACK_NEGATIVE = 14;</code>
     */
    const BOT_FEEDBACK_NEGATIVE = 14;

    private static $valueToName = [
        self::BOT_FEEDBACK_POSITIVE => 'BOT_FEEDBACK_POSITIVE',
        self::BOT_FEEDBACK_NEGATIVE_GENERIC => 'BOT_FEEDBACK_NEGATIVE_GENERIC',
        self::BOT_FEEDBACK_NEGATIVE_HELPFUL => 'BOT_FEEDBACK_NEGATIVE_HELPFUL',
        self::BOT_FEEDBACK_NEGATIVE_INTERESTING => 'BOT_FEEDBACK_NEGATIVE_INTERESTING',
        self::BOT_FEEDBACK_NEGATIVE_ACCURATE => 'BOT_FEEDBACK_NEGATIVE_ACCURATE',
        self::BOT_FEEDBACK_NEGATIVE_SAFE => 'BOT_FEEDBACK_NEGATIVE_SAFE',
        self::BOT_FEEDBACK_NEGATIVE_OTHER => 'BOT_FEEDBACK_NEGATIVE_OTHER',
        self::BOT_FEEDBACK_NEGATIVE_REFUSED => 'BOT_FEEDBACK_NEGATIVE_REFUSED',
        self::BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING => 'BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING',
        self::BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT => 'BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT',
        self::BOT_FEEDBACK_NEGATIVE_PERSONALIZED => 'BOT_FEEDBACK_NEGATIVE_PERSONALIZED',
        self::BOT_FEEDBACK_NEGATIVE_CLARITY => 'BOT_FEEDBACK_NEGATIVE_CLARITY',
        self::BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON => 'BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON',
        self::BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY => 'BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY',
        self::BOT_FEEDBACK_NEGATIVE => 'BOT_FEEDBACK_NEGATIVE',
    ];

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

