Package com.google.cloud.batch.v1alpha
Enum CalendarPeriod
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<CalendarPeriod>
@Generated
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. All calendar times begin at 12 AM US and Canadian Pacific Time (UTC-8).Protobuf enum
google.cloud.batch.v1alpha.CalendarPeriod-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnspecified.The day starts at 12:00am.The month starts on the first date of the month and resets at the beginning of each month.The quarter starts on dates January 1, April 1, July 1, and October 1 of each year and resets at the beginning of the next quarter.The week period starts and resets every Monday.The year starts on January 1 and resets at the beginning of the next year. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnspecified.static final intThe day starts at 12:00am.static final intThe month starts on the first date of the month and resets at the beginning of each month.static final intThe quarter starts on dates January 1, April 1, July 1, and October 1 of each year and resets at the beginning of the next quarter.static final intThe week period starts and resets every Monday.static final intThe year starts on January 1 and resets at the beginning of the next year. -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarPeriodforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<CalendarPeriod>static CalendarPeriodvalueOf(int value) Deprecated.static CalendarPeriodvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static CalendarPeriodReturns 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.
-
Enum Constant Details
-
CALENDAR_PERIOD_UNSPECIFIED
Unspecified.
CALENDAR_PERIOD_UNSPECIFIED = 0; -
MONTH
The month starts on the first date of the month and resets at the beginning of each month.
MONTH = 1; -
QUARTER
The quarter starts on dates January 1, April 1, July 1, and October 1 of each year and resets at the beginning of the next quarter.
QUARTER = 2; -
YEAR
The year starts on January 1 and resets at the beginning of the next year.
YEAR = 3; -
WEEK
The week period starts and resets every Monday.
WEEK = 4; -
DAY
The day starts at 12:00am.
DAY = 5; -
UNRECOGNIZED
-
-
Field Details
-
CALENDAR_PERIOD_UNSPECIFIED_VALUE
public static final int CALENDAR_PERIOD_UNSPECIFIED_VALUEUnspecified.
CALENDAR_PERIOD_UNSPECIFIED = 0;- See Also:
-
MONTH_VALUE
public static final int MONTH_VALUEThe month starts on the first date of the month and resets at the beginning of each month.
MONTH = 1;- See Also:
-
QUARTER_VALUE
public static final int QUARTER_VALUEThe quarter starts on dates January 1, April 1, July 1, and October 1 of each year and resets at the beginning of the next quarter.
QUARTER = 2;- See Also:
-
YEAR_VALUE
public static final int YEAR_VALUEThe year starts on January 1 and resets at the beginning of the next year.
YEAR = 3;- See Also:
-
WEEK_VALUE
public static final int WEEK_VALUEThe week period starts and resets every Monday.
WEEK = 4;- See Also:
-
DAY_VALUE
public static final int DAY_VALUEThe day starts at 12:00am.
DAY = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-