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

namespace Google\Cloud\AIPlatform\V1\PublisherModel;

use UnexpectedValueException;

/**
 * An enum representing the launch stage of a PublisherModel.
 *
 * Protobuf type <code>google.cloud.aiplatform.v1.PublisherModel.LaunchStage</code>
 */
class LaunchStage
{
    /**
     * The model launch stage is unspecified.
     *
     * Generated from protobuf enum <code>LAUNCH_STAGE_UNSPECIFIED = 0;</code>
     */
    const LAUNCH_STAGE_UNSPECIFIED = 0;
    /**
     * Used to indicate the PublisherModel is at Experimental launch stage,
     * available to a small set of customers.
     *
     * Generated from protobuf enum <code>EXPERIMENTAL = 1;</code>
     */
    const EXPERIMENTAL = 1;
    /**
     * Used to indicate the PublisherModel is at Private Preview launch stage,
     * only available to a small set of customers, although a larger set of
     * customers than an Experimental launch. Previews are the first launch
     * stage used to get feedback from customers.
     *
     * Generated from protobuf enum <code>PRIVATE_PREVIEW = 2;</code>
     */
    const PRIVATE_PREVIEW = 2;
    /**
     * Used to indicate the PublisherModel is at Public Preview launch stage,
     * available to all customers, although not supported for production
     * workloads.
     *
     * Generated from protobuf enum <code>PUBLIC_PREVIEW = 3;</code>
     */
    const PUBLIC_PREVIEW = 3;
    /**
     * Used to indicate the PublisherModel is at GA launch stage, available to
     * all customers and ready for production workload.
     *
     * Generated from protobuf enum <code>GA = 4;</code>
     */
    const GA = 4;

    private static $valueToName = [
        self::LAUNCH_STAGE_UNSPECIFIED => 'LAUNCH_STAGE_UNSPECIFIED',
        self::EXPERIMENTAL => 'EXPERIMENTAL',
        self::PRIVATE_PREVIEW => 'PRIVATE_PREVIEW',
        self::PUBLIC_PREVIEW => 'PUBLIC_PREVIEW',
        self::GA => 'GA',
    ];

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


