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

POGOProtos.Data.Capture.CaptureProbabilityOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: POGOProtos/Data/Capture/CaptureProbability.proto

package POGOProtos.Data.Capture;

public final class CaptureProbabilityOuterClass {
  private CaptureProbabilityOuterClass() {}
  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 CaptureProbabilityOrBuilder extends
      // @@protoc_insertion_point(interface_extends:POGOProtos.Data.Capture.CaptureProbability)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    java.util.List getPokeballTypeList();
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    int getPokeballTypeCount();
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getPokeballType(int index);
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    java.util.List
    getPokeballTypeValueList();
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    int getPokeballTypeValue(int index);

    /**
     * repeated float capture_probability = 2 [packed = true];
     */
    java.util.List getCaptureProbabilityList();
    /**
     * repeated float capture_probability = 2 [packed = true];
     */
    int getCaptureProbabilityCount();
    /**
     * repeated float capture_probability = 2 [packed = true];
     */
    float getCaptureProbability(int index);

    /**
     * double reticle_difficulty_scale = 12;
     */
    double getReticleDifficultyScale();
  }
  /**
   * Protobuf type {@code POGOProtos.Data.Capture.CaptureProbability}
   */
  public  static final class CaptureProbability extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:POGOProtos.Data.Capture.CaptureProbability)
      CaptureProbabilityOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use CaptureProbability.newBuilder() to construct.
    private CaptureProbability(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private CaptureProbability() {
      pokeballType_ = java.util.Collections.emptyList();
      captureProbability_ = java.util.Collections.emptyList();
      reticleDifficultyScale_ = 0D;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private CaptureProbability(
        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: {
              int rawValue = input.readEnum();
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                pokeballType_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              pokeballType_.add(rawValue);
              break;
            }
            case 10: {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while(input.getBytesUntilLimit() > 0) {
                int rawValue = input.readEnum();
                if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                  pokeballType_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000001;
                }
                pokeballType_.add(rawValue);
              }
              input.popLimit(oldLimit);
              break;
            }
            case 21: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                captureProbability_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              captureProbability_.add(input.readFloat());
              break;
            }
            case 18: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
                captureProbability_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              while (input.getBytesUntilLimit() > 0) {
                captureProbability_.add(input.readFloat());
              }
              input.popLimit(limit);
              break;
            }
            case 97: {

              reticleDifficultyScale_ = input.readDouble();
              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_ & 0x00000001) == 0x00000001)) {
          pokeballType_ = java.util.Collections.unmodifiableList(pokeballType_);
        }
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          captureProbability_ = java.util.Collections.unmodifiableList(captureProbability_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return POGOProtos.Data.Capture.CaptureProbabilityOuterClass.internal_static_POGOProtos_Data_Capture_CaptureProbability_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return POGOProtos.Data.Capture.CaptureProbabilityOuterClass.internal_static_POGOProtos_Data_Capture_CaptureProbability_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.class, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder.class);
    }

    private int bitField0_;
    public static final int POKEBALL_TYPE_FIELD_NUMBER = 1;
    private java.util.List pokeballType_;
    private static final com.google.protobuf.Internal.ListAdapter.Converter<
        java.lang.Integer, POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId> pokeballType_converter_ =
            new com.google.protobuf.Internal.ListAdapter.Converter<
                java.lang.Integer, POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId>() {
              public POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId convert(java.lang.Integer from) {
                @SuppressWarnings("deprecation")
                POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId result = POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.valueOf(from);
                return result == null ? POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId.UNRECOGNIZED : result;
              }
            };
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    public java.util.List getPokeballTypeList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId>(pokeballType_, pokeballType_converter_);
    }
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    public int getPokeballTypeCount() {
      return pokeballType_.size();
    }
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    public POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getPokeballType(int index) {
      return pokeballType_converter_.convert(pokeballType_.get(index));
    }
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    public java.util.List
    getPokeballTypeValueList() {
      return pokeballType_;
    }
    /**
     * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
     */
    public int getPokeballTypeValue(int index) {
      return pokeballType_.get(index);
    }
    private int pokeballTypeMemoizedSerializedSize;

    public static final int CAPTURE_PROBABILITY_FIELD_NUMBER = 2;
    private java.util.List captureProbability_;
    /**
     * repeated float capture_probability = 2 [packed = true];
     */
    public java.util.List
        getCaptureProbabilityList() {
      return captureProbability_;
    }
    /**
     * repeated float capture_probability = 2 [packed = true];
     */
    public int getCaptureProbabilityCount() {
      return captureProbability_.size();
    }
    /**
     * repeated float capture_probability = 2 [packed = true];
     */
    public float getCaptureProbability(int index) {
      return captureProbability_.get(index);
    }
    private int captureProbabilityMemoizedSerializedSize = -1;

    public static final int RETICLE_DIFFICULTY_SCALE_FIELD_NUMBER = 12;
    private double reticleDifficultyScale_;
    /**
     * double reticle_difficulty_scale = 12;
     */
    public double getReticleDifficultyScale() {
      return reticleDifficultyScale_;
    }

    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 (getPokeballTypeList().size() > 0) {
        output.writeUInt32NoTag(10);
        output.writeUInt32NoTag(pokeballTypeMemoizedSerializedSize);
      }
      for (int i = 0; i < pokeballType_.size(); i++) {
        output.writeEnumNoTag(pokeballType_.get(i));
      }
      if (getCaptureProbabilityList().size() > 0) {
        output.writeUInt32NoTag(18);
        output.writeUInt32NoTag(captureProbabilityMemoizedSerializedSize);
      }
      for (int i = 0; i < captureProbability_.size(); i++) {
        output.writeFloatNoTag(captureProbability_.get(i));
      }
      if (reticleDifficultyScale_ != 0D) {
        output.writeDouble(12, reticleDifficultyScale_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < pokeballType_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeEnumSizeNoTag(pokeballType_.get(i));
        }
        size += dataSize;
        if (!getPokeballTypeList().isEmpty()) {  size += 1;
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32SizeNoTag(dataSize);
        }pokeballTypeMemoizedSerializedSize = dataSize;
      }
      {
        int dataSize = 0;
        dataSize = 4 * getCaptureProbabilityList().size();
        size += dataSize;
        if (!getCaptureProbabilityList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        captureProbabilityMemoizedSerializedSize = dataSize;
      }
      if (reticleDifficultyScale_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(12, reticleDifficultyScale_);
      }
      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.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability)) {
        return super.equals(obj);
      }
      POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability other = (POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability) obj;

      boolean result = true;
      result = result && pokeballType_.equals(other.pokeballType_);
      result = result && getCaptureProbabilityList()
          .equals(other.getCaptureProbabilityList());
      result = result && (
          java.lang.Double.doubleToLongBits(getReticleDifficultyScale())
          == java.lang.Double.doubleToLongBits(
              other.getReticleDifficultyScale()));
      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();
      if (getPokeballTypeCount() > 0) {
        hash = (37 * hash) + POKEBALL_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + pokeballType_.hashCode();
      }
      if (getCaptureProbabilityCount() > 0) {
        hash = (37 * hash) + CAPTURE_PROBABILITY_FIELD_NUMBER;
        hash = (53 * hash) + getCaptureProbabilityList().hashCode();
      }
      hash = (37 * hash) + RETICLE_DIFFICULTY_SCALE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getReticleDifficultyScale()));
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return POGOProtos.Data.Capture.CaptureProbabilityOuterClass.internal_static_POGOProtos_Data_Capture_CaptureProbability_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.class, POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.Builder.class);
      }

      // Construct using POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.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();
        pokeballType_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        captureProbability_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        reticleDifficultyScale_ = 0D;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return POGOProtos.Data.Capture.CaptureProbabilityOuterClass.internal_static_POGOProtos_Data_Capture_CaptureProbability_descriptor;
      }

      @java.lang.Override
      public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability getDefaultInstanceForType() {
        return POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.getDefaultInstance();
      }

      @java.lang.Override
      public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability build() {
        POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability buildPartial() {
        POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability result = new POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          pokeballType_ = java.util.Collections.unmodifiableList(pokeballType_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.pokeballType_ = pokeballType_;
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          captureProbability_ = java.util.Collections.unmodifiableList(captureProbability_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.captureProbability_ = captureProbability_;
        result.reticleDifficultyScale_ = reticleDifficultyScale_;
        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.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability) {
          return mergeFrom((POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability other) {
        if (other == POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability.getDefaultInstance()) return this;
        if (!other.pokeballType_.isEmpty()) {
          if (pokeballType_.isEmpty()) {
            pokeballType_ = other.pokeballType_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensurePokeballTypeIsMutable();
            pokeballType_.addAll(other.pokeballType_);
          }
          onChanged();
        }
        if (!other.captureProbability_.isEmpty()) {
          if (captureProbability_.isEmpty()) {
            captureProbability_ = other.captureProbability_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureCaptureProbabilityIsMutable();
            captureProbability_.addAll(other.captureProbability_);
          }
          onChanged();
        }
        if (other.getReticleDifficultyScale() != 0D) {
          setReticleDifficultyScale(other.getReticleDifficultyScale());
        }
        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.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List pokeballType_ =
        java.util.Collections.emptyList();
      private void ensurePokeballTypeIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          pokeballType_ = new java.util.ArrayList(pokeballType_);
          bitField0_ |= 0x00000001;
        }
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public java.util.List getPokeballTypeList() {
        return new com.google.protobuf.Internal.ListAdapter<
            java.lang.Integer, POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId>(pokeballType_, pokeballType_converter_);
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public int getPokeballTypeCount() {
        return pokeballType_.size();
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId getPokeballType(int index) {
        return pokeballType_converter_.convert(pokeballType_.get(index));
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public Builder setPokeballType(
          int index, POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePokeballTypeIsMutable();
        pokeballType_.set(index, value.getNumber());
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public Builder addPokeballType(POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensurePokeballTypeIsMutable();
        pokeballType_.add(value.getNumber());
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public Builder addAllPokeballType(
          java.lang.Iterable values) {
        ensurePokeballTypeIsMutable();
        for (POGOProtos.Inventory.Item.ItemIdOuterClass.ItemId value : values) {
          pokeballType_.add(value.getNumber());
        }
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public Builder clearPokeballType() {
        pokeballType_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public java.util.List
      getPokeballTypeValueList() {
        return java.util.Collections.unmodifiableList(pokeballType_);
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public int getPokeballTypeValue(int index) {
        return pokeballType_.get(index);
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public Builder setPokeballTypeValue(
          int index, int value) {
        ensurePokeballTypeIsMutable();
        pokeballType_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public Builder addPokeballTypeValue(int value) {
        ensurePokeballTypeIsMutable();
        pokeballType_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Inventory.Item.ItemId pokeball_type = 1 [packed = true];
       */
      public Builder addAllPokeballTypeValue(
          java.lang.Iterable values) {
        ensurePokeballTypeIsMutable();
        for (int value : values) {
          pokeballType_.add(value);
        }
        onChanged();
        return this;
      }

      private java.util.List captureProbability_ = java.util.Collections.emptyList();
      private void ensureCaptureProbabilityIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          captureProbability_ = new java.util.ArrayList(captureProbability_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * repeated float capture_probability = 2 [packed = true];
       */
      public java.util.List
          getCaptureProbabilityList() {
        return java.util.Collections.unmodifiableList(captureProbability_);
      }
      /**
       * repeated float capture_probability = 2 [packed = true];
       */
      public int getCaptureProbabilityCount() {
        return captureProbability_.size();
      }
      /**
       * repeated float capture_probability = 2 [packed = true];
       */
      public float getCaptureProbability(int index) {
        return captureProbability_.get(index);
      }
      /**
       * repeated float capture_probability = 2 [packed = true];
       */
      public Builder setCaptureProbability(
          int index, float value) {
        ensureCaptureProbabilityIsMutable();
        captureProbability_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated float capture_probability = 2 [packed = true];
       */
      public Builder addCaptureProbability(float value) {
        ensureCaptureProbabilityIsMutable();
        captureProbability_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated float capture_probability = 2 [packed = true];
       */
      public Builder addAllCaptureProbability(
          java.lang.Iterable values) {
        ensureCaptureProbabilityIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, captureProbability_);
        onChanged();
        return this;
      }
      /**
       * repeated float capture_probability = 2 [packed = true];
       */
      public Builder clearCaptureProbability() {
        captureProbability_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }

      private double reticleDifficultyScale_ ;
      /**
       * double reticle_difficulty_scale = 12;
       */
      public double getReticleDifficultyScale() {
        return reticleDifficultyScale_;
      }
      /**
       * double reticle_difficulty_scale = 12;
       */
      public Builder setReticleDifficultyScale(double value) {
        
        reticleDifficultyScale_ = value;
        onChanged();
        return this;
      }
      /**
       * double reticle_difficulty_scale = 12;
       */
      public Builder clearReticleDifficultyScale() {
        
        reticleDifficultyScale_ = 0D;
        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.Data.Capture.CaptureProbability)
    }

    // @@protoc_insertion_point(class_scope:POGOProtos.Data.Capture.CaptureProbability)
    private static final POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability();
    }

    public static POGOProtos.Data.Capture.CaptureProbabilityOuterClass.CaptureProbability getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_POGOProtos_Data_Capture_CaptureProbability_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_POGOProtos_Data_Capture_CaptureProbability_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n0POGOProtos/Data/Capture/CaptureProbabi" +
      "lity.proto\022\027POGOProtos.Data.Capture\032&POG" +
      "OProtos/Inventory/Item/ItemId.proto\"\225\001\n\022" +
      "CaptureProbability\022<\n\rpokeball_type\030\001 \003(" +
      "\0162!.POGOProtos.Inventory.Item.ItemIdB\002\020\001" +
      "\022\037\n\023capture_probability\030\002 \003(\002B\002\020\001\022 \n\030ret" +
      "icle_difficulty_scale\030\014 \001(\001b\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.Inventory.Item.ItemIdOuterClass.getDescriptor(),
        }, assigner);
    internal_static_POGOProtos_Data_Capture_CaptureProbability_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_POGOProtos_Data_Capture_CaptureProbability_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_POGOProtos_Data_Capture_CaptureProbability_descriptor,
        new java.lang.String[] { "PokeballType", "CaptureProbability", "ReticleDifficultyScale", });
    POGOProtos.Inventory.Item.ItemIdOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy