Package com.google.type
Enum 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>
public enum Month extends Enum<Month> implements com.google.protobuf.ProtocolMessageEnum
Represents a month in the Gregorian calendar.
Protobuf enumgoogle.type.Month
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APRILThe month of April.AUGUSTThe month of August.DECEMBERThe month of December.FEBRUARYThe month of February.JANUARYThe month of January.JULYThe month of July.JUNEThe month of June.MARCHThe month of March.MAYThe month of May.MONTH_UNSPECIFIEDThe unspecified month.NOVEMBERThe month of November.OCTOBERThe month of October.SEPTEMBERThe month of September.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intAPRIL_VALUEThe month of April.static intAUGUST_VALUEThe month of August.static intDECEMBER_VALUEThe month of December.static intFEBRUARY_VALUEThe month of February.static intJANUARY_VALUEThe month of January.static intJULY_VALUEThe month of July.static intJUNE_VALUEThe month of June.static intMARCH_VALUEThe month of March.static intMAY_VALUEThe month of May.static intMONTH_UNSPECIFIED_VALUEThe unspecified month.static intNOVEMBER_VALUEThe month of November.static intOCTOBER_VALUEThe month of October.static intSEPTEMBER_VALUEThe month of September.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MonthforNumber(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<Month>internalGetValueMap()static MonthvalueOf(int value)Deprecated.static MonthvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static MonthvalueOf(String name)Returns the enum constant of this type with the specified name.static Month[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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(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:
IllegalArgumentException- if this enum type 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 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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- 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:
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 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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-