<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/conversation_profile.proto

namespace Google\Cloud\Dialogflow\V2\SuggestionFeature;

use UnexpectedValueException;

/**
 * Defines the type of Human Agent Assistant feature.
 *
 * Protobuf type <code>google.cloud.dialogflow.v2.SuggestionFeature.Type</code>
 */
class Type
{
    /**
     * Unspecified feature type.
     *
     * Generated from protobuf enum <code>TYPE_UNSPECIFIED = 0;</code>
     */
    const TYPE_UNSPECIFIED = 0;
    /**
     * Run article suggestion model for chat.
     *
     * Generated from protobuf enum <code>ARTICLE_SUGGESTION = 1;</code>
     */
    const ARTICLE_SUGGESTION = 1;
    /**
     * Run FAQ model for chat.
     *
     * Generated from protobuf enum <code>FAQ = 2;</code>
     */
    const FAQ = 2;
    /**
     * Run smart reply model for chat.
     *
     * Generated from protobuf enum <code>SMART_REPLY = 3;</code>
     */
    const SMART_REPLY = 3;
    /**
     * Run conversation summarization model for chat.
     *
     * Generated from protobuf enum <code>CONVERSATION_SUMMARIZATION = 8;</code>
     */
    const CONVERSATION_SUMMARIZATION = 8;
    /**
     * Run knowledge search with text input from agent or text generated query.
     *
     * Generated from protobuf enum <code>KNOWLEDGE_SEARCH = 14;</code>
     */
    const KNOWLEDGE_SEARCH = 14;
    /**
     * Run knowledge assist with automatic query generation.
     *
     * Generated from protobuf enum <code>KNOWLEDGE_ASSIST = 15;</code>
     */
    const KNOWLEDGE_ASSIST = 15;

    private static $valueToName = [
        self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED',
        self::ARTICLE_SUGGESTION => 'ARTICLE_SUGGESTION',
        self::FAQ => 'FAQ',
        self::SMART_REPLY => 'SMART_REPLY',
        self::CONVERSATION_SUMMARIZATION => 'CONVERSATION_SUMMARIZATION',
        self::KNOWLEDGE_SEARCH => 'KNOWLEDGE_SEARCH',
        self::KNOWLEDGE_ASSIST => 'KNOWLEDGE_ASSIST',
    ];

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


