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

package io.grasscutter.net.proto.avatar;

/**
 * <pre>
 * CmdId: 1067
 * Deobfuscation notes:
 * Use the following search filter: [1,&lt;uid&gt;]
 *  then look for the largest packet.
 * For the 'is_in_mp' field, look for the packet in Co-Op.
 * </pre>
 *
 * Protobuf type {@code SceneTeamUpdateNotify}
 */
public final class SceneTeamUpdateNotify extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:SceneTeamUpdateNotify)
    SceneTeamUpdateNotifyOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SceneTeamUpdateNotify.newBuilder() to construct.
  private SceneTeamUpdateNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SceneTeamUpdateNotify() {
    sceneTeamAvatarList_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SceneTeamUpdateNotify(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              sceneTeamAvatarList_ = new java.util.ArrayList<io.grasscutter.net.proto.avatar.SceneTeamAvatar>();
              mutable_bitField0_ |= 0x00000001;
            }
            sceneTeamAvatarList_.add(
                input.readMessage(io.grasscutter.net.proto.avatar.SceneTeamAvatar.parser(), extensionRegistry));
            break;
          }
          case 64: {

            isInMp_ = input.readBool();
            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_ & 0x00000001) != 0)) {
        sceneTeamAvatarList_ = java.util.Collections.unmodifiableList(sceneTeamAvatarList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.avatar.Avatar.internal_static_SceneTeamUpdateNotify_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.avatar.Avatar.internal_static_SceneTeamUpdateNotify_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify.class, io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify.Builder.class);
  }

  public static final int SCENE_TEAM_AVATAR_LIST_FIELD_NUMBER = 1;
  private java.util.List<io.grasscutter.net.proto.avatar.SceneTeamAvatar> sceneTeamAvatarList_;
  /**
   * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.avatar.SceneTeamAvatar> getSceneTeamAvatarListList() {
    return sceneTeamAvatarList_;
  }
  /**
   * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.avatar.SceneTeamAvatarOrBuilder> 
      getSceneTeamAvatarListOrBuilderList() {
    return sceneTeamAvatarList_;
  }
  /**
   * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
   */
  @java.lang.Override
  public int getSceneTeamAvatarListCount() {
    return sceneTeamAvatarList_.size();
  }
  /**
   * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.avatar.SceneTeamAvatar getSceneTeamAvatarList(int index) {
    return sceneTeamAvatarList_.get(index);
  }
  /**
   * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.avatar.SceneTeamAvatarOrBuilder getSceneTeamAvatarListOrBuilder(
      int index) {
    return sceneTeamAvatarList_.get(index);
  }

  public static final int IS_IN_MP_FIELD_NUMBER = 8;
  private boolean isInMp_;
  /**
   * <code>bool is_in_mp = 8;</code>
   * @return The isInMp.
   */
  @java.lang.Override
  public boolean getIsInMp() {
    return isInMp_;
  }

  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 {
    for (int i = 0; i < sceneTeamAvatarList_.size(); i++) {
      output.writeMessage(1, sceneTeamAvatarList_.get(i));
    }
    if (isInMp_ != false) {
      output.writeBool(8, isInMp_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < sceneTeamAvatarList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, sceneTeamAvatarList_.get(i));
    }
    if (isInMp_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(8, isInMp_);
    }
    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.avatar.SceneTeamUpdateNotify)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify other = (io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify) obj;

    if (!getSceneTeamAvatarListList()
        .equals(other.getSceneTeamAvatarListList())) return false;
    if (getIsInMp()
        != other.getIsInMp()) 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 (getSceneTeamAvatarListCount() > 0) {
      hash = (37 * hash) + SCENE_TEAM_AVATAR_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getSceneTeamAvatarListList().hashCode();
    }
    hash = (37 * hash) + IS_IN_MP_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsInMp());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify 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.avatar.SceneTeamUpdateNotify parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify 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.avatar.SceneTeamUpdateNotify parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify 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.avatar.SceneTeamUpdateNotify parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify 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.avatar.SceneTeamUpdateNotify parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify 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.avatar.SceneTeamUpdateNotify 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: 1067
   * Deobfuscation notes:
   * Use the following search filter: [1,&lt;uid&gt;]
   *  then look for the largest packet.
   * For the 'is_in_mp' field, look for the packet in Co-Op.
   * </pre>
   *
   * Protobuf type {@code SceneTeamUpdateNotify}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:SceneTeamUpdateNotify)
      io.grasscutter.net.proto.avatar.SceneTeamUpdateNotifyOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.avatar.Avatar.internal_static_SceneTeamUpdateNotify_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.avatar.Avatar.internal_static_SceneTeamUpdateNotify_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify.class, io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getSceneTeamAvatarListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (sceneTeamAvatarListBuilder_ == null) {
        sceneTeamAvatarList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        sceneTeamAvatarListBuilder_.clear();
      }
      isInMp_ = false;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.avatar.Avatar.internal_static_SceneTeamUpdateNotify_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify buildPartial() {
      io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify result = new io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify(this);
      int from_bitField0_ = bitField0_;
      if (sceneTeamAvatarListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          sceneTeamAvatarList_ = java.util.Collections.unmodifiableList(sceneTeamAvatarList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.sceneTeamAvatarList_ = sceneTeamAvatarList_;
      } else {
        result.sceneTeamAvatarList_ = sceneTeamAvatarListBuilder_.build();
      }
      result.isInMp_ = isInMp_;
      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.avatar.SceneTeamUpdateNotify) {
        return mergeFrom((io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify other) {
      if (other == io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify.getDefaultInstance()) return this;
      if (sceneTeamAvatarListBuilder_ == null) {
        if (!other.sceneTeamAvatarList_.isEmpty()) {
          if (sceneTeamAvatarList_.isEmpty()) {
            sceneTeamAvatarList_ = other.sceneTeamAvatarList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureSceneTeamAvatarListIsMutable();
            sceneTeamAvatarList_.addAll(other.sceneTeamAvatarList_);
          }
          onChanged();
        }
      } else {
        if (!other.sceneTeamAvatarList_.isEmpty()) {
          if (sceneTeamAvatarListBuilder_.isEmpty()) {
            sceneTeamAvatarListBuilder_.dispose();
            sceneTeamAvatarListBuilder_ = null;
            sceneTeamAvatarList_ = other.sceneTeamAvatarList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            sceneTeamAvatarListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getSceneTeamAvatarListFieldBuilder() : null;
          } else {
            sceneTeamAvatarListBuilder_.addAllMessages(other.sceneTeamAvatarList_);
          }
        }
      }
      if (other.getIsInMp() != false) {
        setIsInMp(other.getIsInMp());
      }
      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.avatar.SceneTeamUpdateNotify parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List<io.grasscutter.net.proto.avatar.SceneTeamAvatar> sceneTeamAvatarList_ =
      java.util.Collections.emptyList();
    private void ensureSceneTeamAvatarListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        sceneTeamAvatarList_ = new java.util.ArrayList<io.grasscutter.net.proto.avatar.SceneTeamAvatar>(sceneTeamAvatarList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.avatar.SceneTeamAvatar, io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder, io.grasscutter.net.proto.avatar.SceneTeamAvatarOrBuilder> sceneTeamAvatarListBuilder_;

    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public java.util.List<io.grasscutter.net.proto.avatar.SceneTeamAvatar> getSceneTeamAvatarListList() {
      if (sceneTeamAvatarListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(sceneTeamAvatarList_);
      } else {
        return sceneTeamAvatarListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public int getSceneTeamAvatarListCount() {
      if (sceneTeamAvatarListBuilder_ == null) {
        return sceneTeamAvatarList_.size();
      } else {
        return sceneTeamAvatarListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public io.grasscutter.net.proto.avatar.SceneTeamAvatar getSceneTeamAvatarList(int index) {
      if (sceneTeamAvatarListBuilder_ == null) {
        return sceneTeamAvatarList_.get(index);
      } else {
        return sceneTeamAvatarListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder setSceneTeamAvatarList(
        int index, io.grasscutter.net.proto.avatar.SceneTeamAvatar value) {
      if (sceneTeamAvatarListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSceneTeamAvatarListIsMutable();
        sceneTeamAvatarList_.set(index, value);
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder setSceneTeamAvatarList(
        int index, io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder builderForValue) {
      if (sceneTeamAvatarListBuilder_ == null) {
        ensureSceneTeamAvatarListIsMutable();
        sceneTeamAvatarList_.set(index, builderForValue.build());
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder addSceneTeamAvatarList(io.grasscutter.net.proto.avatar.SceneTeamAvatar value) {
      if (sceneTeamAvatarListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSceneTeamAvatarListIsMutable();
        sceneTeamAvatarList_.add(value);
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder addSceneTeamAvatarList(
        int index, io.grasscutter.net.proto.avatar.SceneTeamAvatar value) {
      if (sceneTeamAvatarListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureSceneTeamAvatarListIsMutable();
        sceneTeamAvatarList_.add(index, value);
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder addSceneTeamAvatarList(
        io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder builderForValue) {
      if (sceneTeamAvatarListBuilder_ == null) {
        ensureSceneTeamAvatarListIsMutable();
        sceneTeamAvatarList_.add(builderForValue.build());
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder addSceneTeamAvatarList(
        int index, io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder builderForValue) {
      if (sceneTeamAvatarListBuilder_ == null) {
        ensureSceneTeamAvatarListIsMutable();
        sceneTeamAvatarList_.add(index, builderForValue.build());
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder addAllSceneTeamAvatarList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.avatar.SceneTeamAvatar> values) {
      if (sceneTeamAvatarListBuilder_ == null) {
        ensureSceneTeamAvatarListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, sceneTeamAvatarList_);
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder clearSceneTeamAvatarList() {
      if (sceneTeamAvatarListBuilder_ == null) {
        sceneTeamAvatarList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public Builder removeSceneTeamAvatarList(int index) {
      if (sceneTeamAvatarListBuilder_ == null) {
        ensureSceneTeamAvatarListIsMutable();
        sceneTeamAvatarList_.remove(index);
        onChanged();
      } else {
        sceneTeamAvatarListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder getSceneTeamAvatarListBuilder(
        int index) {
      return getSceneTeamAvatarListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public io.grasscutter.net.proto.avatar.SceneTeamAvatarOrBuilder getSceneTeamAvatarListOrBuilder(
        int index) {
      if (sceneTeamAvatarListBuilder_ == null) {
        return sceneTeamAvatarList_.get(index);  } else {
        return sceneTeamAvatarListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.avatar.SceneTeamAvatarOrBuilder> 
         getSceneTeamAvatarListOrBuilderList() {
      if (sceneTeamAvatarListBuilder_ != null) {
        return sceneTeamAvatarListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(sceneTeamAvatarList_);
      }
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder addSceneTeamAvatarListBuilder() {
      return getSceneTeamAvatarListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.avatar.SceneTeamAvatar.getDefaultInstance());
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder addSceneTeamAvatarListBuilder(
        int index) {
      return getSceneTeamAvatarListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.avatar.SceneTeamAvatar.getDefaultInstance());
    }
    /**
     * <code>repeated .SceneTeamAvatar scene_team_avatar_list = 1;</code>
     */
    public java.util.List<io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder> 
         getSceneTeamAvatarListBuilderList() {
      return getSceneTeamAvatarListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.avatar.SceneTeamAvatar, io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder, io.grasscutter.net.proto.avatar.SceneTeamAvatarOrBuilder> 
        getSceneTeamAvatarListFieldBuilder() {
      if (sceneTeamAvatarListBuilder_ == null) {
        sceneTeamAvatarListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.avatar.SceneTeamAvatar, io.grasscutter.net.proto.avatar.SceneTeamAvatar.Builder, io.grasscutter.net.proto.avatar.SceneTeamAvatarOrBuilder>(
                sceneTeamAvatarList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        sceneTeamAvatarList_ = null;
      }
      return sceneTeamAvatarListBuilder_;
    }

    private boolean isInMp_ ;
    /**
     * <code>bool is_in_mp = 8;</code>
     * @return The isInMp.
     */
    @java.lang.Override
    public boolean getIsInMp() {
      return isInMp_;
    }
    /**
     * <code>bool is_in_mp = 8;</code>
     * @param value The isInMp to set.
     * @return This builder for chaining.
     */
    public Builder setIsInMp(boolean value) {
      
      isInMp_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_in_mp = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsInMp() {
      
      isInMp_ = 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:SceneTeamUpdateNotify)
  }

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

  public static io.grasscutter.net.proto.avatar.SceneTeamUpdateNotify getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

