Enum Month

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<Month>

    public enum Month
    extends java.lang.Enum<Month>
    implements com.google.protobuf.ProtocolMessageEnum
     Represents a month in the Gregorian calendar.
     
    Protobuf enum google.type.Month
    • Enum Constant Detail

      • MONTH_UNSPECIFIED

        public static final Month MONTH_UNSPECIFIED
         The unspecified month.
         
        MONTH_UNSPECIFIED = 0;
      • JANUARY

        public static final Month JANUARY
         The month of January.
         
        JANUARY = 1;
      • FEBRUARY

        public static final Month FEBRUARY
         The month of February.
         
        FEBRUARY = 2;
      • MARCH

        public static final Month MARCH
         The month of March.
         
        MARCH = 3;
      • APRIL

        public static final Month APRIL
         The month of April.
         
        APRIL = 4;
      • MAY

        public static final Month MAY
         The month of May.
         
        MAY = 5;
      • JUNE

        public static final Month JUNE
         The month of June.
         
        JUNE = 6;
      • JULY

        public static final Month JULY
         The month of July.
         
        JULY = 7;
      • AUGUST

        public static final Month AUGUST
         The month of August.
         
        AUGUST = 8;
      • SEPTEMBER

        public static final Month SEPTEMBER
         The month of September.
         
        SEPTEMBER = 9;
      • OCTOBER

        public static final Month OCTOBER
         The month of October.
         
        OCTOBER = 10;
      • NOVEMBER

        public static final Month NOVEMBER
         The month of November.
         
        NOVEMBER = 11;
      • DECEMBER

        public static final Month DECEMBER
         The month of December.
         
        DECEMBER = 12;
      • UNRECOGNIZED

        public static final Month UNRECOGNIZED
    • Field Detail

      • MONTH_UNSPECIFIED_VALUE

        public static final int MONTH_UNSPECIFIED_VALUE
         The unspecified month.
         
        MONTH_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • JANUARY_VALUE

        public static final int JANUARY_VALUE
         The month of January.
         
        JANUARY = 1;
        See Also:
        Constant Field Values
      • FEBRUARY_VALUE

        public static final int FEBRUARY_VALUE
         The month of February.
         
        FEBRUARY = 2;
        See Also:
        Constant Field Values
      • MARCH_VALUE

        public static final int MARCH_VALUE
         The month of March.
         
        MARCH = 3;
        See Also:
        Constant Field Values
      • APRIL_VALUE

        public static final int APRIL_VALUE
         The month of April.
         
        APRIL = 4;
        See Also:
        Constant Field Values
      • MAY_VALUE

        public static final int MAY_VALUE
         The month of May.
         
        MAY = 5;
        See Also:
        Constant Field Values
      • JUNE_VALUE

        public static final int JUNE_VALUE
         The month of June.
         
        JUNE = 6;
        See Also:
        Constant Field Values
      • JULY_VALUE

        public static final int JULY_VALUE
         The month of July.
         
        JULY = 7;
        See Also:
        Constant Field Values
      • AUGUST_VALUE

        public static final int AUGUST_VALUE
         The month of August.
         
        AUGUST = 8;
        See Also:
        Constant Field Values
      • SEPTEMBER_VALUE

        public static final int SEPTEMBER_VALUE
         The month of September.
         
        SEPTEMBER = 9;
        See Also:
        Constant Field Values
      • OCTOBER_VALUE

        public static final int OCTOBER_VALUE
         The month of October.
         
        OCTOBER = 10;
        See Also:
        Constant Field Values
      • NOVEMBER_VALUE

        public static final int NOVEMBER_VALUE
         The month of November.
         
        NOVEMBER = 11;
        See Also:
        Constant Field Values
      • DECEMBER_VALUE

        public static final int DECEMBER_VALUE
         The month of December.
         
        DECEMBER = 12;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Month[] 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 (Month c : Month.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Month 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 Month 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 Month 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<Month> 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 Month 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