Enum DateErrorEnum.DateError
- java.lang.Object
-
- java.lang.Enum<DateErrorEnum.DateError>
-
- com.google.ads.googleads.v10.errors.DateErrorEnum.DateError
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<DateErrorEnum.DateError>
- Enclosing class:
- DateErrorEnum
public static enum DateErrorEnum.DateError extends java.lang.Enum<DateErrorEnum.DateError> implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible date errors.
Protobuf enumgoogle.ads.googleads.v10.errors.DateErrorEnum.DateError
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULLBoth dates in range are null.DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATEDate range bounds are not in order.EARLIER_THAN_MINIMUM_DATEDate is before allowed minimum.INVALID_FIELD_VALUES_IN_DATEGiven field values do not correspond to a valid date.INVALID_FIELD_VALUES_IN_DATE_TIMEGiven field values do not correspond to a valid date time.INVALID_STRING_DATEThe string date's format should be yyyy-mm-dd.INVALID_STRING_DATE_TIME_MICROSThe string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.INVALID_STRING_DATE_TIME_SECONDSThe string date time's format should be yyyy-mm-dd hh:mm:ss.INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSETThe string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm.LATER_THAN_MAXIMUM_DATEDate is after allowed maximum.UNKNOWNThe received error code is not known in this version.UNRECOGNIZEDUNSPECIFIEDEnum unspecified.
-
Field Summary
Fields Modifier and Type Field Description static intDATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL_VALUEBoth dates in range are null.static intDATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE_VALUEDate range bounds are not in order.static intEARLIER_THAN_MINIMUM_DATE_VALUEDate is before allowed minimum.static intINVALID_FIELD_VALUES_IN_DATE_TIME_VALUEGiven field values do not correspond to a valid date time.static intINVALID_FIELD_VALUES_IN_DATE_VALUEGiven field values do not correspond to a valid date.static intINVALID_STRING_DATE_TIME_MICROS_VALUEThe string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.static intINVALID_STRING_DATE_TIME_SECONDS_VALUEThe string date time's format should be yyyy-mm-dd hh:mm:ss.static intINVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET_VALUEThe string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm.static intINVALID_STRING_DATE_VALUEThe string date's format should be yyyy-mm-dd.static intLATER_THAN_MAXIMUM_DATE_VALUEDate is after allowed maximum.static intUNKNOWN_VALUEThe received error code is not known in this version.static intUNSPECIFIED_VALUEEnum unspecified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DateErrorEnum.DateErrorforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<DateErrorEnum.DateError>internalGetValueMap()static DateErrorEnum.DateErrorvalueOf(int value)Deprecated.static DateErrorEnum.DateErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static DateErrorEnum.DateErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DateErrorEnum.DateError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final DateErrorEnum.DateError UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final DateErrorEnum.DateError UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1;
-
INVALID_FIELD_VALUES_IN_DATE
public static final DateErrorEnum.DateError INVALID_FIELD_VALUES_IN_DATE
Given field values do not correspond to a valid date.
INVALID_FIELD_VALUES_IN_DATE = 2;
-
INVALID_FIELD_VALUES_IN_DATE_TIME
public static final DateErrorEnum.DateError INVALID_FIELD_VALUES_IN_DATE_TIME
Given field values do not correspond to a valid date time.
INVALID_FIELD_VALUES_IN_DATE_TIME = 3;
-
INVALID_STRING_DATE
public static final DateErrorEnum.DateError INVALID_STRING_DATE
The string date's format should be yyyy-mm-dd.
INVALID_STRING_DATE = 4;
-
INVALID_STRING_DATE_TIME_MICROS
public static final DateErrorEnum.DateError INVALID_STRING_DATE_TIME_MICROS
The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.
INVALID_STRING_DATE_TIME_MICROS = 6;
-
INVALID_STRING_DATE_TIME_SECONDS
public static final DateErrorEnum.DateError INVALID_STRING_DATE_TIME_SECONDS
The string date time's format should be yyyy-mm-dd hh:mm:ss.
INVALID_STRING_DATE_TIME_SECONDS = 11;
-
INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET
public static final DateErrorEnum.DateError INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET
The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm.
INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET = 12;
-
EARLIER_THAN_MINIMUM_DATE
public static final DateErrorEnum.DateError EARLIER_THAN_MINIMUM_DATE
Date is before allowed minimum.
EARLIER_THAN_MINIMUM_DATE = 7;
-
LATER_THAN_MAXIMUM_DATE
public static final DateErrorEnum.DateError LATER_THAN_MAXIMUM_DATE
Date is after allowed maximum.
LATER_THAN_MAXIMUM_DATE = 8;
-
DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE
public static final DateErrorEnum.DateError DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE
Date range bounds are not in order.
DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9;
-
DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL
public static final DateErrorEnum.DateError DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL
Both dates in range are null.
DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10;
-
UNRECOGNIZED
public static final DateErrorEnum.DateError UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
Enum unspecified.
UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
The received error code is not known in this version.
UNKNOWN = 1;- See Also:
- Constant Field Values
-
INVALID_FIELD_VALUES_IN_DATE_VALUE
public static final int INVALID_FIELD_VALUES_IN_DATE_VALUE
Given field values do not correspond to a valid date.
INVALID_FIELD_VALUES_IN_DATE = 2;- See Also:
- Constant Field Values
-
INVALID_FIELD_VALUES_IN_DATE_TIME_VALUE
public static final int INVALID_FIELD_VALUES_IN_DATE_TIME_VALUE
Given field values do not correspond to a valid date time.
INVALID_FIELD_VALUES_IN_DATE_TIME = 3;- See Also:
- Constant Field Values
-
INVALID_STRING_DATE_VALUE
public static final int INVALID_STRING_DATE_VALUE
The string date's format should be yyyy-mm-dd.
INVALID_STRING_DATE = 4;- See Also:
- Constant Field Values
-
INVALID_STRING_DATE_TIME_MICROS_VALUE
public static final int INVALID_STRING_DATE_TIME_MICROS_VALUE
The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.
INVALID_STRING_DATE_TIME_MICROS = 6;- See Also:
- Constant Field Values
-
INVALID_STRING_DATE_TIME_SECONDS_VALUE
public static final int INVALID_STRING_DATE_TIME_SECONDS_VALUE
The string date time's format should be yyyy-mm-dd hh:mm:ss.
INVALID_STRING_DATE_TIME_SECONDS = 11;- See Also:
- Constant Field Values
-
INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET_VALUE
public static final int INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET_VALUE
The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm.
INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET = 12;- See Also:
- Constant Field Values
-
EARLIER_THAN_MINIMUM_DATE_VALUE
public static final int EARLIER_THAN_MINIMUM_DATE_VALUE
Date is before allowed minimum.
EARLIER_THAN_MINIMUM_DATE = 7;- See Also:
- Constant Field Values
-
LATER_THAN_MAXIMUM_DATE_VALUE
public static final int LATER_THAN_MAXIMUM_DATE_VALUE
Date is after allowed maximum.
LATER_THAN_MAXIMUM_DATE = 8;- See Also:
- Constant Field Values
-
DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE_VALUE
public static final int DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE_VALUE
Date range bounds are not in order.
DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9;- See Also:
- Constant Field Values
-
DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL_VALUE
public static final int DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL_VALUE
Both dates in range are null.
DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static DateErrorEnum.DateError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateErrorEnum.DateError c : DateErrorEnum.DateError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateErrorEnum.DateError valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static DateErrorEnum.DateError valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static DateErrorEnum.DateError forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<DateErrorEnum.DateError> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static DateErrorEnum.DateError valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-