// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: fight.proto

package io.grasscutter.net.proto.fight;

/**
 * <pre>
 * CmdId: 28886
 * </pre>
 *
 * Protobuf type {@code ServerBuffChangeNotify}
 */
public final class ServerBuffChangeNotify extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ServerBuffChangeNotify)
    ServerBuffChangeNotifyOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ServerBuffChangeNotify.newBuilder() to construct.
  private ServerBuffChangeNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ServerBuffChangeNotify() {
    avatarGuidList_ = emptyLongList();
    serverBuffList_ = java.util.Collections.emptyList();
    entityIdList_ = emptyIntList();
    serverBuffChangeType_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ServerBuffChangeNotify();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ServerBuffChangeNotify(
      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 16: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              entityIdList_ = newIntList();
              mutable_bitField0_ |= 0x00000004;
            }
            entityIdList_.addInt(input.readUInt32());
            break;
          }
          case 18: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
              entityIdList_ = newIntList();
              mutable_bitField0_ |= 0x00000004;
            }
            while (input.getBytesUntilLimit() > 0) {
              entityIdList_.addInt(input.readUInt32());
            }
            input.popLimit(limit);
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              serverBuffList_ = new java.util.ArrayList<io.grasscutter.net.proto.define.ServerBuff>();
              mutable_bitField0_ |= 0x00000002;
            }
            serverBuffList_.add(
                input.readMessage(io.grasscutter.net.proto.define.ServerBuff.parser(), extensionRegistry));
            break;
          }
          case 72: {
            int rawValue = input.readEnum();

            serverBuffChangeType_ = rawValue;
            break;
          }
          case 88: {

            isCreatureBuff_ = input.readBool();
            break;
          }
          case 104: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              avatarGuidList_ = newLongList();
              mutable_bitField0_ |= 0x00000001;
            }
            avatarGuidList_.addLong(input.readUInt64());
            break;
          }
          case 106: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
              avatarGuidList_ = newLongList();
              mutable_bitField0_ |= 0x00000001;
            }
            while (input.getBytesUntilLimit() > 0) {
              avatarGuidList_.addLong(input.readUInt64());
            }
            input.popLimit(limit);
            break;
          }
          default: {
            if (!parseUnknownField(
                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) != 0)) {
        entityIdList_.makeImmutable(); // C
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_);
      }
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        avatarGuidList_.makeImmutable(); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.fight.Fight.internal_static_ServerBuffChangeNotify_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.fight.Fight.internal_static_ServerBuffChangeNotify_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.fight.ServerBuffChangeNotify.class, io.grasscutter.net.proto.fight.ServerBuffChangeNotify.Builder.class);
  }

  public static final int AVATAR_GUID_LIST_FIELD_NUMBER = 13;
  private com.google.protobuf.Internal.LongList avatarGuidList_;
  /**
   * <code>repeated uint64 avatar_guid_list = 13;</code>
   * @return A list containing the avatarGuidList.
   */
  @java.lang.Override
  public java.util.List<java.lang.Long>
      getAvatarGuidListList() {
    return avatarGuidList_;
  }
  /**
   * <code>repeated uint64 avatar_guid_list = 13;</code>
   * @return The count of avatarGuidList.
   */
  public int getAvatarGuidListCount() {
    return avatarGuidList_.size();
  }
  /**
   * <code>repeated uint64 avatar_guid_list = 13;</code>
   * @param index The index of the element to return.
   * @return The avatarGuidList at the given index.
   */
  public long getAvatarGuidList(int index) {
    return avatarGuidList_.getLong(index);
  }
  private int avatarGuidListMemoizedSerializedSize = -1;

  public static final int SERVER_BUFF_LIST_FIELD_NUMBER = 6;
  private java.util.List<io.grasscutter.net.proto.define.ServerBuff> serverBuffList_;
  /**
   * <code>repeated .ServerBuff server_buff_list = 6;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.define.ServerBuff> getServerBuffListList() {
    return serverBuffList_;
  }
  /**
   * <code>repeated .ServerBuff server_buff_list = 6;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.define.ServerBuffOrBuilder> 
      getServerBuffListOrBuilderList() {
    return serverBuffList_;
  }
  /**
   * <code>repeated .ServerBuff server_buff_list = 6;</code>
   */
  @java.lang.Override
  public int getServerBuffListCount() {
    return serverBuffList_.size();
  }
  /**
   * <code>repeated .ServerBuff server_buff_list = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.ServerBuff getServerBuffList(int index) {
    return serverBuffList_.get(index);
  }
  /**
   * <code>repeated .ServerBuff server_buff_list = 6;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.ServerBuffOrBuilder getServerBuffListOrBuilder(
      int index) {
    return serverBuffList_.get(index);
  }

  public static final int ENTITY_ID_LIST_FIELD_NUMBER = 2;
  private com.google.protobuf.Internal.IntList entityIdList_;
  /**
   * <code>repeated uint32 entity_id_list = 2;</code>
   * @return A list containing the entityIdList.
   */
  @java.lang.Override
  public java.util.List<java.lang.Integer>
      getEntityIdListList() {
    return entityIdList_;
  }
  /**
   * <code>repeated uint32 entity_id_list = 2;</code>
   * @return The count of entityIdList.
   */
  public int getEntityIdListCount() {
    return entityIdList_.size();
  }
  /**
   * <code>repeated uint32 entity_id_list = 2;</code>
   * @param index The index of the element to return.
   * @return The entityIdList at the given index.
   */
  public int getEntityIdList(int index) {
    return entityIdList_.getInt(index);
  }
  private int entityIdListMemoizedSerializedSize = -1;

  public static final int SERVER_BUFF_CHANGE_TYPE_FIELD_NUMBER = 9;
  private int serverBuffChangeType_;
  /**
   * <code>.ServerBuffChangeType server_buff_change_type = 9;</code>
   * @return The enum numeric value on the wire for serverBuffChangeType.
   */
  @java.lang.Override public int getServerBuffChangeTypeValue() {
    return serverBuffChangeType_;
  }
  /**
   * <code>.ServerBuffChangeType server_buff_change_type = 9;</code>
   * @return The serverBuffChangeType.
   */
  @java.lang.Override public io.grasscutter.net.proto.fight.ServerBuffChangeType getServerBuffChangeType() {
    @SuppressWarnings("deprecation")
    io.grasscutter.net.proto.fight.ServerBuffChangeType result = io.grasscutter.net.proto.fight.ServerBuffChangeType.valueOf(serverBuffChangeType_);
    return result == null ? io.grasscutter.net.proto.fight.ServerBuffChangeType.UNRECOGNIZED : result;
  }

  public static final int IS_CREATURE_BUFF_FIELD_NUMBER = 11;
  private boolean isCreatureBuff_;
  /**
   * <code>bool is_creature_buff = 11;</code>
   * @return The isCreatureBuff.
   */
  @java.lang.Override
  public boolean getIsCreatureBuff() {
    return isCreatureBuff_;
  }

  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 (getEntityIdListList().size() > 0) {
      output.writeUInt32NoTag(18);
      output.writeUInt32NoTag(entityIdListMemoizedSerializedSize);
    }
    for (int i = 0; i < entityIdList_.size(); i++) {
      output.writeUInt32NoTag(entityIdList_.getInt(i));
    }
    for (int i = 0; i < serverBuffList_.size(); i++) {
      output.writeMessage(6, serverBuffList_.get(i));
    }
    if (serverBuffChangeType_ != io.grasscutter.net.proto.fight.ServerBuffChangeType.ServerBuffChangeType_ADD_SERVER_BUFF.getNumber()) {
      output.writeEnum(9, serverBuffChangeType_);
    }
    if (isCreatureBuff_ != false) {
      output.writeBool(11, isCreatureBuff_);
    }
    if (getAvatarGuidListList().size() > 0) {
      output.writeUInt32NoTag(106);
      output.writeUInt32NoTag(avatarGuidListMemoizedSerializedSize);
    }
    for (int i = 0; i < avatarGuidList_.size(); i++) {
      output.writeUInt64NoTag(avatarGuidList_.getLong(i));
    }
    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 < entityIdList_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeUInt32SizeNoTag(entityIdList_.getInt(i));
      }
      size += dataSize;
      if (!getEntityIdListList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      entityIdListMemoizedSerializedSize = dataSize;
    }
    for (int i = 0; i < serverBuffList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(6, serverBuffList_.get(i));
    }
    if (serverBuffChangeType_ != io.grasscutter.net.proto.fight.ServerBuffChangeType.ServerBuffChangeType_ADD_SERVER_BUFF.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(9, serverBuffChangeType_);
    }
    if (isCreatureBuff_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(11, isCreatureBuff_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < avatarGuidList_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeUInt64SizeNoTag(avatarGuidList_.getLong(i));
      }
      size += dataSize;
      if (!getAvatarGuidListList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(dataSize);
      }
      avatarGuidListMemoizedSerializedSize = 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 io.grasscutter.net.proto.fight.ServerBuffChangeNotify)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.fight.ServerBuffChangeNotify other = (io.grasscutter.net.proto.fight.ServerBuffChangeNotify) obj;

    if (!getAvatarGuidListList()
        .equals(other.getAvatarGuidListList())) return false;
    if (!getServerBuffListList()
        .equals(other.getServerBuffListList())) return false;
    if (!getEntityIdListList()
        .equals(other.getEntityIdListList())) return false;
    if (serverBuffChangeType_ != other.serverBuffChangeType_) return false;
    if (getIsCreatureBuff()
        != other.getIsCreatureBuff()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getAvatarGuidListCount() > 0) {
      hash = (37 * hash) + AVATAR_GUID_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getAvatarGuidListList().hashCode();
    }
    if (getServerBuffListCount() > 0) {
      hash = (37 * hash) + SERVER_BUFF_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getServerBuffListList().hashCode();
    }
    if (getEntityIdListCount() > 0) {
      hash = (37 * hash) + ENTITY_ID_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getEntityIdListList().hashCode();
    }
    hash = (37 * hash) + SERVER_BUFF_CHANGE_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + serverBuffChangeType_;
    hash = (37 * hash) + IS_CREATURE_BUFF_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsCreatureBuff());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify 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 io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify 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 io.grasscutter.net.proto.fight.ServerBuffChangeNotify parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify 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(io.grasscutter.net.proto.fight.ServerBuffChangeNotify 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;
  }
  /**
   * <pre>
   * CmdId: 28886
   * </pre>
   *
   * Protobuf type {@code ServerBuffChangeNotify}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:ServerBuffChangeNotify)
      io.grasscutter.net.proto.fight.ServerBuffChangeNotifyOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.fight.Fight.internal_static_ServerBuffChangeNotify_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.fight.Fight.internal_static_ServerBuffChangeNotify_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.fight.ServerBuffChangeNotify.class, io.grasscutter.net.proto.fight.ServerBuffChangeNotify.Builder.class);
    }

    // Construct using io.grasscutter.net.proto.fight.ServerBuffChangeNotify.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getServerBuffListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      avatarGuidList_ = emptyLongList();
      bitField0_ = (bitField0_ & ~0x00000001);
      if (serverBuffListBuilder_ == null) {
        serverBuffList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        serverBuffListBuilder_.clear();
      }
      entityIdList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000004);
      serverBuffChangeType_ = 0;

      isCreatureBuff_ = false;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.fight.Fight.internal_static_ServerBuffChangeNotify_descriptor;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.fight.ServerBuffChangeNotify getDefaultInstanceForType() {
      return io.grasscutter.net.proto.fight.ServerBuffChangeNotify.getDefaultInstance();
    }

    @java.lang.Override
    public io.grasscutter.net.proto.fight.ServerBuffChangeNotify build() {
      io.grasscutter.net.proto.fight.ServerBuffChangeNotify result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.grasscutter.net.proto.fight.ServerBuffChangeNotify buildPartial() {
      io.grasscutter.net.proto.fight.ServerBuffChangeNotify result = new io.grasscutter.net.proto.fight.ServerBuffChangeNotify(this);
      int from_bitField0_ = bitField0_;
      if (((bitField0_ & 0x00000001) != 0)) {
        avatarGuidList_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.avatarGuidList_ = avatarGuidList_;
      if (serverBuffListBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          serverBuffList_ = java.util.Collections.unmodifiableList(serverBuffList_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.serverBuffList_ = serverBuffList_;
      } else {
        result.serverBuffList_ = serverBuffListBuilder_.build();
      }
      if (((bitField0_ & 0x00000004) != 0)) {
        entityIdList_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.entityIdList_ = entityIdList_;
      result.serverBuffChangeType_ = serverBuffChangeType_;
      result.isCreatureBuff_ = isCreatureBuff_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof io.grasscutter.net.proto.fight.ServerBuffChangeNotify) {
        return mergeFrom((io.grasscutter.net.proto.fight.ServerBuffChangeNotify)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.fight.ServerBuffChangeNotify other) {
      if (other == io.grasscutter.net.proto.fight.ServerBuffChangeNotify.getDefaultInstance()) return this;
      if (!other.avatarGuidList_.isEmpty()) {
        if (avatarGuidList_.isEmpty()) {
          avatarGuidList_ = other.avatarGuidList_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureAvatarGuidListIsMutable();
          avatarGuidList_.addAll(other.avatarGuidList_);
        }
        onChanged();
      }
      if (serverBuffListBuilder_ == null) {
        if (!other.serverBuffList_.isEmpty()) {
          if (serverBuffList_.isEmpty()) {
            serverBuffList_ = other.serverBuffList_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureServerBuffListIsMutable();
            serverBuffList_.addAll(other.serverBuffList_);
          }
          onChanged();
        }
      } else {
        if (!other.serverBuffList_.isEmpty()) {
          if (serverBuffListBuilder_.isEmpty()) {
            serverBuffListBuilder_.dispose();
            serverBuffListBuilder_ = null;
            serverBuffList_ = other.serverBuffList_;
            bitField0_ = (bitField0_ & ~0x00000002);
            serverBuffListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getServerBuffListFieldBuilder() : null;
          } else {
            serverBuffListBuilder_.addAllMessages(other.serverBuffList_);
          }
        }
      }
      if (!other.entityIdList_.isEmpty()) {
        if (entityIdList_.isEmpty()) {
          entityIdList_ = other.entityIdList_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureEntityIdListIsMutable();
          entityIdList_.addAll(other.entityIdList_);
        }
        onChanged();
      }
      if (other.serverBuffChangeType_ != 0) {
        setServerBuffChangeTypeValue(other.getServerBuffChangeTypeValue());
      }
      if (other.getIsCreatureBuff() != false) {
        setIsCreatureBuff(other.getIsCreatureBuff());
      }
      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 {
      io.grasscutter.net.proto.fight.ServerBuffChangeNotify parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.fight.ServerBuffChangeNotify) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.Internal.LongList avatarGuidList_ = emptyLongList();
    private void ensureAvatarGuidListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        avatarGuidList_ = mutableCopy(avatarGuidList_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <code>repeated uint64 avatar_guid_list = 13;</code>
     * @return A list containing the avatarGuidList.
     */
    public java.util.List<java.lang.Long>
        getAvatarGuidListList() {
      return ((bitField0_ & 0x00000001) != 0) ?
               java.util.Collections.unmodifiableList(avatarGuidList_) : avatarGuidList_;
    }
    /**
     * <code>repeated uint64 avatar_guid_list = 13;</code>
     * @return The count of avatarGuidList.
     */
    public int getAvatarGuidListCount() {
      return avatarGuidList_.size();
    }
    /**
     * <code>repeated uint64 avatar_guid_list = 13;</code>
     * @param index The index of the element to return.
     * @return The avatarGuidList at the given index.
     */
    public long getAvatarGuidList(int index) {
      return avatarGuidList_.getLong(index);
    }
    /**
     * <code>repeated uint64 avatar_guid_list = 13;</code>
     * @param index The index to set the value at.
     * @param value The avatarGuidList to set.
     * @return This builder for chaining.
     */
    public Builder setAvatarGuidList(
        int index, long value) {
      ensureAvatarGuidListIsMutable();
      avatarGuidList_.setLong(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint64 avatar_guid_list = 13;</code>
     * @param value The avatarGuidList to add.
     * @return This builder for chaining.
     */
    public Builder addAvatarGuidList(long value) {
      ensureAvatarGuidListIsMutable();
      avatarGuidList_.addLong(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint64 avatar_guid_list = 13;</code>
     * @param values The avatarGuidList to add.
     * @return This builder for chaining.
     */
    public Builder addAllAvatarGuidList(
        java.lang.Iterable<? extends java.lang.Long> values) {
      ensureAvatarGuidListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, avatarGuidList_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint64 avatar_guid_list = 13;</code>
     * @return This builder for chaining.
     */
    public Builder clearAvatarGuidList() {
      avatarGuidList_ = emptyLongList();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }

    private java.util.List<io.grasscutter.net.proto.define.ServerBuff> serverBuffList_ =
      java.util.Collections.emptyList();
    private void ensureServerBuffListIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        serverBuffList_ = new java.util.ArrayList<io.grasscutter.net.proto.define.ServerBuff>(serverBuffList_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.define.ServerBuff, io.grasscutter.net.proto.define.ServerBuff.Builder, io.grasscutter.net.proto.define.ServerBuffOrBuilder> serverBuffListBuilder_;

    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public java.util.List<io.grasscutter.net.proto.define.ServerBuff> getServerBuffListList() {
      if (serverBuffListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(serverBuffList_);
      } else {
        return serverBuffListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public int getServerBuffListCount() {
      if (serverBuffListBuilder_ == null) {
        return serverBuffList_.size();
      } else {
        return serverBuffListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public io.grasscutter.net.proto.define.ServerBuff getServerBuffList(int index) {
      if (serverBuffListBuilder_ == null) {
        return serverBuffList_.get(index);
      } else {
        return serverBuffListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder setServerBuffList(
        int index, io.grasscutter.net.proto.define.ServerBuff value) {
      if (serverBuffListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureServerBuffListIsMutable();
        serverBuffList_.set(index, value);
        onChanged();
      } else {
        serverBuffListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder setServerBuffList(
        int index, io.grasscutter.net.proto.define.ServerBuff.Builder builderForValue) {
      if (serverBuffListBuilder_ == null) {
        ensureServerBuffListIsMutable();
        serverBuffList_.set(index, builderForValue.build());
        onChanged();
      } else {
        serverBuffListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder addServerBuffList(io.grasscutter.net.proto.define.ServerBuff value) {
      if (serverBuffListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureServerBuffListIsMutable();
        serverBuffList_.add(value);
        onChanged();
      } else {
        serverBuffListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder addServerBuffList(
        int index, io.grasscutter.net.proto.define.ServerBuff value) {
      if (serverBuffListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureServerBuffListIsMutable();
        serverBuffList_.add(index, value);
        onChanged();
      } else {
        serverBuffListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder addServerBuffList(
        io.grasscutter.net.proto.define.ServerBuff.Builder builderForValue) {
      if (serverBuffListBuilder_ == null) {
        ensureServerBuffListIsMutable();
        serverBuffList_.add(builderForValue.build());
        onChanged();
      } else {
        serverBuffListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder addServerBuffList(
        int index, io.grasscutter.net.proto.define.ServerBuff.Builder builderForValue) {
      if (serverBuffListBuilder_ == null) {
        ensureServerBuffListIsMutable();
        serverBuffList_.add(index, builderForValue.build());
        onChanged();
      } else {
        serverBuffListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder addAllServerBuffList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.define.ServerBuff> values) {
      if (serverBuffListBuilder_ == null) {
        ensureServerBuffListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, serverBuffList_);
        onChanged();
      } else {
        serverBuffListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder clearServerBuffList() {
      if (serverBuffListBuilder_ == null) {
        serverBuffList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        serverBuffListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public Builder removeServerBuffList(int index) {
      if (serverBuffListBuilder_ == null) {
        ensureServerBuffListIsMutable();
        serverBuffList_.remove(index);
        onChanged();
      } else {
        serverBuffListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public io.grasscutter.net.proto.define.ServerBuff.Builder getServerBuffListBuilder(
        int index) {
      return getServerBuffListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public io.grasscutter.net.proto.define.ServerBuffOrBuilder getServerBuffListOrBuilder(
        int index) {
      if (serverBuffListBuilder_ == null) {
        return serverBuffList_.get(index);  } else {
        return serverBuffListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.define.ServerBuffOrBuilder> 
         getServerBuffListOrBuilderList() {
      if (serverBuffListBuilder_ != null) {
        return serverBuffListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(serverBuffList_);
      }
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public io.grasscutter.net.proto.define.ServerBuff.Builder addServerBuffListBuilder() {
      return getServerBuffListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.define.ServerBuff.getDefaultInstance());
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public io.grasscutter.net.proto.define.ServerBuff.Builder addServerBuffListBuilder(
        int index) {
      return getServerBuffListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.define.ServerBuff.getDefaultInstance());
    }
    /**
     * <code>repeated .ServerBuff server_buff_list = 6;</code>
     */
    public java.util.List<io.grasscutter.net.proto.define.ServerBuff.Builder> 
         getServerBuffListBuilderList() {
      return getServerBuffListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.define.ServerBuff, io.grasscutter.net.proto.define.ServerBuff.Builder, io.grasscutter.net.proto.define.ServerBuffOrBuilder> 
        getServerBuffListFieldBuilder() {
      if (serverBuffListBuilder_ == null) {
        serverBuffListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.define.ServerBuff, io.grasscutter.net.proto.define.ServerBuff.Builder, io.grasscutter.net.proto.define.ServerBuffOrBuilder>(
                serverBuffList_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        serverBuffList_ = null;
      }
      return serverBuffListBuilder_;
    }

    private com.google.protobuf.Internal.IntList entityIdList_ = emptyIntList();
    private void ensureEntityIdListIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        entityIdList_ = mutableCopy(entityIdList_);
        bitField0_ |= 0x00000004;
       }
    }
    /**
     * <code>repeated uint32 entity_id_list = 2;</code>
     * @return A list containing the entityIdList.
     */
    public java.util.List<java.lang.Integer>
        getEntityIdListList() {
      return ((bitField0_ & 0x00000004) != 0) ?
               java.util.Collections.unmodifiableList(entityIdList_) : entityIdList_;
    }
    /**
     * <code>repeated uint32 entity_id_list = 2;</code>
     * @return The count of entityIdList.
     */
    public int getEntityIdListCount() {
      return entityIdList_.size();
    }
    /**
     * <code>repeated uint32 entity_id_list = 2;</code>
     * @param index The index of the element to return.
     * @return The entityIdList at the given index.
     */
    public int getEntityIdList(int index) {
      return entityIdList_.getInt(index);
    }
    /**
     * <code>repeated uint32 entity_id_list = 2;</code>
     * @param index The index to set the value at.
     * @param value The entityIdList to set.
     * @return This builder for chaining.
     */
    public Builder setEntityIdList(
        int index, int value) {
      ensureEntityIdListIsMutable();
      entityIdList_.setInt(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 entity_id_list = 2;</code>
     * @param value The entityIdList to add.
     * @return This builder for chaining.
     */
    public Builder addEntityIdList(int value) {
      ensureEntityIdListIsMutable();
      entityIdList_.addInt(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 entity_id_list = 2;</code>
     * @param values The entityIdList to add.
     * @return This builder for chaining.
     */
    public Builder addAllEntityIdList(
        java.lang.Iterable<? extends java.lang.Integer> values) {
      ensureEntityIdListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, entityIdList_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated uint32 entity_id_list = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearEntityIdList() {
      entityIdList_ = emptyIntList();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }

    private int serverBuffChangeType_ = 0;
    /**
     * <code>.ServerBuffChangeType server_buff_change_type = 9;</code>
     * @return The enum numeric value on the wire for serverBuffChangeType.
     */
    @java.lang.Override public int getServerBuffChangeTypeValue() {
      return serverBuffChangeType_;
    }
    /**
     * <code>.ServerBuffChangeType server_buff_change_type = 9;</code>
     * @param value The enum numeric value on the wire for serverBuffChangeType to set.
     * @return This builder for chaining.
     */
    public Builder setServerBuffChangeTypeValue(int value) {
      
      serverBuffChangeType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>.ServerBuffChangeType server_buff_change_type = 9;</code>
     * @return The serverBuffChangeType.
     */
    @java.lang.Override
    public io.grasscutter.net.proto.fight.ServerBuffChangeType getServerBuffChangeType() {
      @SuppressWarnings("deprecation")
      io.grasscutter.net.proto.fight.ServerBuffChangeType result = io.grasscutter.net.proto.fight.ServerBuffChangeType.valueOf(serverBuffChangeType_);
      return result == null ? io.grasscutter.net.proto.fight.ServerBuffChangeType.UNRECOGNIZED : result;
    }
    /**
     * <code>.ServerBuffChangeType server_buff_change_type = 9;</code>
     * @param value The serverBuffChangeType to set.
     * @return This builder for chaining.
     */
    public Builder setServerBuffChangeType(io.grasscutter.net.proto.fight.ServerBuffChangeType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      serverBuffChangeType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <code>.ServerBuffChangeType server_buff_change_type = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearServerBuffChangeType() {
      
      serverBuffChangeType_ = 0;
      onChanged();
      return this;
    }

    private boolean isCreatureBuff_ ;
    /**
     * <code>bool is_creature_buff = 11;</code>
     * @return The isCreatureBuff.
     */
    @java.lang.Override
    public boolean getIsCreatureBuff() {
      return isCreatureBuff_;
    }
    /**
     * <code>bool is_creature_buff = 11;</code>
     * @param value The isCreatureBuff to set.
     * @return This builder for chaining.
     */
    public Builder setIsCreatureBuff(boolean value) {
      
      isCreatureBuff_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_creature_buff = 11;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsCreatureBuff() {
      
      isCreatureBuff_ = false;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:ServerBuffChangeNotify)
  }

  // @@protoc_insertion_point(class_scope:ServerBuffChangeNotify)
  private static final io.grasscutter.net.proto.fight.ServerBuffChangeNotify DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.grasscutter.net.proto.fight.ServerBuffChangeNotify();
  }

  public static io.grasscutter.net.proto.fight.ServerBuffChangeNotify getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public io.grasscutter.net.proto.fight.ServerBuffChangeNotify getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

