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

namespace Google\Cloud\ContactCenterInsights\V1\AnnotatorSelector\SummarizationConfig;

use UnexpectedValueException;

/**
 * Summarization model to use, if `conversation_profile` is not used.
 *
 * Protobuf type <code>google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel</code>
 */
class SummarizationModel
{
    /**
     * Unspecified summarization model.
     *
     * Generated from protobuf enum <code>SUMMARIZATION_MODEL_UNSPECIFIED = 0;</code>
     */
    const SUMMARIZATION_MODEL_UNSPECIFIED = 0;
    /**
     * The CCAI baseline model.
     *
     * Generated from protobuf enum <code>BASELINE_MODEL = 1;</code>
     */
    const BASELINE_MODEL = 1;
    /**
     * The CCAI baseline model, V2.0.
     *
     * Generated from protobuf enum <code>BASELINE_MODEL_V2_0 = 2;</code>
     */
    const BASELINE_MODEL_V2_0 = 2;

    private static $valueToName = [
        self::SUMMARIZATION_MODEL_UNSPECIFIED => 'SUMMARIZATION_MODEL_UNSPECIFIED',
        self::BASELINE_MODEL => 'BASELINE_MODEL',
        self::BASELINE_MODEL_V2_0 => 'BASELINE_MODEL_V2_0',
    ];

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


