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 and Description |
|---|
APRIL
The month of April.
|
AUGUST
The month of August.
|
DECEMBER
The month of December.
|
FEBRUARY
The month of February.
|
JANUARY
The month of January.
|
JULY
The month of July.
|
JUNE
The month of June.
|
MARCH
The month of March.
|
MAY
The month of May.
|
MONTH_UNSPECIFIED
The unspecified month.
|
NOVEMBER
The month of November.
|
OCTOBER
The month of October.
|
SEPTEMBER
The month of September.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
APRIL_VALUE
The month of April.
|
static int |
AUGUST_VALUE
The month of August.
|
static int |
DECEMBER_VALUE
The month of December.
|
static int |
FEBRUARY_VALUE
The month of February.
|
static int |
JANUARY_VALUE
The month of January.
|
static int |
JULY_VALUE
The month of July.
|
static int |
JUNE_VALUE
The month of June.
|
static int |
MARCH_VALUE
The month of March.
|
static int |
MAY_VALUE
The month of May.
|
static int |
MONTH_UNSPECIFIED_VALUE
The unspecified month.
|
static int |
NOVEMBER_VALUE
The month of November.
|
static int |
OCTOBER_VALUE
The month of October.
|
static int |
SEPTEMBER_VALUE
The month of September.
|
| Modifier and Type | Method and Description |
|---|---|
static Month |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Month> |
internalGetValueMap() |
static Month |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Month |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Month |
valueOf(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.
|
public static final Month MONTH_UNSPECIFIED
The unspecified month.
MONTH_UNSPECIFIED = 0;public static final Month JANUARY
The month of January.
JANUARY = 1;public static final Month FEBRUARY
The month of February.
FEBRUARY = 2;public static final Month MARCH
The month of March.
MARCH = 3;public static final Month APRIL
The month of April.
APRIL = 4;public static final Month MAY
The month of May.
MAY = 5;public static final Month JUNE
The month of June.
JUNE = 6;public static final Month JULY
The month of July.
JULY = 7;public static final Month AUGUST
The month of August.
AUGUST = 8;public static final Month SEPTEMBER
The month of September.
SEPTEMBER = 9;public static final Month OCTOBER
The month of October.
OCTOBER = 10;public static final Month NOVEMBER
The month of November.
NOVEMBER = 11;public static final Month DECEMBER
The month of December.
DECEMBER = 12;public static final Month UNRECOGNIZED
public static final int MONTH_UNSPECIFIED_VALUE
The unspecified month.
MONTH_UNSPECIFIED = 0;public static final int JANUARY_VALUE
The month of January.
JANUARY = 1;public static final int FEBRUARY_VALUE
The month of February.
FEBRUARY = 2;public static final int MARCH_VALUE
The month of March.
MARCH = 3;public static final int APRIL_VALUE
The month of April.
APRIL = 4;public static final int MAY_VALUE
The month of May.
MAY = 5;public static final int JUNE_VALUE
The month of June.
JUNE = 6;public static final int JULY_VALUE
The month of July.
JULY = 7;public static final int AUGUST_VALUE
The month of August.
AUGUST = 8;public static final int SEPTEMBER_VALUE
The month of September.
SEPTEMBER = 9;public static final int OCTOBER_VALUE
The month of October.
OCTOBER = 10;public static final int NOVEMBER_VALUE
The month of November.
NOVEMBER = 11;public static final int DECEMBER_VALUE
The month of December.
DECEMBER = 12;public static Month[] values()
for (Month c : Month.values()) System.out.println(c);
public static Month valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Month valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Month forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Month> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Month valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.