<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/talent/v4beta1/application.proto

namespace Google\Cloud\Talent\V4beta1\Application;

use UnexpectedValueException;

/**
 * The stage of the application.
 *
 * Protobuf type <code>google.cloud.talent.v4beta1.Application.ApplicationStage</code>
 */
class ApplicationStage
{
    /**
     * Default value.
     *
     * Generated from protobuf enum <code>APPLICATION_STAGE_UNSPECIFIED = 0;</code>
     */
    const APPLICATION_STAGE_UNSPECIFIED = 0;
    /**
     * Candidate has applied or a recruiter put candidate into consideration but
     * candidate is not yet screened / no decision has been made to move or not
     * move the candidate to the next stage.
     *
     * Generated from protobuf enum <code>NEW = 1;</code>
     */
    const PBNEW = 1;
    /**
     * A recruiter decided to screen the candidate for this role.
     *
     * Generated from protobuf enum <code>SCREEN = 2;</code>
     */
    const SCREEN = 2;
    /**
     * Candidate is being / was sent to the customer / hiring manager for
     * detailed review.
     *
     * Generated from protobuf enum <code>HIRING_MANAGER_REVIEW = 3;</code>
     */
    const HIRING_MANAGER_REVIEW = 3;
    /**
     * Candidate was approved by the client / hiring manager and is being / was
     * interviewed for the role.
     *
     * Generated from protobuf enum <code>INTERVIEW = 4;</code>
     */
    const INTERVIEW = 4;
    /**
     * Candidate will be / has been given an offer of employment.
     *
     * Generated from protobuf enum <code>OFFER_EXTENDED = 5;</code>
     */
    const OFFER_EXTENDED = 5;
    /**
     * Candidate has accepted their offer of employment.
     *
     * Generated from protobuf enum <code>OFFER_ACCEPTED = 6;</code>
     */
    const OFFER_ACCEPTED = 6;
    /**
     * Candidate has begun (or completed) their employment or assignment with
     * the employer.
     *
     * Generated from protobuf enum <code>STARTED = 7;</code>
     */
    const STARTED = 7;

    private static $valueToName = [
        self::APPLICATION_STAGE_UNSPECIFIED => 'APPLICATION_STAGE_UNSPECIFIED',
        self::PBNEW => 'PBNEW',
        self::SCREEN => 'SCREEN',
        self::HIRING_MANAGER_REVIEW => 'HIRING_MANAGER_REVIEW',
        self::INTERVIEW => 'INTERVIEW',
        self::OFFER_EXTENDED => 'OFFER_EXTENDED',
        self::OFFER_ACCEPTED => 'OFFER_ACCEPTED',
        self::STARTED => 'STARTED',
    ];

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

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApplicationStage::class, \Google\Cloud\Talent\V4beta1\Application_ApplicationStage::class);

