Enum 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 enum google.ads.googleads.v10.errors.DateErrorEnum.DateError
    • Enum Constant Detail

      • 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;
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        java.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:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        java.lang.NullPointerException - if the argument is null