<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/analytics/admin/v1alpha/resources.proto

namespace Google\Analytics\Admin\V1alpha;

use UnexpectedValueException;

/**
 * Types of resources whose changes may be returned from change history.
 *
 * Protobuf type <code>google.analytics.admin.v1alpha.ChangeHistoryResourceType</code>
 */
class ChangeHistoryResourceType
{
    /**
     * Resource type unknown or not specified.
     *
     * Generated from protobuf enum <code>CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0;</code>
     */
    const CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0;
    /**
     * Account resource
     *
     * Generated from protobuf enum <code>ACCOUNT = 1;</code>
     */
    const ACCOUNT = 1;
    /**
     * Property resource
     *
     * Generated from protobuf enum <code>PROPERTY = 2;</code>
     */
    const PROPERTY = 2;
    /**
     * FirebaseLink resource
     *
     * Generated from protobuf enum <code>FIREBASE_LINK = 6;</code>
     */
    const FIREBASE_LINK = 6;
    /**
     * GoogleAdsLink resource
     *
     * Generated from protobuf enum <code>GOOGLE_ADS_LINK = 7;</code>
     */
    const GOOGLE_ADS_LINK = 7;
    /**
     * GoogleSignalsSettings resource
     *
     * Generated from protobuf enum <code>GOOGLE_SIGNALS_SETTINGS = 8;</code>
     */
    const GOOGLE_SIGNALS_SETTINGS = 8;
    /**
     * ConversionEvent resource
     *
     * Generated from protobuf enum <code>CONVERSION_EVENT = 9;</code>
     */
    const CONVERSION_EVENT = 9;
    /**
     * MeasurementProtocolSecret resource
     *
     * Generated from protobuf enum <code>MEASUREMENT_PROTOCOL_SECRET = 10;</code>
     */
    const MEASUREMENT_PROTOCOL_SECRET = 10;
    /**
     * CustomDimension resource
     *
     * Generated from protobuf enum <code>CUSTOM_DIMENSION = 11;</code>
     */
    const CUSTOM_DIMENSION = 11;
    /**
     * CustomMetric resource
     *
     * Generated from protobuf enum <code>CUSTOM_METRIC = 12;</code>
     */
    const CUSTOM_METRIC = 12;
    /**
     * DataRetentionSettings resource
     *
     * Generated from protobuf enum <code>DATA_RETENTION_SETTINGS = 13;</code>
     */
    const DATA_RETENTION_SETTINGS = 13;
    /**
     * DisplayVideo360AdvertiserLink resource
     *
     * Generated from protobuf enum <code>DISPLAY_VIDEO_360_ADVERTISER_LINK = 14;</code>
     */
    const DISPLAY_VIDEO_360_ADVERTISER_LINK = 14;
    /**
     * DisplayVideo360AdvertiserLinkProposal resource
     *
     * Generated from protobuf enum <code>DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15;</code>
     */
    const DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15;
    /**
     * SearchAds360Link resource
     *
     * Generated from protobuf enum <code>SEARCH_ADS_360_LINK = 16;</code>
     */
    const SEARCH_ADS_360_LINK = 16;
    /**
     * DataStream resource
     *
     * Generated from protobuf enum <code>DATA_STREAM = 18;</code>
     */
    const DATA_STREAM = 18;
    /**
     * AttributionSettings resource
     *
     * Generated from protobuf enum <code>ATTRIBUTION_SETTINGS = 20;</code>
     */
    const ATTRIBUTION_SETTINGS = 20;
    /**
     * ExpandedDataSet resource
     *
     * Generated from protobuf enum <code>EXPANDED_DATA_SET = 21;</code>
     */
    const EXPANDED_DATA_SET = 21;
    /**
     * ChannelGroup resource
     *
     * Generated from protobuf enum <code>CHANNEL_GROUP = 22;</code>
     */
    const CHANNEL_GROUP = 22;
    /**
     * EnhancedMeasurementSettings resource
     *
     * Generated from protobuf enum <code>ENHANCED_MEASUREMENT_SETTINGS = 24;</code>
     */
    const ENHANCED_MEASUREMENT_SETTINGS = 24;

    private static $valueToName = [
        self::CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED => 'CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED',
        self::ACCOUNT => 'ACCOUNT',
        self::PROPERTY => 'PROPERTY',
        self::FIREBASE_LINK => 'FIREBASE_LINK',
        self::GOOGLE_ADS_LINK => 'GOOGLE_ADS_LINK',
        self::GOOGLE_SIGNALS_SETTINGS => 'GOOGLE_SIGNALS_SETTINGS',
        self::CONVERSION_EVENT => 'CONVERSION_EVENT',
        self::MEASUREMENT_PROTOCOL_SECRET => 'MEASUREMENT_PROTOCOL_SECRET',
        self::CUSTOM_DIMENSION => 'CUSTOM_DIMENSION',
        self::CUSTOM_METRIC => 'CUSTOM_METRIC',
        self::DATA_RETENTION_SETTINGS => 'DATA_RETENTION_SETTINGS',
        self::DISPLAY_VIDEO_360_ADVERTISER_LINK => 'DISPLAY_VIDEO_360_ADVERTISER_LINK',
        self::DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL => 'DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL',
        self::SEARCH_ADS_360_LINK => 'SEARCH_ADS_360_LINK',
        self::DATA_STREAM => 'DATA_STREAM',
        self::ATTRIBUTION_SETTINGS => 'ATTRIBUTION_SETTINGS',
        self::EXPANDED_DATA_SET => 'EXPANDED_DATA_SET',
        self::CHANNEL_GROUP => 'CHANNEL_GROUP',
        self::ENHANCED_MEASUREMENT_SETTINGS => 'ENHANCED_MEASUREMENT_SETTINGS',
    ];

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

