Enum Class Month

java.lang.Object
java.lang.Enum<Month>
com.google.type.Month
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Month>, Constable

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

    • 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 Details

    • MONTH_UNSPECIFIED_VALUE

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

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

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

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

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

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

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

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

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

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

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

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

      public static final int DECEMBER_VALUE
       The month of December.
       
      DECEMBER = 12;
      See Also:
  • Method Details

    • values

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

      public static Month valueOf(String name)
      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 name
      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 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 name
      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 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 name
      NullPointerException - if the argument is null