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

POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: POGOProtos/Settings/Master/PokemonUpgradeSettings.proto

package POGOProtos.Settings.Master;

public final class PokemonUpgradeSettingsOuterClass {
  private PokemonUpgradeSettingsOuterClass() {}
  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 PokemonUpgradeSettingsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:POGOProtos.Settings.Master.PokemonUpgradeSettings)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int32 upgrades_per_level = 1;
     */
    int getUpgradesPerLevel();

    /**
     * int32 allowed_levels_above_player = 2;
     */
    int getAllowedLevelsAbovePlayer();

    /**
     * repeated int32 candy_cost = 3;
     */
    java.util.List getCandyCostList();
    /**
     * repeated int32 candy_cost = 3;
     */
    int getCandyCostCount();
    /**
     * repeated int32 candy_cost = 3;
     */
    int getCandyCost(int index);

    /**
     * repeated int32 stardust_cost = 4;
     */
    java.util.List getStardustCostList();
    /**
     * repeated int32 stardust_cost = 4;
     */
    int getStardustCostCount();
    /**
     * repeated int32 stardust_cost = 4;
     */
    int getStardustCost(int index);
  }
  /**
   * Protobuf type {@code POGOProtos.Settings.Master.PokemonUpgradeSettings}
   */
  public  static final class PokemonUpgradeSettings extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:POGOProtos.Settings.Master.PokemonUpgradeSettings)
      PokemonUpgradeSettingsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PokemonUpgradeSettings.newBuilder() to construct.
    private PokemonUpgradeSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private PokemonUpgradeSettings() {
      upgradesPerLevel_ = 0;
      allowedLevelsAbovePlayer_ = 0;
      candyCost_ = java.util.Collections.emptyList();
      stardustCost_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PokemonUpgradeSettings(
        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 8: {

              upgradesPerLevel_ = input.readInt32();
              break;
            }
            case 16: {

              allowedLevelsAbovePlayer_ = input.readInt32();
              break;
            }
            case 24: {
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                candyCost_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              candyCost_.add(input.readInt32());
              break;
            }
            case 26: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
                candyCost_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              while (input.getBytesUntilLimit() > 0) {
                candyCost_.add(input.readInt32());
              }
              input.popLimit(limit);
              break;
            }
            case 32: {
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
                stardustCost_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000008;
              }
              stardustCost_.add(input.readInt32());
              break;
            }
            case 34: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
                stardustCost_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000008;
              }
              while (input.getBytesUntilLimit() > 0) {
                stardustCost_.add(input.readInt32());
              }
              input.popLimit(limit);
              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 {
        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
          candyCost_ = java.util.Collections.unmodifiableList(candyCost_);
        }
        if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
          stardustCost_ = java.util.Collections.unmodifiableList(stardustCost_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings.class, POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings.Builder.class);
    }

    private int bitField0_;
    public static final int UPGRADES_PER_LEVEL_FIELD_NUMBER = 1;
    private int upgradesPerLevel_;
    /**
     * int32 upgrades_per_level = 1;
     */
    public int getUpgradesPerLevel() {
      return upgradesPerLevel_;
    }

    public static final int ALLOWED_LEVELS_ABOVE_PLAYER_FIELD_NUMBER = 2;
    private int allowedLevelsAbovePlayer_;
    /**
     * int32 allowed_levels_above_player = 2;
     */
    public int getAllowedLevelsAbovePlayer() {
      return allowedLevelsAbovePlayer_;
    }

    public static final int CANDY_COST_FIELD_NUMBER = 3;
    private java.util.List candyCost_;
    /**
     * repeated int32 candy_cost = 3;
     */
    public java.util.List
        getCandyCostList() {
      return candyCost_;
    }
    /**
     * repeated int32 candy_cost = 3;
     */
    public int getCandyCostCount() {
      return candyCost_.size();
    }
    /**
     * repeated int32 candy_cost = 3;
     */
    public int getCandyCost(int index) {
      return candyCost_.get(index);
    }
    private int candyCostMemoizedSerializedSize = -1;

    public static final int STARDUST_COST_FIELD_NUMBER = 4;
    private java.util.List stardustCost_;
    /**
     * repeated int32 stardust_cost = 4;
     */
    public java.util.List
        getStardustCostList() {
      return stardustCost_;
    }
    /**
     * repeated int32 stardust_cost = 4;
     */
    public int getStardustCostCount() {
      return stardustCost_.size();
    }
    /**
     * repeated int32 stardust_cost = 4;
     */
    public int getStardustCost(int index) {
      return stardustCost_.get(index);
    }
    private int stardustCostMemoizedSerializedSize = -1;

    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 {
      getSerializedSize();
      if (upgradesPerLevel_ != 0) {
        output.writeInt32(1, upgradesPerLevel_);
      }
      if (allowedLevelsAbovePlayer_ != 0) {
        output.writeInt32(2, allowedLevelsAbovePlayer_);
      }
      if (getCandyCostList().size() > 0) {
        output.writeUInt32NoTag(26);
        output.writeUInt32NoTag(candyCostMemoizedSerializedSize);
      }
      for (int i = 0; i < candyCost_.size(); i++) {
        output.writeInt32NoTag(candyCost_.get(i));
      }
      if (getStardustCostList().size() > 0) {
        output.writeUInt32NoTag(34);
        output.writeUInt32NoTag(stardustCostMemoizedSerializedSize);
      }
      for (int i = 0; i < stardustCost_.size(); i++) {
        output.writeInt32NoTag(stardustCost_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (upgradesPerLevel_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, upgradesPerLevel_);
      }
      if (allowedLevelsAbovePlayer_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, allowedLevelsAbovePlayer_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < candyCost_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(candyCost_.get(i));
        }
        size += dataSize;
        if (!getCandyCostList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        candyCostMemoizedSerializedSize = dataSize;
      }
      {
        int dataSize = 0;
        for (int i = 0; i < stardustCost_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(stardustCost_.get(i));
        }
        size += dataSize;
        if (!getStardustCostList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        stardustCostMemoizedSerializedSize = dataSize;
      }
      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.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings)) {
        return super.equals(obj);
      }
      POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings other = (POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings) obj;

      boolean result = true;
      result = result && (getUpgradesPerLevel()
          == other.getUpgradesPerLevel());
      result = result && (getAllowedLevelsAbovePlayer()
          == other.getAllowedLevelsAbovePlayer());
      result = result && getCandyCostList()
          .equals(other.getCandyCostList());
      result = result && getStardustCostList()
          .equals(other.getStardustCostList());
      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) + UPGRADES_PER_LEVEL_FIELD_NUMBER;
      hash = (53 * hash) + getUpgradesPerLevel();
      hash = (37 * hash) + ALLOWED_LEVELS_ABOVE_PLAYER_FIELD_NUMBER;
      hash = (53 * hash) + getAllowedLevelsAbovePlayer();
      if (getCandyCostCount() > 0) {
        hash = (37 * hash) + CANDY_COST_FIELD_NUMBER;
        hash = (53 * hash) + getCandyCostList().hashCode();
      }
      if (getStardustCostCount() > 0) {
        hash = (37 * hash) + STARDUST_COST_FIELD_NUMBER;
        hash = (53 * hash) + getStardustCostList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings 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.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings 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.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings 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.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings 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.Settings.Master.PokemonUpgradeSettings}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:POGOProtos.Settings.Master.PokemonUpgradeSettings)
        POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettingsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings.class, POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings.Builder.class);
      }

      // Construct using POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings.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();
        upgradesPerLevel_ = 0;

        allowedLevelsAbovePlayer_ = 0;

        candyCost_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        stardustCost_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_descriptor;
      }

      @java.lang.Override
      public POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings getDefaultInstanceForType() {
        return POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings.getDefaultInstance();
      }

      @java.lang.Override
      public POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings build() {
        POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings buildPartial() {
        POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings result = new POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.upgradesPerLevel_ = upgradesPerLevel_;
        result.allowedLevelsAbovePlayer_ = allowedLevelsAbovePlayer_;
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          candyCost_ = java.util.Collections.unmodifiableList(candyCost_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.candyCost_ = candyCost_;
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          stardustCost_ = java.util.Collections.unmodifiableList(stardustCost_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.stardustCost_ = stardustCost_;
        result.bitField0_ = to_bitField0_;
        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.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings) {
          return mergeFrom((POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings other) {
        if (other == POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings.getDefaultInstance()) return this;
        if (other.getUpgradesPerLevel() != 0) {
          setUpgradesPerLevel(other.getUpgradesPerLevel());
        }
        if (other.getAllowedLevelsAbovePlayer() != 0) {
          setAllowedLevelsAbovePlayer(other.getAllowedLevelsAbovePlayer());
        }
        if (!other.candyCost_.isEmpty()) {
          if (candyCost_.isEmpty()) {
            candyCost_ = other.candyCost_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureCandyCostIsMutable();
            candyCost_.addAll(other.candyCost_);
          }
          onChanged();
        }
        if (!other.stardustCost_.isEmpty()) {
          if (stardustCost_.isEmpty()) {
            stardustCost_ = other.stardustCost_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureStardustCostIsMutable();
            stardustCost_.addAll(other.stardustCost_);
          }
          onChanged();
        }
        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.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int upgradesPerLevel_ ;
      /**
       * int32 upgrades_per_level = 1;
       */
      public int getUpgradesPerLevel() {
        return upgradesPerLevel_;
      }
      /**
       * int32 upgrades_per_level = 1;
       */
      public Builder setUpgradesPerLevel(int value) {
        
        upgradesPerLevel_ = value;
        onChanged();
        return this;
      }
      /**
       * int32 upgrades_per_level = 1;
       */
      public Builder clearUpgradesPerLevel() {
        
        upgradesPerLevel_ = 0;
        onChanged();
        return this;
      }

      private int allowedLevelsAbovePlayer_ ;
      /**
       * int32 allowed_levels_above_player = 2;
       */
      public int getAllowedLevelsAbovePlayer() {
        return allowedLevelsAbovePlayer_;
      }
      /**
       * int32 allowed_levels_above_player = 2;
       */
      public Builder setAllowedLevelsAbovePlayer(int value) {
        
        allowedLevelsAbovePlayer_ = value;
        onChanged();
        return this;
      }
      /**
       * int32 allowed_levels_above_player = 2;
       */
      public Builder clearAllowedLevelsAbovePlayer() {
        
        allowedLevelsAbovePlayer_ = 0;
        onChanged();
        return this;
      }

      private java.util.List candyCost_ = java.util.Collections.emptyList();
      private void ensureCandyCostIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          candyCost_ = new java.util.ArrayList(candyCost_);
          bitField0_ |= 0x00000004;
         }
      }
      /**
       * repeated int32 candy_cost = 3;
       */
      public java.util.List
          getCandyCostList() {
        return java.util.Collections.unmodifiableList(candyCost_);
      }
      /**
       * repeated int32 candy_cost = 3;
       */
      public int getCandyCostCount() {
        return candyCost_.size();
      }
      /**
       * repeated int32 candy_cost = 3;
       */
      public int getCandyCost(int index) {
        return candyCost_.get(index);
      }
      /**
       * repeated int32 candy_cost = 3;
       */
      public Builder setCandyCost(
          int index, int value) {
        ensureCandyCostIsMutable();
        candyCost_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated int32 candy_cost = 3;
       */
      public Builder addCandyCost(int value) {
        ensureCandyCostIsMutable();
        candyCost_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated int32 candy_cost = 3;
       */
      public Builder addAllCandyCost(
          java.lang.Iterable values) {
        ensureCandyCostIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, candyCost_);
        onChanged();
        return this;
      }
      /**
       * repeated int32 candy_cost = 3;
       */
      public Builder clearCandyCost() {
        candyCost_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }

      private java.util.List stardustCost_ = java.util.Collections.emptyList();
      private void ensureStardustCostIsMutable() {
        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
          stardustCost_ = new java.util.ArrayList(stardustCost_);
          bitField0_ |= 0x00000008;
         }
      }
      /**
       * repeated int32 stardust_cost = 4;
       */
      public java.util.List
          getStardustCostList() {
        return java.util.Collections.unmodifiableList(stardustCost_);
      }
      /**
       * repeated int32 stardust_cost = 4;
       */
      public int getStardustCostCount() {
        return stardustCost_.size();
      }
      /**
       * repeated int32 stardust_cost = 4;
       */
      public int getStardustCost(int index) {
        return stardustCost_.get(index);
      }
      /**
       * repeated int32 stardust_cost = 4;
       */
      public Builder setStardustCost(
          int index, int value) {
        ensureStardustCostIsMutable();
        stardustCost_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated int32 stardust_cost = 4;
       */
      public Builder addStardustCost(int value) {
        ensureStardustCostIsMutable();
        stardustCost_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated int32 stardust_cost = 4;
       */
      public Builder addAllStardustCost(
          java.lang.Iterable values) {
        ensureStardustCostIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, stardustCost_);
        onChanged();
        return this;
      }
      /**
       * repeated int32 stardust_cost = 4;
       */
      public Builder clearStardustCost() {
        stardustCost_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }
      @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.Settings.Master.PokemonUpgradeSettings)
    }

    // @@protoc_insertion_point(class_scope:POGOProtos.Settings.Master.PokemonUpgradeSettings)
    private static final POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings();
    }

    public static POGOProtos.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public PokemonUpgradeSettings parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PokemonUpgradeSettings(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.Settings.Master.PokemonUpgradeSettingsOuterClass.PokemonUpgradeSettings getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n7POGOProtos/Settings/Master/PokemonUpgr" +
      "adeSettings.proto\022\032POGOProtos.Settings.M" +
      "aster\"\204\001\n\026PokemonUpgradeSettings\022\032\n\022upgr" +
      "ades_per_level\030\001 \001(\005\022#\n\033allowed_levels_a" +
      "bove_player\030\002 \001(\005\022\022\n\ncandy_cost\030\003 \003(\005\022\025\n" +
      "\rstardust_cost\030\004 \003(\005b\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);
    internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_POGOProtos_Settings_Master_PokemonUpgradeSettings_descriptor,
        new java.lang.String[] { "UpgradesPerLevel", "AllowedLevelsAbovePlayer", "CandyCost", "StardustCost", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy