public enum CalendarPeriod extends Enum<CalendarPeriod> implements com.google.protobuf.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 12 AM US and Canadian Pacific Time (UTC-8).Protobuf enum
google.cloud.billing.budgets.v1beta1.CalendarPeriod| Enum Constant and Description |
|---|
CALENDAR_PERIOD_UNSPECIFIED
Calendar period is unset.
|
MONTH
A month.
|
QUARTER
A quarter.
|
UNRECOGNIZED |
YEAR
A year.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CALENDAR_PERIOD_UNSPECIFIED_VALUE
Calendar period is unset.
|
static int |
MONTH_VALUE
A month.
|
static int |
QUARTER_VALUE
A quarter.
|
static int |
YEAR_VALUE
A year.
|
| Modifier and Type | Method and Description |
|---|---|
static CalendarPeriod |
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<CalendarPeriod> |
internalGetValueMap() |
static CalendarPeriod |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CalendarPeriod |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CalendarPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalendarPeriod CALENDAR_PERIOD_UNSPECIFIED
Calendar period is unset. This is the default if the budget is for a custom time period (CustomPeriod).
CALENDAR_PERIOD_UNSPECIFIED = 0;public static final CalendarPeriod MONTH
A month. Month starts on the first day of each month, such as January 1, February 1, March 1, and so on.
MONTH = 1;public static final CalendarPeriod QUARTER
A quarter. Quarters start on dates January 1, April 1, July 1, and October 1 of each year.
QUARTER = 2;public static final CalendarPeriod YEAR
A year. Year starts on January 1.
YEAR = 3;public static final CalendarPeriod UNRECOGNIZED
public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUE
Calendar period is unset. This is the default if the budget is for a custom time period (CustomPeriod).
CALENDAR_PERIOD_UNSPECIFIED = 0;public static final int MONTH_VALUE
A month. Month starts on the first day of each month, such as January 1, February 1, March 1, and so on.
MONTH = 1;public static final int QUARTER_VALUE
A quarter. Quarters start on dates January 1, April 1, July 1, and October 1 of each year.
QUARTER = 2;public static final int YEAR_VALUE
A year. Year starts on January 1.
YEAR = 3;public static CalendarPeriod[] values()
for (CalendarPeriod c : CalendarPeriod.values()) System.out.println(c);
public static CalendarPeriod 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 CalendarPeriod valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CalendarPeriod forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CalendarPeriod> 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 CalendarPeriod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.