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

POGOProtos.Map.Pokemon.MapPokemonOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: POGOProtos/Map/Pokemon/MapPokemon.proto

package POGOProtos.Map.Pokemon;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface MapPokemonOrBuilder extends
      // @@protoc_insertion_point(interface_extends:POGOProtos.Map.Pokemon.MapPokemon)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string spawn_point_id = 1;
     */
    java.lang.String getSpawnPointId();
    /**
     * string spawn_point_id = 1;
     */
    com.google.protobuf.ByteString
        getSpawnPointIdBytes();

    /**
     * fixed64 encounter_id = 2;
     */
    long getEncounterId();

    /**
     * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
     */
    int getPokedexTypeIdValue();
    /**
     * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
     */
    POGOProtos.Enums.PokemonIdOuterClass.PokemonId getPokedexTypeId();

    /**
     * int64 expiration_time_ms = 4;
     */
    long getExpirationTimeMs();

    /**
     * double latitude = 5;
     */
    double getLatitude();

    /**
     * double longitude = 6;
     */
    double getLongitude();

    /**
     * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
     */
    boolean hasPokemonDisplay();
    /**
     * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
     */
    POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay getPokemonDisplay();
    /**
     * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
     */
    POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder getPokemonDisplayOrBuilder();
  }
  /**
   * Protobuf type {@code POGOProtos.Map.Pokemon.MapPokemon}
   */
  public  static final class MapPokemon extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:POGOProtos.Map.Pokemon.MapPokemon)
      MapPokemonOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MapPokemon.newBuilder() to construct.
    private MapPokemon(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private MapPokemon() {
      spawnPointId_ = "";
      encounterId_ = 0L;
      pokedexTypeId_ = 0;
      expirationTimeMs_ = 0L;
      latitude_ = 0D;
      longitude_ = 0D;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MapPokemon(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              spawnPointId_ = s;
              break;
            }
            case 17: {

              encounterId_ = input.readFixed64();
              break;
            }
            case 24: {
              int rawValue = input.readEnum();

              pokedexTypeId_ = rawValue;
              break;
            }
            case 32: {

              expirationTimeMs_ = input.readInt64();
              break;
            }
            case 41: {

              latitude_ = input.readDouble();
              break;
            }
            case 49: {

              longitude_ = input.readDouble();
              break;
            }
            case 58: {
              POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder subBuilder = null;
              if (pokemonDisplay_ != null) {
                subBuilder = pokemonDisplay_.toBuilder();
              }
              pokemonDisplay_ = input.readMessage(POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(pokemonDisplay_);
                pokemonDisplay_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return POGOProtos.Map.Pokemon.MapPokemonOuterClass.internal_static_POGOProtos_Map_Pokemon_MapPokemon_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return POGOProtos.Map.Pokemon.MapPokemonOuterClass.internal_static_POGOProtos_Map_Pokemon_MapPokemon_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon.class, POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon.Builder.class);
    }

    public static final int SPAWN_POINT_ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object spawnPointId_;
    /**
     * string spawn_point_id = 1;
     */
    public java.lang.String getSpawnPointId() {
      java.lang.Object ref = spawnPointId_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        spawnPointId_ = s;
        return s;
      }
    }
    /**
     * string spawn_point_id = 1;
     */
    public com.google.protobuf.ByteString
        getSpawnPointIdBytes() {
      java.lang.Object ref = spawnPointId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        spawnPointId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ENCOUNTER_ID_FIELD_NUMBER = 2;
    private long encounterId_;
    /**
     * fixed64 encounter_id = 2;
     */
    public long getEncounterId() {
      return encounterId_;
    }

    public static final int POKEDEX_TYPE_ID_FIELD_NUMBER = 3;
    private int pokedexTypeId_;
    /**
     * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
     */
    public int getPokedexTypeIdValue() {
      return pokedexTypeId_;
    }
    /**
     * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
     */
    public POGOProtos.Enums.PokemonIdOuterClass.PokemonId getPokedexTypeId() {
      @SuppressWarnings("deprecation")
      POGOProtos.Enums.PokemonIdOuterClass.PokemonId result = POGOProtos.Enums.PokemonIdOuterClass.PokemonId.valueOf(pokedexTypeId_);
      return result == null ? POGOProtos.Enums.PokemonIdOuterClass.PokemonId.UNRECOGNIZED : result;
    }

    public static final int EXPIRATION_TIME_MS_FIELD_NUMBER = 4;
    private long expirationTimeMs_;
    /**
     * int64 expiration_time_ms = 4;
     */
    public long getExpirationTimeMs() {
      return expirationTimeMs_;
    }

    public static final int LATITUDE_FIELD_NUMBER = 5;
    private double latitude_;
    /**
     * double latitude = 5;
     */
    public double getLatitude() {
      return latitude_;
    }

    public static final int LONGITUDE_FIELD_NUMBER = 6;
    private double longitude_;
    /**
     * double longitude = 6;
     */
    public double getLongitude() {
      return longitude_;
    }

    public static final int POKEMON_DISPLAY_FIELD_NUMBER = 7;
    private POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay pokemonDisplay_;
    /**
     * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
     */
    public boolean hasPokemonDisplay() {
      return pokemonDisplay_ != null;
    }
    /**
     * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
     */
    public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay getPokemonDisplay() {
      return pokemonDisplay_ == null ? POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.getDefaultInstance() : pokemonDisplay_;
    }
    /**
     * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
     */
    public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder getPokemonDisplayOrBuilder() {
      return getPokemonDisplay();
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getSpawnPointIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, spawnPointId_);
      }
      if (encounterId_ != 0L) {
        output.writeFixed64(2, encounterId_);
      }
      if (pokedexTypeId_ != POGOProtos.Enums.PokemonIdOuterClass.PokemonId.MISSINGNO.getNumber()) {
        output.writeEnum(3, pokedexTypeId_);
      }
      if (expirationTimeMs_ != 0L) {
        output.writeInt64(4, expirationTimeMs_);
      }
      if (latitude_ != 0D) {
        output.writeDouble(5, latitude_);
      }
      if (longitude_ != 0D) {
        output.writeDouble(6, longitude_);
      }
      if (pokemonDisplay_ != null) {
        output.writeMessage(7, getPokemonDisplay());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getSpawnPointIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, spawnPointId_);
      }
      if (encounterId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeFixed64Size(2, encounterId_);
      }
      if (pokedexTypeId_ != POGOProtos.Enums.PokemonIdOuterClass.PokemonId.MISSINGNO.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, pokedexTypeId_);
      }
      if (expirationTimeMs_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, expirationTimeMs_);
      }
      if (latitude_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(5, latitude_);
      }
      if (longitude_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(6, longitude_);
      }
      if (pokemonDisplay_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, getPokemonDisplay());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon)) {
        return super.equals(obj);
      }
      POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon other = (POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon) obj;

      boolean result = true;
      result = result && getSpawnPointId()
          .equals(other.getSpawnPointId());
      result = result && (getEncounterId()
          == other.getEncounterId());
      result = result && pokedexTypeId_ == other.pokedexTypeId_;
      result = result && (getExpirationTimeMs()
          == other.getExpirationTimeMs());
      result = result && (
          java.lang.Double.doubleToLongBits(getLatitude())
          == java.lang.Double.doubleToLongBits(
              other.getLatitude()));
      result = result && (
          java.lang.Double.doubleToLongBits(getLongitude())
          == java.lang.Double.doubleToLongBits(
              other.getLongitude()));
      result = result && (hasPokemonDisplay() == other.hasPokemonDisplay());
      if (hasPokemonDisplay()) {
        result = result && getPokemonDisplay()
            .equals(other.getPokemonDisplay());
      }
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + SPAWN_POINT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getSpawnPointId().hashCode();
      hash = (37 * hash) + ENCOUNTER_ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getEncounterId());
      hash = (37 * hash) + POKEDEX_TYPE_ID_FIELD_NUMBER;
      hash = (53 * hash) + pokedexTypeId_;
      hash = (37 * hash) + EXPIRATION_TIME_MS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getExpirationTimeMs());
      hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getLatitude()));
      hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getLongitude()));
      if (hasPokemonDisplay()) {
        hash = (37 * hash) + POKEMON_DISPLAY_FIELD_NUMBER;
        hash = (53 * hash) + getPokemonDisplay().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code POGOProtos.Map.Pokemon.MapPokemon}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:POGOProtos.Map.Pokemon.MapPokemon)
        POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemonOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return POGOProtos.Map.Pokemon.MapPokemonOuterClass.internal_static_POGOProtos_Map_Pokemon_MapPokemon_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return POGOProtos.Map.Pokemon.MapPokemonOuterClass.internal_static_POGOProtos_Map_Pokemon_MapPokemon_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon.class, POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon.Builder.class);
      }

      // Construct using POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        spawnPointId_ = "";

        encounterId_ = 0L;

        pokedexTypeId_ = 0;

        expirationTimeMs_ = 0L;

        latitude_ = 0D;

        longitude_ = 0D;

        if (pokemonDisplayBuilder_ == null) {
          pokemonDisplay_ = null;
        } else {
          pokemonDisplay_ = null;
          pokemonDisplayBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return POGOProtos.Map.Pokemon.MapPokemonOuterClass.internal_static_POGOProtos_Map_Pokemon_MapPokemon_descriptor;
      }

      @java.lang.Override
      public POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon getDefaultInstanceForType() {
        return POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon.getDefaultInstance();
      }

      @java.lang.Override
      public POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon build() {
        POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon buildPartial() {
        POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon result = new POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon(this);
        result.spawnPointId_ = spawnPointId_;
        result.encounterId_ = encounterId_;
        result.pokedexTypeId_ = pokedexTypeId_;
        result.expirationTimeMs_ = expirationTimeMs_;
        result.latitude_ = latitude_;
        result.longitude_ = longitude_;
        if (pokemonDisplayBuilder_ == null) {
          result.pokemonDisplay_ = pokemonDisplay_;
        } else {
          result.pokemonDisplay_ = pokemonDisplayBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon) {
          return mergeFrom((POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon other) {
        if (other == POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon.getDefaultInstance()) return this;
        if (!other.getSpawnPointId().isEmpty()) {
          spawnPointId_ = other.spawnPointId_;
          onChanged();
        }
        if (other.getEncounterId() != 0L) {
          setEncounterId(other.getEncounterId());
        }
        if (other.pokedexTypeId_ != 0) {
          setPokedexTypeIdValue(other.getPokedexTypeIdValue());
        }
        if (other.getExpirationTimeMs() != 0L) {
          setExpirationTimeMs(other.getExpirationTimeMs());
        }
        if (other.getLatitude() != 0D) {
          setLatitude(other.getLatitude());
        }
        if (other.getLongitude() != 0D) {
          setLongitude(other.getLongitude());
        }
        if (other.hasPokemonDisplay()) {
          mergePokemonDisplay(other.getPokemonDisplay());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object spawnPointId_ = "";
      /**
       * string spawn_point_id = 1;
       */
      public java.lang.String getSpawnPointId() {
        java.lang.Object ref = spawnPointId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          spawnPointId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string spawn_point_id = 1;
       */
      public com.google.protobuf.ByteString
          getSpawnPointIdBytes() {
        java.lang.Object ref = spawnPointId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          spawnPointId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string spawn_point_id = 1;
       */
      public Builder setSpawnPointId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        spawnPointId_ = value;
        onChanged();
        return this;
      }
      /**
       * string spawn_point_id = 1;
       */
      public Builder clearSpawnPointId() {
        
        spawnPointId_ = getDefaultInstance().getSpawnPointId();
        onChanged();
        return this;
      }
      /**
       * string spawn_point_id = 1;
       */
      public Builder setSpawnPointIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        spawnPointId_ = value;
        onChanged();
        return this;
      }

      private long encounterId_ ;
      /**
       * fixed64 encounter_id = 2;
       */
      public long getEncounterId() {
        return encounterId_;
      }
      /**
       * fixed64 encounter_id = 2;
       */
      public Builder setEncounterId(long value) {
        
        encounterId_ = value;
        onChanged();
        return this;
      }
      /**
       * fixed64 encounter_id = 2;
       */
      public Builder clearEncounterId() {
        
        encounterId_ = 0L;
        onChanged();
        return this;
      }

      private int pokedexTypeId_ = 0;
      /**
       * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
       */
      public int getPokedexTypeIdValue() {
        return pokedexTypeId_;
      }
      /**
       * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
       */
      public Builder setPokedexTypeIdValue(int value) {
        pokedexTypeId_ = value;
        onChanged();
        return this;
      }
      /**
       * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
       */
      public POGOProtos.Enums.PokemonIdOuterClass.PokemonId getPokedexTypeId() {
        @SuppressWarnings("deprecation")
        POGOProtos.Enums.PokemonIdOuterClass.PokemonId result = POGOProtos.Enums.PokemonIdOuterClass.PokemonId.valueOf(pokedexTypeId_);
        return result == null ? POGOProtos.Enums.PokemonIdOuterClass.PokemonId.UNRECOGNIZED : result;
      }
      /**
       * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
       */
      public Builder setPokedexTypeId(POGOProtos.Enums.PokemonIdOuterClass.PokemonId value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        pokedexTypeId_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .POGOProtos.Enums.PokemonId pokedex_type_id = 3;
       */
      public Builder clearPokedexTypeId() {
        
        pokedexTypeId_ = 0;
        onChanged();
        return this;
      }

      private long expirationTimeMs_ ;
      /**
       * int64 expiration_time_ms = 4;
       */
      public long getExpirationTimeMs() {
        return expirationTimeMs_;
      }
      /**
       * int64 expiration_time_ms = 4;
       */
      public Builder setExpirationTimeMs(long value) {
        
        expirationTimeMs_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 expiration_time_ms = 4;
       */
      public Builder clearExpirationTimeMs() {
        
        expirationTimeMs_ = 0L;
        onChanged();
        return this;
      }

      private double latitude_ ;
      /**
       * double latitude = 5;
       */
      public double getLatitude() {
        return latitude_;
      }
      /**
       * double latitude = 5;
       */
      public Builder setLatitude(double value) {
        
        latitude_ = value;
        onChanged();
        return this;
      }
      /**
       * double latitude = 5;
       */
      public Builder clearLatitude() {
        
        latitude_ = 0D;
        onChanged();
        return this;
      }

      private double longitude_ ;
      /**
       * double longitude = 6;
       */
      public double getLongitude() {
        return longitude_;
      }
      /**
       * double longitude = 6;
       */
      public Builder setLongitude(double value) {
        
        longitude_ = value;
        onChanged();
        return this;
      }
      /**
       * double longitude = 6;
       */
      public Builder clearLongitude() {
        
        longitude_ = 0D;
        onChanged();
        return this;
      }

      private POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay pokemonDisplay_ = null;
      private com.google.protobuf.SingleFieldBuilderV3<
          POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder> pokemonDisplayBuilder_;
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      public boolean hasPokemonDisplay() {
        return pokemonDisplayBuilder_ != null || pokemonDisplay_ != null;
      }
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay getPokemonDisplay() {
        if (pokemonDisplayBuilder_ == null) {
          return pokemonDisplay_ == null ? POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.getDefaultInstance() : pokemonDisplay_;
        } else {
          return pokemonDisplayBuilder_.getMessage();
        }
      }
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      public Builder setPokemonDisplay(POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay value) {
        if (pokemonDisplayBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          pokemonDisplay_ = value;
          onChanged();
        } else {
          pokemonDisplayBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      public Builder setPokemonDisplay(
          POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder builderForValue) {
        if (pokemonDisplayBuilder_ == null) {
          pokemonDisplay_ = builderForValue.build();
          onChanged();
        } else {
          pokemonDisplayBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      public Builder mergePokemonDisplay(POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay value) {
        if (pokemonDisplayBuilder_ == null) {
          if (pokemonDisplay_ != null) {
            pokemonDisplay_ =
              POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.newBuilder(pokemonDisplay_).mergeFrom(value).buildPartial();
          } else {
            pokemonDisplay_ = value;
          }
          onChanged();
        } else {
          pokemonDisplayBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      public Builder clearPokemonDisplay() {
        if (pokemonDisplayBuilder_ == null) {
          pokemonDisplay_ = null;
          onChanged();
        } else {
          pokemonDisplay_ = null;
          pokemonDisplayBuilder_ = null;
        }

        return this;
      }
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder getPokemonDisplayBuilder() {
        
        onChanged();
        return getPokemonDisplayFieldBuilder().getBuilder();
      }
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      public POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder getPokemonDisplayOrBuilder() {
        if (pokemonDisplayBuilder_ != null) {
          return pokemonDisplayBuilder_.getMessageOrBuilder();
        } else {
          return pokemonDisplay_ == null ?
              POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.getDefaultInstance() : pokemonDisplay_;
        }
      }
      /**
       * .POGOProtos.Data.PokemonDisplay pokemon_display = 7;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder> 
          getPokemonDisplayFieldBuilder() {
        if (pokemonDisplayBuilder_ == null) {
          pokemonDisplayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplay.Builder, POGOProtos.Data.PokemonDisplayOuterClass.PokemonDisplayOrBuilder>(
                  getPokemonDisplay(),
                  getParentForChildren(),
                  isClean());
          pokemonDisplay_ = null;
        }
        return pokemonDisplayBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:POGOProtos.Map.Pokemon.MapPokemon)
    }

    // @@protoc_insertion_point(class_scope:POGOProtos.Map.Pokemon.MapPokemon)
    private static final POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon();
    }

    public static POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public MapPokemon parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MapPokemon(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public POGOProtos.Map.Pokemon.MapPokemonOuterClass.MapPokemon getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_POGOProtos_Map_Pokemon_MapPokemon_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_POGOProtos_Map_Pokemon_MapPokemon_fieldAccessorTable;

  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/Map/Pokemon/MapPokemon.prot" +
      "o\022\026POGOProtos.Map.Pokemon\032$POGOProtos/Da" +
      "ta/PokemonDisplay.proto\032 POGOProtos/Enum" +
      "s/PokemonId.proto\"\353\001\n\nMapPokemon\022\026\n\016spaw" +
      "n_point_id\030\001 \001(\t\022\024\n\014encounter_id\030\002 \001(\006\0224" +
      "\n\017pokedex_type_id\030\003 \001(\0162\033.POGOProtos.Enu" +
      "ms.PokemonId\022\032\n\022expiration_time_ms\030\004 \001(\003" +
      "\022\020\n\010latitude\030\005 \001(\001\022\021\n\tlongitude\030\006 \001(\001\0228\n" +
      "\017pokemon_display\030\007 \001(\0132\037.POGOProtos.Data" +
      ".PokemonDisplayb\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[] {
          POGOProtos.Data.PokemonDisplayOuterClass.getDescriptor(),
          POGOProtos.Enums.PokemonIdOuterClass.getDescriptor(),
        }, assigner);
    internal_static_POGOProtos_Map_Pokemon_MapPokemon_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_POGOProtos_Map_Pokemon_MapPokemon_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_POGOProtos_Map_Pokemon_MapPokemon_descriptor,
        new java.lang.String[] { "SpawnPointId", "EncounterId", "PokedexTypeId", "ExpirationTimeMs", "Latitude", "Longitude", "PokemonDisplay", });
    POGOProtos.Data.PokemonDisplayOuterClass.getDescriptor();
    POGOProtos.Enums.PokemonIdOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy