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

namespace Google\Ads\GoogleAds\V23\Enums\LocalServicesLeadSurveyDissatisfiedReasonEnum;

use UnexpectedValueException;

/**
 * Provider's reason for not being satisfied with the lead.
 *
 * Protobuf type <code>google.ads.googleads.v23.enums.LocalServicesLeadSurveyDissatisfiedReasonEnum.SurveyDissatisfiedReason</code>
 */
class SurveyDissatisfiedReason
{
    /**
     * 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;
    /**
     * Other reasons.
     *
     * Generated from protobuf enum <code>OTHER_DISSATISFIED_REASON = 2;</code>
     */
    const OTHER_DISSATISFIED_REASON = 2;
    /**
     * Lead was for a service that does not match the business' service area.
     *
     * Generated from protobuf enum <code>GEO_MISMATCH = 3;</code>
     */
    const GEO_MISMATCH = 3;
    /**
     * Lead was for a service that is not offered by the business.
     *
     * Generated from protobuf enum <code>JOB_TYPE_MISMATCH = 4;</code>
     */
    const JOB_TYPE_MISMATCH = 4;
    /**
     * Lead was by a customer that was not ready to book.
     *
     * Generated from protobuf enum <code>NOT_READY_TO_BOOK = 5;</code>
     */
    const NOT_READY_TO_BOOK = 5;
    /**
     * Lead was a spam. Example: lead was from a bot, silent called, scam, etc.
     *
     * Generated from protobuf enum <code>SPAM = 6;</code>
     */
    const SPAM = 6;
    /**
     * Lead was a duplicate of another lead that is, customer contacted the
     * business more than once.
     *
     * Generated from protobuf enum <code>DUPLICATE = 7;</code>
     */
    const DUPLICATE = 7;
    /**
     * Lead due to solicitation. Example: a person trying to get a job or
     * selling a product, etc.
     *
     * Generated from protobuf enum <code>SOLICITATION = 8;</code>
     */
    const SOLICITATION = 8;

    private static $valueToName = [
        self::UNSPECIFIED => 'UNSPECIFIED',
        self::UNKNOWN => 'UNKNOWN',
        self::OTHER_DISSATISFIED_REASON => 'OTHER_DISSATISFIED_REASON',
        self::GEO_MISMATCH => 'GEO_MISMATCH',
        self::JOB_TYPE_MISMATCH => 'JOB_TYPE_MISMATCH',
        self::NOT_READY_TO_BOOK => 'NOT_READY_TO_BOOK',
        self::SPAM => 'SPAM',
        self::DUPLICATE => 'DUPLICATE',
        self::SOLICITATION => 'SOLICITATION',
    ];

    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(SurveyDissatisfiedReason::class, \Google\Ads\GoogleAds\V23\Enums\LocalServicesLeadSurveyDissatisfiedReasonEnum_SurveyDissatisfiedReason::class);

