All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.rocketmq.shaded.com.google.type.Month Maven / Gradle / Ivy

There is a newer version: 5.0.7
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/type/month.proto

package org.apache.rocketmq.shaded.com.google.type;

/**
 *
 *
 * 
 * Represents a month in the Gregorian calendar.
 * 
* * Protobuf enum {@code google.type.Month} */ public enum Month implements org.apache.rocketmq.shaded.com.google.protobuf.ProtocolMessageEnum { /** * * *
   * The unspecified month.
   * 
* * MONTH_UNSPECIFIED = 0; */ MONTH_UNSPECIFIED(0), /** * * *
   * The month of January.
   * 
* * JANUARY = 1; */ JANUARY(1), /** * * *
   * The month of February.
   * 
* * FEBRUARY = 2; */ FEBRUARY(2), /** * * *
   * The month of March.
   * 
* * MARCH = 3; */ MARCH(3), /** * * *
   * The month of April.
   * 
* * APRIL = 4; */ APRIL(4), /** * * *
   * The month of May.
   * 
* * MAY = 5; */ MAY(5), /** * * *
   * The month of June.
   * 
* * JUNE = 6; */ JUNE(6), /** * * *
   * The month of July.
   * 
* * JULY = 7; */ JULY(7), /** * * *
   * The month of August.
   * 
* * AUGUST = 8; */ AUGUST(8), /** * * *
   * The month of September.
   * 
* * SEPTEMBER = 9; */ SEPTEMBER(9), /** * * *
   * The month of October.
   * 
* * OCTOBER = 10; */ OCTOBER(10), /** * * *
   * The month of November.
   * 
* * NOVEMBER = 11; */ NOVEMBER(11), /** * * *
   * The month of December.
   * 
* * DECEMBER = 12; */ DECEMBER(12), UNRECOGNIZED(-1), ; /** * * *
   * The unspecified month.
   * 
* * MONTH_UNSPECIFIED = 0; */ public static final int MONTH_UNSPECIFIED_VALUE = 0; /** * * *
   * The month of January.
   * 
* * JANUARY = 1; */ public static final int JANUARY_VALUE = 1; /** * * *
   * The month of February.
   * 
* * FEBRUARY = 2; */ public static final int FEBRUARY_VALUE = 2; /** * * *
   * The month of March.
   * 
* * MARCH = 3; */ public static final int MARCH_VALUE = 3; /** * * *
   * The month of April.
   * 
* * APRIL = 4; */ public static final int APRIL_VALUE = 4; /** * * *
   * The month of May.
   * 
* * MAY = 5; */ public static final int MAY_VALUE = 5; /** * * *
   * The month of June.
   * 
* * JUNE = 6; */ public static final int JUNE_VALUE = 6; /** * * *
   * The month of July.
   * 
* * JULY = 7; */ public static final int JULY_VALUE = 7; /** * * *
   * The month of August.
   * 
* * AUGUST = 8; */ public static final int AUGUST_VALUE = 8; /** * * *
   * The month of September.
   * 
* * SEPTEMBER = 9; */ public static final int SEPTEMBER_VALUE = 9; /** * * *
   * The month of October.
   * 
* * OCTOBER = 10; */ public static final int OCTOBER_VALUE = 10; /** * * *
   * The month of November.
   * 
* * NOVEMBER = 11; */ public static final int NOVEMBER_VALUE = 11; /** * * *
   * The month of December.
   * 
* * DECEMBER = 12; */ public static final int DECEMBER_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Month valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Month forNumber(int value) { switch (value) { case 0: return MONTH_UNSPECIFIED; case 1: return JANUARY; case 2: return FEBRUARY; case 3: return MARCH; case 4: return APRIL; case 5: return MAY; case 6: return JUNE; case 7: return JULY; case 8: return AUGUST; case 9: return SEPTEMBER; case 10: return OCTOBER; case 11: return NOVEMBER; case 12: return DECEMBER; default: return null; } } public static org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap internalValueMap = new org.apache.rocketmq.shaded.com.google.protobuf.Internal.EnumLiteMap() { public Month findValueByNumber(int number) { return Month.forNumber(number); } }; public final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.rocketmq.shaded.com.google.type.MonthProto.getDescriptor().getEnumTypes().get(0); } private static final Month[] VALUES = values(); public static Month valueOf(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Month(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.type.Month) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy