public enum GeoTargetingErrorReason extends Enum<GeoTargetingErrorReason>
Java class for GeoTargetingError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="GeoTargetingError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="TARGETED_LOCATIONS_NOT_EXCLUDABLE"/>
<enumeration value="EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED"/>
<enumeration value="POSTAL_CODES_CANNOT_BE_EXCLUDED"/>
<enumeration value="UNTARGETABLE_LOCATION"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED
Excluded locations cannot have any of their children targeted.
|
POSTAL_CODES_CANNOT_BE_EXCLUDED
Postal codes cannot be excluded.
|
TARGETED_LOCATIONS_NOT_EXCLUDABLE
A location that is targeted cannot also be excluded.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UNTARGETABLE_LOCATION
Indicates that location targeting is not allowed.
|
| Modifier and Type | Method and Description |
|---|---|
static GeoTargetingErrorReason |
fromValue(String v) |
String |
value() |
static GeoTargetingErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeoTargetingErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeoTargetingErrorReason TARGETED_LOCATIONS_NOT_EXCLUDABLE
public static final GeoTargetingErrorReason EXCLUDED_LOCATIONS_CANNOT_HAVE_CHILDREN_TARGETED
public static final GeoTargetingErrorReason POSTAL_CODES_CANNOT_BE_EXCLUDED
public static final GeoTargetingErrorReason UNTARGETABLE_LOCATION
public static final GeoTargetingErrorReason UNKNOWN
public static GeoTargetingErrorReason[] values()
for (GeoTargetingErrorReason c : GeoTargetingErrorReason.values()) System.out.println(c);
public static GeoTargetingErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static GeoTargetingErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.