<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/ces/v1/conversation.proto

namespace Google\Cloud\Ces\V1\Conversation;

use UnexpectedValueException;

/**
 * Type of the input message.
 *
 * Protobuf type <code>google.cloud.ces.v1.Conversation.InputType</code>
 */
class InputType
{
    /**
     * Unspecified input type.
     *
     * Generated from protobuf enum <code>INPUT_TYPE_UNSPECIFIED = 0;</code>
     */
    const INPUT_TYPE_UNSPECIFIED = 0;
    /**
     * The input message is text.
     *
     * Generated from protobuf enum <code>INPUT_TYPE_TEXT = 1;</code>
     */
    const INPUT_TYPE_TEXT = 1;
    /**
     * The input message is audio.
     *
     * Generated from protobuf enum <code>INPUT_TYPE_AUDIO = 2;</code>
     */
    const INPUT_TYPE_AUDIO = 2;
    /**
     * The input message is image.
     *
     * Generated from protobuf enum <code>INPUT_TYPE_IMAGE = 3;</code>
     */
    const INPUT_TYPE_IMAGE = 3;
    /**
     * The input message is blob file.
     *
     * Generated from protobuf enum <code>INPUT_TYPE_BLOB = 4;</code>
     */
    const INPUT_TYPE_BLOB = 4;
    /**
     * The input message is client function tool response.
     *
     * Generated from protobuf enum <code>INPUT_TYPE_TOOL_RESPONSE = 5;</code>
     */
    const INPUT_TYPE_TOOL_RESPONSE = 5;
    /**
     * The input message are variables.
     *
     * Generated from protobuf enum <code>INPUT_TYPE_VARIABLES = 6;</code>
     */
    const INPUT_TYPE_VARIABLES = 6;

    private static $valueToName = [
        self::INPUT_TYPE_UNSPECIFIED => 'INPUT_TYPE_UNSPECIFIED',
        self::INPUT_TYPE_TEXT => 'INPUT_TYPE_TEXT',
        self::INPUT_TYPE_AUDIO => 'INPUT_TYPE_AUDIO',
        self::INPUT_TYPE_IMAGE => 'INPUT_TYPE_IMAGE',
        self::INPUT_TYPE_BLOB => 'INPUT_TYPE_BLOB',
        self::INPUT_TYPE_TOOL_RESPONSE => 'INPUT_TYPE_TOOL_RESPONSE',
        self::INPUT_TYPE_VARIABLES => 'INPUT_TYPE_VARIABLES',
    ];

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


