Enum CalendarPeriod

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<CalendarPeriod>

    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.v1.CalendarPeriod
    • Enum Constant Detail

      • CALENDAR_PERIOD_UNSPECIFIED

        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;
      • MONTH

        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;
      • QUARTER

        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;
      • YEAR

        public static final CalendarPeriod YEAR
         A year. Year starts on January 1.
         
        YEAR = 3;
    • Field Detail

      • CALENDAR_PERIOD_UNSPECIFIED_VALUE

        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;
        See Also:
        Constant Field Values
      • MONTH_VALUE

        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;
        See Also:
        Constant Field Values
      • QUARTER_VALUE

        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;
        See Also:
        Constant Field Values
      • YEAR_VALUE

        public static final int YEAR_VALUE
         A year. Year starts on January 1.
         
        YEAR = 3;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static CalendarPeriod[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CalendarPeriod c : CalendarPeriod.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CalendarPeriod valueOf​(String name)
        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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static CalendarPeriod valueOf​(int value)
        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 name
        NullPointerException - if the argument is null
      • forNumber

        public static CalendarPeriod forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<CalendarPeriod> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static CalendarPeriod valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        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 name
        NullPointerException - if the argument is null