<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v25/enums/local_services_verification_artifact_status.proto

namespace Google\Ads\GoogleAds\V25\Enums\LocalServicesVerificationArtifactStatusEnum;

use UnexpectedValueException;

/**
 * Enums describing statuses of a local services verification artifact.
 *
 * Protobuf type <code>google.ads.googleads.v25.enums.LocalServicesVerificationArtifactStatusEnum.LocalServicesVerificationArtifactStatus</code>
 */
class LocalServicesVerificationArtifactStatus
{
    /**
     * Not specified.
     *
     * Generated from protobuf enum <code>UNSPECIFIED = 0;</code>
     */
    const UNSPECIFIED = 0;
    /**
     * Used for return value only. Represents value unknown in this version.
     *
     * Generated from protobuf enum <code>UNKNOWN = 1;</code>
     */
    const UNKNOWN = 1;
    /**
     * Artifact has passed verification.
     *
     * Generated from protobuf enum <code>PASSED = 2;</code>
     */
    const PASSED = 2;
    /**
     * Artifact has failed verification.
     *
     * Generated from protobuf enum <code>FAILED = 3;</code>
     */
    const FAILED = 3;
    /**
     * Artifact is in the process of verification.
     *
     * Generated from protobuf enum <code>PENDING = 4;</code>
     */
    const PENDING = 4;
    /**
     * Artifact needs user to upload information before it is verified.
     *
     * Generated from protobuf enum <code>NO_SUBMISSION = 5;</code>
     */
    const NO_SUBMISSION = 5;
    /**
     * Artifact has been cancelled by the user.
     *
     * Generated from protobuf enum <code>CANCELLED = 6;</code>
     */
    const CANCELLED = 6;

    private static $valueToName = [
        self::UNSPECIFIED => 'UNSPECIFIED',
        self::UNKNOWN => 'UNKNOWN',
        self::PASSED => 'PASSED',
        self::FAILED => 'FAILED',
        self::PENDING => 'PENDING',
        self::NO_SUBMISSION => 'NO_SUBMISSION',
        self::CANCELLED => 'CANCELLED',
    ];

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

