public enum DayPartTargetingErrorReason extends Enum<DayPartTargetingErrorReason>
Java class for DayPartTargetingError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="DayPartTargetingError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_HOUR"/>
<enumeration value="INVALID_MINUTE"/>
<enumeration value="END_TIME_NOT_AFTER_START_TIME"/>
<enumeration value="TIME_PERIODS_OVERLAP"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
END_TIME_NOT_AFTER_START_TIME
The
DayPart.endTime cannot be after DayPart.startTime. |
INVALID_HOUR
Hour of day must be between 0 and 24, inclusive.
|
INVALID_MINUTE
Minute of hour must be one of 0, 15,30, 45.
|
TIME_PERIODS_OVERLAP
Cannot create day-parts that overlap.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static DayPartTargetingErrorReason |
fromValue(String v) |
String |
value() |
static DayPartTargetingErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DayPartTargetingErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayPartTargetingErrorReason INVALID_HOUR
public static final DayPartTargetingErrorReason INVALID_MINUTE
public static final DayPartTargetingErrorReason END_TIME_NOT_AFTER_START_TIME
DayPart.endTime cannot be after DayPart.startTime.public static final DayPartTargetingErrorReason TIME_PERIODS_OVERLAP
public static final DayPartTargetingErrorReason UNKNOWN
public static DayPartTargetingErrorReason[] values()
for (DayPartTargetingErrorReason c : DayPartTargetingErrorReason.values()) System.out.println(c);
public static DayPartTargetingErrorReason 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 DayPartTargetingErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.