public enum CalendarPeriod extends Enum<CalendarPeriod> implements ProtocolMessageEnum
A CalendarPeriod
represents the abstract concept of a time period that has
a canonical start. Grammatically, "the start of the current
CalendarPeriod
." All calendar times begin at midnight UTC.
Protobuf enum google.type.CalendarPeriod
Implements
ProtocolMessageEnumStatic Fields
Name | Description |
CALENDAR_PERIOD_UNSPECIFIED | Undefined period, raises an error. |
CALENDAR_PERIOD_UNSPECIFIED_VALUE | Undefined period, raises an error. |
DAY | A day. |
DAY_VALUE | A day. |
FORTNIGHT | A fortnight. The first calendar fortnight of the year begins at the start of week 1 according to ISO 8601. |
FORTNIGHT_VALUE | A fortnight. The first calendar fortnight of the year begins at the start of week 1 according to ISO 8601. |
HALF | A half-year. Half-years start on dates 1-Jan and 1-Jul. |
HALF_VALUE | A half-year. Half-years start on dates 1-Jan and 1-Jul. |
MONTH | A month. |
MONTH_VALUE | A month. |
QUARTER | A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each year. |
QUARTER_VALUE | A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each year. |
UNRECOGNIZED | |
WEEK | A week. Weeks begin on Monday, following ISO 8601. |
WEEK_VALUE | A week. Weeks begin on Monday, following ISO 8601. |
YEAR | A year. |
YEAR_VALUE | A year. |
Static Methods
Name | Description |
forNumber(int value) | |
getDescriptor() | |
internalGetValueMap() | |
valueOf(Descriptors.EnumValueDescriptor desc) | |
valueOf(int value) | Deprecated. Use #forNumber(int) instead. |
valueOf(String name) | |
values() |
Methods
Name | Description |
getDescriptorForType() | |
getNumber() | |
getValueDescriptor() |