Enum CalendarPeriod (2.8.4)

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

ProtocolMessageEnum

Static Fields

NameDescription
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

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()