Send feedback
Enum CalendarPeriod (2.13.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.13.0 keyboard_arrow_down
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
Static Fields
Name Description CALENDAR_PERIOD_UNSPECIFIED
Undefined period, raises an error.
CALENDAR_PERIOD_UNSPECIFIED = 0;
CALENDAR_PERIOD_UNSPECIFIED_VALUE
Undefined period, raises an error.
CALENDAR_PERIOD_UNSPECIFIED = 0;
DAY
A day.
DAY = 1;
DAY_VALUE
A day.
DAY = 1;
FORTNIGHT
A fortnight. The first calendar fortnight of the year begins at the start
of week 1 according to
ISO 8601 .
FORTNIGHT = 3;
FORTNIGHT_VALUE
A fortnight. The first calendar fortnight of the year begins at the start
of week 1 according to
ISO 8601 .
FORTNIGHT = 3;
HALF
A half-year. Half-years start on dates 1-Jan and 1-Jul.
HALF = 6;
HALF_VALUE
A half-year. Half-years start on dates 1-Jan and 1-Jul.
HALF = 6;
MONTH
A month.
MONTH = 4;
MONTH_VALUE
A month.
MONTH = 4;
QUARTER
A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
year.
QUARTER = 5;
QUARTER_VALUE
A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
year.
QUARTER = 5;
UNRECOGNIZED
WEEK
A week. Weeks begin on Monday, following
ISO 8601 .
WEEK = 2;
WEEK_VALUE
A week. Weeks begin on Monday, following
ISO 8601 .
WEEK = 2;
YEAR
A year.
YEAR = 7;
YEAR_VALUE
A year.
YEAR = 7;
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()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]