Enum Class DateErrorEnum.DateError
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DateErrorEnum.DateError>,Constable
- Enclosing class:
- DateErrorEnum
public static enum DateErrorEnum.DateError
extends Enum<DateErrorEnum.DateError>
implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible date errors.Protobuf enum
google.ads.googleads.v18.errors.DateErrorEnum.DateError-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoth dates in range are null.Date range bounds are not in order.Date is before allowed minimum.Given field values do not correspond to a valid date.Given field values do not correspond to a valid date time.The string date's format should be yyyy-mm-dd.The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.The string date time's format should be yyyy-mm-dd hh:mm:ss.The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm.Date is after allowed maximum.The received error code is not known in this version.Enum unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBoth dates in range are null.static final intDate range bounds are not in order.static final intDate is before allowed minimum.static final intGiven field values do not correspond to a valid date time.static final intGiven field values do not correspond to a valid date.static final intThe string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.static final intThe string date time's format should be yyyy-mm-dd hh:mm:ss.static final intThe string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm.static final intThe string date's format should be yyyy-mm-dd.static final intDate is after allowed maximum.static final intThe received error code is not known in this version.static final intEnum unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic DateErrorEnum.DateErrorforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DateErrorEnum.DateError>static DateErrorEnum.DateErrorvalueOf(int value) Deprecated.static DateErrorEnum.DateErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static DateErrorEnum.DateErrorReturns the enum constant of this class with the specified name.static DateErrorEnum.DateError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0; -
UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1; -
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
Given field values do not correspond to a valid date time.
INVALID_FIELD_VALUES_IN_DATE_TIME = 3; -
INVALID_STRING_DATE
The string date's format should be yyyy-mm-dd.
INVALID_STRING_DATE = 4; -
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
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
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
Date is before allowed minimum.
EARLIER_THAN_MINIMUM_DATE = 7; -
LATER_THAN_MAXIMUM_DATE
Date is after allowed maximum.
LATER_THAN_MAXIMUM_DATE = 8; -
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
Both dates in range are null.
DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEEnum unspecified.
UNSPECIFIED = 0;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe received error code is not known in this version.
UNKNOWN = 1;- See Also:
-
INVALID_FIELD_VALUES_IN_DATE_VALUE
public static final int INVALID_FIELD_VALUES_IN_DATE_VALUEGiven field values do not correspond to a valid date.
INVALID_FIELD_VALUES_IN_DATE = 2;- See Also:
-
INVALID_FIELD_VALUES_IN_DATE_TIME_VALUE
public static final int INVALID_FIELD_VALUES_IN_DATE_TIME_VALUEGiven field values do not correspond to a valid date time.
INVALID_FIELD_VALUES_IN_DATE_TIME = 3;- See Also:
-
INVALID_STRING_DATE_VALUE
public static final int INVALID_STRING_DATE_VALUEThe string date's format should be yyyy-mm-dd.
INVALID_STRING_DATE = 4;- See Also:
-
INVALID_STRING_DATE_TIME_MICROS_VALUE
public static final int INVALID_STRING_DATE_TIME_MICROS_VALUEThe string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss.
INVALID_STRING_DATE_TIME_MICROS = 6;- See Also:
-
INVALID_STRING_DATE_TIME_SECONDS_VALUE
public static final int INVALID_STRING_DATE_TIME_SECONDS_VALUEThe string date time's format should be yyyy-mm-dd hh:mm:ss.
INVALID_STRING_DATE_TIME_SECONDS = 11;- See Also:
-
INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET_VALUE
public static final int INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET_VALUEThe 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:
-
EARLIER_THAN_MINIMUM_DATE_VALUE
public static final int EARLIER_THAN_MINIMUM_DATE_VALUEDate is before allowed minimum.
EARLIER_THAN_MINIMUM_DATE = 7;- See Also:
-
LATER_THAN_MAXIMUM_DATE_VALUE
public static final int LATER_THAN_MAXIMUM_DATE_VALUEDate is after allowed maximum.
LATER_THAN_MAXIMUM_DATE = 8;- See Also:
-
DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE_VALUE
public static final int DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE_VALUEDate range bounds are not in order.
DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9;- See Also:
-
DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL_VALUE
public static final int DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL_VALUEBoth dates in range are null.
DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 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.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-