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

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

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

package POGOProtos.Settings.Master;

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

    /**
     * int64 valid_from_ms = 1;
     */
    long getValidFromMs();

    /**
     * int64 valid_to_ms = 2;
     */
    long getValidToMs();

    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    java.util.List getMutuallyExclusiveBadgesList();
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    int getMutuallyExclusiveBadgesCount();
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    POGOProtos.Enums.BadgeTypeOuterClass.BadgeType getMutuallyExclusiveBadges(int index);
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    java.util.List
    getMutuallyExclusiveBadgesValueList();
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    int getMutuallyExclusiveBadgesValue(int index);
  }
  /**
   * Protobuf type {@code POGOProtos.Settings.Master.EventBadgeSettings}
   */
  public  static final class EventBadgeSettings extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:POGOProtos.Settings.Master.EventBadgeSettings)
      EventBadgeSettingsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use EventBadgeSettings.newBuilder() to construct.
    private EventBadgeSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private EventBadgeSettings() {
      validFromMs_ = 0L;
      validToMs_ = 0L;
      mutuallyExclusiveBadges_ = java.util.Collections.emptyList();
    }

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

              validFromMs_ = input.readInt64();
              break;
            }
            case 16: {

              validToMs_ = input.readInt64();
              break;
            }
            case 24: {
              int rawValue = input.readEnum();
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                mutuallyExclusiveBadges_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              mutuallyExclusiveBadges_.add(rawValue);
              break;
            }
            case 26: {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while(input.getBytesUntilLimit() > 0) {
                int rawValue = input.readEnum();
                if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                  mutuallyExclusiveBadges_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000004;
                }
                mutuallyExclusiveBadges_.add(rawValue);
              }
              input.popLimit(oldLimit);
              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)) {
          mutuallyExclusiveBadges_ = java.util.Collections.unmodifiableList(mutuallyExclusiveBadges_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.internal_static_POGOProtos_Settings_Master_EventBadgeSettings_descriptor;
    }

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

    private int bitField0_;
    public static final int VALID_FROM_MS_FIELD_NUMBER = 1;
    private long validFromMs_;
    /**
     * int64 valid_from_ms = 1;
     */
    public long getValidFromMs() {
      return validFromMs_;
    }

    public static final int VALID_TO_MS_FIELD_NUMBER = 2;
    private long validToMs_;
    /**
     * int64 valid_to_ms = 2;
     */
    public long getValidToMs() {
      return validToMs_;
    }

    public static final int MUTUALLY_EXCLUSIVE_BADGES_FIELD_NUMBER = 3;
    private java.util.List mutuallyExclusiveBadges_;
    private static final com.google.protobuf.Internal.ListAdapter.Converter<
        java.lang.Integer, POGOProtos.Enums.BadgeTypeOuterClass.BadgeType> mutuallyExclusiveBadges_converter_ =
            new com.google.protobuf.Internal.ListAdapter.Converter<
                java.lang.Integer, POGOProtos.Enums.BadgeTypeOuterClass.BadgeType>() {
              public POGOProtos.Enums.BadgeTypeOuterClass.BadgeType convert(java.lang.Integer from) {
                @SuppressWarnings("deprecation")
                POGOProtos.Enums.BadgeTypeOuterClass.BadgeType result = POGOProtos.Enums.BadgeTypeOuterClass.BadgeType.valueOf(from);
                return result == null ? POGOProtos.Enums.BadgeTypeOuterClass.BadgeType.UNRECOGNIZED : result;
              }
            };
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    public java.util.List getMutuallyExclusiveBadgesList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, POGOProtos.Enums.BadgeTypeOuterClass.BadgeType>(mutuallyExclusiveBadges_, mutuallyExclusiveBadges_converter_);
    }
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    public int getMutuallyExclusiveBadgesCount() {
      return mutuallyExclusiveBadges_.size();
    }
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    public POGOProtos.Enums.BadgeTypeOuterClass.BadgeType getMutuallyExclusiveBadges(int index) {
      return mutuallyExclusiveBadges_converter_.convert(mutuallyExclusiveBadges_.get(index));
    }
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    public java.util.List
    getMutuallyExclusiveBadgesValueList() {
      return mutuallyExclusiveBadges_;
    }
    /**
     * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
     */
    public int getMutuallyExclusiveBadgesValue(int index) {
      return mutuallyExclusiveBadges_.get(index);
    }
    private int mutuallyExclusiveBadgesMemoizedSerializedSize;

    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 (validFromMs_ != 0L) {
        output.writeInt64(1, validFromMs_);
      }
      if (validToMs_ != 0L) {
        output.writeInt64(2, validToMs_);
      }
      if (getMutuallyExclusiveBadgesList().size() > 0) {
        output.writeUInt32NoTag(26);
        output.writeUInt32NoTag(mutuallyExclusiveBadgesMemoizedSerializedSize);
      }
      for (int i = 0; i < mutuallyExclusiveBadges_.size(); i++) {
        output.writeEnumNoTag(mutuallyExclusiveBadges_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (validFromMs_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, validFromMs_);
      }
      if (validToMs_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, validToMs_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < mutuallyExclusiveBadges_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeEnumSizeNoTag(mutuallyExclusiveBadges_.get(i));
        }
        size += dataSize;
        if (!getMutuallyExclusiveBadgesList().isEmpty()) {  size += 1;
          size += com.google.protobuf.CodedOutputStream
            .computeUInt32SizeNoTag(dataSize);
        }mutuallyExclusiveBadgesMemoizedSerializedSize = 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.EventBadgeSettingsOuterClass.EventBadgeSettings)) {
        return super.equals(obj);
      }
      POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings other = (POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings) obj;

      boolean result = true;
      result = result && (getValidFromMs()
          == other.getValidFromMs());
      result = result && (getValidToMs()
          == other.getValidToMs());
      result = result && mutuallyExclusiveBadges_.equals(other.mutuallyExclusiveBadges_);
      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) + VALID_FROM_MS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getValidFromMs());
      hash = (37 * hash) + VALID_TO_MS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getValidToMs());
      if (getMutuallyExclusiveBadgesCount() > 0) {
        hash = (37 * hash) + MUTUALLY_EXCLUSIVE_BADGES_FIELD_NUMBER;
        hash = (53 * hash) + mutuallyExclusiveBadges_.hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

      // Construct using POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings.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();
        validFromMs_ = 0L;

        validToMs_ = 0L;

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

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

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

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

      @java.lang.Override
      public POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings buildPartial() {
        POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings result = new POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.validFromMs_ = validFromMs_;
        result.validToMs_ = validToMs_;
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          mutuallyExclusiveBadges_ = java.util.Collections.unmodifiableList(mutuallyExclusiveBadges_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.mutuallyExclusiveBadges_ = mutuallyExclusiveBadges_;
        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.EventBadgeSettingsOuterClass.EventBadgeSettings) {
          return mergeFrom((POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings other) {
        if (other == POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings.getDefaultInstance()) return this;
        if (other.getValidFromMs() != 0L) {
          setValidFromMs(other.getValidFromMs());
        }
        if (other.getValidToMs() != 0L) {
          setValidToMs(other.getValidToMs());
        }
        if (!other.mutuallyExclusiveBadges_.isEmpty()) {
          if (mutuallyExclusiveBadges_.isEmpty()) {
            mutuallyExclusiveBadges_ = other.mutuallyExclusiveBadges_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureMutuallyExclusiveBadgesIsMutable();
            mutuallyExclusiveBadges_.addAll(other.mutuallyExclusiveBadges_);
          }
          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.EventBadgeSettingsOuterClass.EventBadgeSettings parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long validFromMs_ ;
      /**
       * int64 valid_from_ms = 1;
       */
      public long getValidFromMs() {
        return validFromMs_;
      }
      /**
       * int64 valid_from_ms = 1;
       */
      public Builder setValidFromMs(long value) {
        
        validFromMs_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 valid_from_ms = 1;
       */
      public Builder clearValidFromMs() {
        
        validFromMs_ = 0L;
        onChanged();
        return this;
      }

      private long validToMs_ ;
      /**
       * int64 valid_to_ms = 2;
       */
      public long getValidToMs() {
        return validToMs_;
      }
      /**
       * int64 valid_to_ms = 2;
       */
      public Builder setValidToMs(long value) {
        
        validToMs_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 valid_to_ms = 2;
       */
      public Builder clearValidToMs() {
        
        validToMs_ = 0L;
        onChanged();
        return this;
      }

      private java.util.List mutuallyExclusiveBadges_ =
        java.util.Collections.emptyList();
      private void ensureMutuallyExclusiveBadgesIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          mutuallyExclusiveBadges_ = new java.util.ArrayList(mutuallyExclusiveBadges_);
          bitField0_ |= 0x00000004;
        }
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public java.util.List getMutuallyExclusiveBadgesList() {
        return new com.google.protobuf.Internal.ListAdapter<
            java.lang.Integer, POGOProtos.Enums.BadgeTypeOuterClass.BadgeType>(mutuallyExclusiveBadges_, mutuallyExclusiveBadges_converter_);
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public int getMutuallyExclusiveBadgesCount() {
        return mutuallyExclusiveBadges_.size();
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public POGOProtos.Enums.BadgeTypeOuterClass.BadgeType getMutuallyExclusiveBadges(int index) {
        return mutuallyExclusiveBadges_converter_.convert(mutuallyExclusiveBadges_.get(index));
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public Builder setMutuallyExclusiveBadges(
          int index, POGOProtos.Enums.BadgeTypeOuterClass.BadgeType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMutuallyExclusiveBadgesIsMutable();
        mutuallyExclusiveBadges_.set(index, value.getNumber());
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public Builder addMutuallyExclusiveBadges(POGOProtos.Enums.BadgeTypeOuterClass.BadgeType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureMutuallyExclusiveBadgesIsMutable();
        mutuallyExclusiveBadges_.add(value.getNumber());
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public Builder addAllMutuallyExclusiveBadges(
          java.lang.Iterable values) {
        ensureMutuallyExclusiveBadgesIsMutable();
        for (POGOProtos.Enums.BadgeTypeOuterClass.BadgeType value : values) {
          mutuallyExclusiveBadges_.add(value.getNumber());
        }
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public Builder clearMutuallyExclusiveBadges() {
        mutuallyExclusiveBadges_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public java.util.List
      getMutuallyExclusiveBadgesValueList() {
        return java.util.Collections.unmodifiableList(mutuallyExclusiveBadges_);
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public int getMutuallyExclusiveBadgesValue(int index) {
        return mutuallyExclusiveBadges_.get(index);
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public Builder setMutuallyExclusiveBadgesValue(
          int index, int value) {
        ensureMutuallyExclusiveBadgesIsMutable();
        mutuallyExclusiveBadges_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public Builder addMutuallyExclusiveBadgesValue(int value) {
        ensureMutuallyExclusiveBadgesIsMutable();
        mutuallyExclusiveBadges_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated .POGOProtos.Enums.BadgeType mutually_exclusive_badges = 3;
       */
      public Builder addAllMutuallyExclusiveBadgesValue(
          java.lang.Iterable values) {
        ensureMutuallyExclusiveBadgesIsMutable();
        for (int value : values) {
          mutuallyExclusiveBadges_.add(value);
        }
        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.EventBadgeSettings)
    }

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

    public static POGOProtos.Settings.Master.EventBadgeSettingsOuterClass.EventBadgeSettings getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_POGOProtos_Settings_Master_EventBadgeSettings_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_POGOProtos_Settings_Master_EventBadgeSettings_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n3POGOProtos/Settings/Master/EventBadgeS" +
      "ettings.proto\022\032POGOProtos.Settings.Maste" +
      "r\032 POGOProtos/Enums/BadgeType.proto\"\200\001\n\022" +
      "EventBadgeSettings\022\025\n\rvalid_from_ms\030\001 \001(" +
      "\003\022\023\n\013valid_to_ms\030\002 \001(\003\022>\n\031mutually_exclu" +
      "sive_badges\030\003 \003(\0162\033.POGOProtos.Enums.Bad" +
      "geTypeb\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.Enums.BadgeTypeOuterClass.getDescriptor(),
        }, assigner);
    internal_static_POGOProtos_Settings_Master_EventBadgeSettings_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_POGOProtos_Settings_Master_EventBadgeSettings_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_POGOProtos_Settings_Master_EventBadgeSettings_descriptor,
        new java.lang.String[] { "ValidFromMs", "ValidToMs", "MutuallyExclusiveBadges", });
    POGOProtos.Enums.BadgeTypeOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy