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

POGOProtos.Enums.WeatherConditionOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: POGOProtos/Enums/WeatherCondition.proto

package POGOProtos.Enums;

public final class WeatherConditionOuterClass {
  private WeatherConditionOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code POGOProtos.Enums.WeatherCondition}
   */
  public enum WeatherCondition
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * NONE = 0;
     */
    NONE(0),
    /**
     * CLEAR = 1;
     */
    CLEAR(1),
    /**
     * RAINY = 2;
     */
    RAINY(2),
    /**
     * PARTLY_CLOUDY = 3;
     */
    PARTLY_CLOUDY(3),
    /**
     * OVERCAST = 4;
     */
    OVERCAST(4),
    /**
     * WINDY = 5;
     */
    WINDY(5),
    /**
     * SNOW = 6;
     */
    SNOW(6),
    /**
     * FOG = 7;
     */
    FOG(7),
    UNRECOGNIZED(-1),
    ;

    /**
     * NONE = 0;
     */
    public static final int NONE_VALUE = 0;
    /**
     * CLEAR = 1;
     */
    public static final int CLEAR_VALUE = 1;
    /**
     * RAINY = 2;
     */
    public static final int RAINY_VALUE = 2;
    /**
     * PARTLY_CLOUDY = 3;
     */
    public static final int PARTLY_CLOUDY_VALUE = 3;
    /**
     * OVERCAST = 4;
     */
    public static final int OVERCAST_VALUE = 4;
    /**
     * WINDY = 5;
     */
    public static final int WINDY_VALUE = 5;
    /**
     * SNOW = 6;
     */
    public static final int SNOW_VALUE = 6;
    /**
     * FOG = 7;
     */
    public static final int FOG_VALUE = 7;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static WeatherCondition valueOf(int value) {
      return forNumber(value);
    }

    public static WeatherCondition forNumber(int value) {
      switch (value) {
        case 0: return NONE;
        case 1: return CLEAR;
        case 2: return RAINY;
        case 3: return PARTLY_CLOUDY;
        case 4: return OVERCAST;
        case 5: return WINDY;
        case 6: return SNOW;
        case 7: return FOG;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        WeatherCondition> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public WeatherCondition findValueByNumber(int number) {
              return WeatherCondition.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return POGOProtos.Enums.WeatherConditionOuterClass.getDescriptor().getEnumTypes().get(0);
    }

    private static final WeatherCondition[] VALUES = values();

    public static WeatherCondition valueOf(
        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 WeatherCondition(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:POGOProtos.Enums.WeatherCondition)
  }


  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\'POGOProtos/Enums/WeatherCondition.prot" +
      "o\022\020POGOProtos.Enums*q\n\020WeatherCondition\022" +
      "\010\n\004NONE\020\000\022\t\n\005CLEAR\020\001\022\t\n\005RAINY\020\002\022\021\n\rPARTL" +
      "Y_CLOUDY\020\003\022\014\n\010OVERCAST\020\004\022\t\n\005WINDY\020\005\022\010\n\004S" +
      "NOW\020\006\022\007\n\003FOG\020\007b\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy