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

package io.grasscutter.net.proto.define;

/**
 * Protobuf type {@code BreakoutPhysicalObject}
 */
public final class BreakoutPhysicalObject extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:BreakoutPhysicalObject)
    BreakoutPhysicalObjectOrBuilder {
private static final long serialVersionUID = 0L;
  // Use BreakoutPhysicalObject.newBuilder() to construct.
  private BreakoutPhysicalObject(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private BreakoutPhysicalObject() {
    modifierList_ = java.util.Collections.emptyList();
    infoList_ = java.util.Collections.emptyList();
  }

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

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

            id_ = input.readUInt32();
            break;
          }
          case 16: {

            index_ = input.readUInt32();
            break;
          }
          case 24: {

            isActive_ = input.readBool();
            break;
          }
          case 34: {
            io.grasscutter.net.proto.define.BreakoutVector2.Builder subBuilder = null;
            if (pos_ != null) {
              subBuilder = pos_.toBuilder();
            }
            pos_ = input.readMessage(io.grasscutter.net.proto.define.BreakoutVector2.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(pos_);
              pos_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            io.grasscutter.net.proto.define.BreakoutVector2.Builder subBuilder = null;
            if (moveDir_ != null) {
              subBuilder = moveDir_.toBuilder();
            }
            moveDir_ = input.readMessage(io.grasscutter.net.proto.define.BreakoutVector2.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(moveDir_);
              moveDir_ = subBuilder.buildPartial();
            }

            break;
          }
          case 48: {

            speed_ = input.readInt32();
            break;
          }
          case 56: {

            initPeerId_ = input.readUInt32();
            break;
          }
          case 64: {

            state_ = input.readUInt32();
            break;
          }
          case 72: {

            elementType_ = input.readUInt32();
            break;
          }
          case 80: {

            elementReactionBuff_ = input.readUInt32();
            break;
          }
          case 90: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              modifierList_ = new java.util.ArrayList<io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier>();
              mutable_bitField0_ |= 0x00000001;
            }
            modifierList_.add(
                input.readMessage(io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.parser(), extensionRegistry));
            break;
          }
          case 96: {

            totalRotation_ = input.readInt32();
            break;
          }
          case 106: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              infoList_ = new java.util.ArrayList<io.grasscutter.net.proto.define.BreakoutBrickInfo>();
              mutable_bitField0_ |= 0x00000002;
            }
            infoList_.add(
                input.readMessage(io.grasscutter.net.proto.define.BreakoutBrickInfo.parser(), extensionRegistry));
            break;
          }
          case 112: {

            lastHitPeerId_ = input.readUInt32();
            break;
          }
          case 120: {

            speedIncreaseCount_ = input.readUInt32();
            break;
          }
          case 128: {

            offset_ = input.readInt32();
            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)) {
        modifierList_ = java.util.Collections.unmodifiableList(modifierList_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        infoList_ = java.util.Collections.unmodifiableList(infoList_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.grasscutter.net.proto.define.Define.internal_static_BreakoutPhysicalObject_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.grasscutter.net.proto.define.Define.internal_static_BreakoutPhysicalObject_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.grasscutter.net.proto.define.BreakoutPhysicalObject.class, io.grasscutter.net.proto.define.BreakoutPhysicalObject.Builder.class);
  }

  public static final int MOVE_DIR_FIELD_NUMBER = 5;
  private io.grasscutter.net.proto.define.BreakoutVector2 moveDir_;
  /**
   * <code>.BreakoutVector2 move_dir = 5;</code>
   * @return Whether the moveDir field is set.
   */
  @java.lang.Override
  public boolean hasMoveDir() {
    return moveDir_ != null;
  }
  /**
   * <code>.BreakoutVector2 move_dir = 5;</code>
   * @return The moveDir.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.BreakoutVector2 getMoveDir() {
    return moveDir_ == null ? io.grasscutter.net.proto.define.BreakoutVector2.getDefaultInstance() : moveDir_;
  }
  /**
   * <code>.BreakoutVector2 move_dir = 5;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.BreakoutVector2OrBuilder getMoveDirOrBuilder() {
    return getMoveDir();
  }

  public static final int MODIFIER_LIST_FIELD_NUMBER = 11;
  private java.util.List<io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier> modifierList_;
  /**
   * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier> getModifierListList() {
    return modifierList_;
  }
  /**
   * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifierOrBuilder> 
      getModifierListOrBuilderList() {
    return modifierList_;
  }
  /**
   * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
   */
  @java.lang.Override
  public int getModifierListCount() {
    return modifierList_.size();
  }
  /**
   * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier getModifierList(int index) {
    return modifierList_.get(index);
  }
  /**
   * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifierOrBuilder getModifierListOrBuilder(
      int index) {
    return modifierList_.get(index);
  }

  public static final int INFO_LIST_FIELD_NUMBER = 13;
  private java.util.List<io.grasscutter.net.proto.define.BreakoutBrickInfo> infoList_;
  /**
   * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
   */
  @java.lang.Override
  public java.util.List<io.grasscutter.net.proto.define.BreakoutBrickInfo> getInfoListList() {
    return infoList_;
  }
  /**
   * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
   */
  @java.lang.Override
  public java.util.List<? extends io.grasscutter.net.proto.define.BreakoutBrickInfoOrBuilder> 
      getInfoListOrBuilderList() {
    return infoList_;
  }
  /**
   * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
   */
  @java.lang.Override
  public int getInfoListCount() {
    return infoList_.size();
  }
  /**
   * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.BreakoutBrickInfo getInfoList(int index) {
    return infoList_.get(index);
  }
  /**
   * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.BreakoutBrickInfoOrBuilder getInfoListOrBuilder(
      int index) {
    return infoList_.get(index);
  }

  public static final int POS_FIELD_NUMBER = 4;
  private io.grasscutter.net.proto.define.BreakoutVector2 pos_;
  /**
   * <code>.BreakoutVector2 pos = 4;</code>
   * @return Whether the pos field is set.
   */
  @java.lang.Override
  public boolean hasPos() {
    return pos_ != null;
  }
  /**
   * <code>.BreakoutVector2 pos = 4;</code>
   * @return The pos.
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.BreakoutVector2 getPos() {
    return pos_ == null ? io.grasscutter.net.proto.define.BreakoutVector2.getDefaultInstance() : pos_;
  }
  /**
   * <code>.BreakoutVector2 pos = 4;</code>
   */
  @java.lang.Override
  public io.grasscutter.net.proto.define.BreakoutVector2OrBuilder getPosOrBuilder() {
    return getPos();
  }

  public static final int INDEX_FIELD_NUMBER = 2;
  private int index_;
  /**
   * <code>uint32 index = 2;</code>
   * @return The index.
   */
  @java.lang.Override
  public int getIndex() {
    return index_;
  }

  public static final int OFFSET_FIELD_NUMBER = 16;
  private int offset_;
  /**
   * <code>int32 offset = 16;</code>
   * @return The offset.
   */
  @java.lang.Override
  public int getOffset() {
    return offset_;
  }

  public static final int ELEMENT_REACTION_BUFF_FIELD_NUMBER = 10;
  private int elementReactionBuff_;
  /**
   * <code>uint32 element_reaction_buff = 10;</code>
   * @return The elementReactionBuff.
   */
  @java.lang.Override
  public int getElementReactionBuff() {
    return elementReactionBuff_;
  }

  public static final int SPEED_INCREASE_COUNT_FIELD_NUMBER = 15;
  private int speedIncreaseCount_;
  /**
   * <code>uint32 speed_increase_count = 15;</code>
   * @return The speedIncreaseCount.
   */
  @java.lang.Override
  public int getSpeedIncreaseCount() {
    return speedIncreaseCount_;
  }

  public static final int STATE_FIELD_NUMBER = 8;
  private int state_;
  /**
   * <code>uint32 state = 8;</code>
   * @return The state.
   */
  @java.lang.Override
  public int getState() {
    return state_;
  }

  public static final int ID_FIELD_NUMBER = 1;
  private int id_;
  /**
   * <code>uint32 id = 1;</code>
   * @return The id.
   */
  @java.lang.Override
  public int getId() {
    return id_;
  }

  public static final int INIT_PEER_ID_FIELD_NUMBER = 7;
  private int initPeerId_;
  /**
   * <code>uint32 init_peer_id = 7;</code>
   * @return The initPeerId.
   */
  @java.lang.Override
  public int getInitPeerId() {
    return initPeerId_;
  }

  public static final int SPEED_FIELD_NUMBER = 6;
  private int speed_;
  /**
   * <code>int32 speed = 6;</code>
   * @return The speed.
   */
  @java.lang.Override
  public int getSpeed() {
    return speed_;
  }

  public static final int ELEMENT_TYPE_FIELD_NUMBER = 9;
  private int elementType_;
  /**
   * <code>uint32 element_type = 9;</code>
   * @return The elementType.
   */
  @java.lang.Override
  public int getElementType() {
    return elementType_;
  }

  public static final int LAST_HIT_PEER_ID_FIELD_NUMBER = 14;
  private int lastHitPeerId_;
  /**
   * <code>uint32 last_hit_peer_id = 14;</code>
   * @return The lastHitPeerId.
   */
  @java.lang.Override
  public int getLastHitPeerId() {
    return lastHitPeerId_;
  }

  public static final int TOTAL_ROTATION_FIELD_NUMBER = 12;
  private int totalRotation_;
  /**
   * <code>int32 total_rotation = 12;</code>
   * @return The totalRotation.
   */
  @java.lang.Override
  public int getTotalRotation() {
    return totalRotation_;
  }

  public static final int IS_ACTIVE_FIELD_NUMBER = 3;
  private boolean isActive_;
  /**
   * <code>bool is_active = 3;</code>
   * @return The isActive.
   */
  @java.lang.Override
  public boolean getIsActive() {
    return isActive_;
  }

  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 {
    if (id_ != 0) {
      output.writeUInt32(1, id_);
    }
    if (index_ != 0) {
      output.writeUInt32(2, index_);
    }
    if (isActive_ != false) {
      output.writeBool(3, isActive_);
    }
    if (pos_ != null) {
      output.writeMessage(4, getPos());
    }
    if (moveDir_ != null) {
      output.writeMessage(5, getMoveDir());
    }
    if (speed_ != 0) {
      output.writeInt32(6, speed_);
    }
    if (initPeerId_ != 0) {
      output.writeUInt32(7, initPeerId_);
    }
    if (state_ != 0) {
      output.writeUInt32(8, state_);
    }
    if (elementType_ != 0) {
      output.writeUInt32(9, elementType_);
    }
    if (elementReactionBuff_ != 0) {
      output.writeUInt32(10, elementReactionBuff_);
    }
    for (int i = 0; i < modifierList_.size(); i++) {
      output.writeMessage(11, modifierList_.get(i));
    }
    if (totalRotation_ != 0) {
      output.writeInt32(12, totalRotation_);
    }
    for (int i = 0; i < infoList_.size(); i++) {
      output.writeMessage(13, infoList_.get(i));
    }
    if (lastHitPeerId_ != 0) {
      output.writeUInt32(14, lastHitPeerId_);
    }
    if (speedIncreaseCount_ != 0) {
      output.writeUInt32(15, speedIncreaseCount_);
    }
    if (offset_ != 0) {
      output.writeInt32(16, offset_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (id_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(1, id_);
    }
    if (index_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(2, index_);
    }
    if (isActive_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(3, isActive_);
    }
    if (pos_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getPos());
    }
    if (moveDir_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getMoveDir());
    }
    if (speed_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, speed_);
    }
    if (initPeerId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(7, initPeerId_);
    }
    if (state_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(8, state_);
    }
    if (elementType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(9, elementType_);
    }
    if (elementReactionBuff_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(10, elementReactionBuff_);
    }
    for (int i = 0; i < modifierList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(11, modifierList_.get(i));
    }
    if (totalRotation_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(12, totalRotation_);
    }
    for (int i = 0; i < infoList_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(13, infoList_.get(i));
    }
    if (lastHitPeerId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(14, lastHitPeerId_);
    }
    if (speedIncreaseCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(15, speedIncreaseCount_);
    }
    if (offset_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(16, offset_);
    }
    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.define.BreakoutPhysicalObject)) {
      return super.equals(obj);
    }
    io.grasscutter.net.proto.define.BreakoutPhysicalObject other = (io.grasscutter.net.proto.define.BreakoutPhysicalObject) obj;

    if (hasMoveDir() != other.hasMoveDir()) return false;
    if (hasMoveDir()) {
      if (!getMoveDir()
          .equals(other.getMoveDir())) return false;
    }
    if (!getModifierListList()
        .equals(other.getModifierListList())) return false;
    if (!getInfoListList()
        .equals(other.getInfoListList())) return false;
    if (hasPos() != other.hasPos()) return false;
    if (hasPos()) {
      if (!getPos()
          .equals(other.getPos())) return false;
    }
    if (getIndex()
        != other.getIndex()) return false;
    if (getOffset()
        != other.getOffset()) return false;
    if (getElementReactionBuff()
        != other.getElementReactionBuff()) return false;
    if (getSpeedIncreaseCount()
        != other.getSpeedIncreaseCount()) return false;
    if (getState()
        != other.getState()) return false;
    if (getId()
        != other.getId()) return false;
    if (getInitPeerId()
        != other.getInitPeerId()) return false;
    if (getSpeed()
        != other.getSpeed()) return false;
    if (getElementType()
        != other.getElementType()) return false;
    if (getLastHitPeerId()
        != other.getLastHitPeerId()) return false;
    if (getTotalRotation()
        != other.getTotalRotation()) return false;
    if (getIsActive()
        != other.getIsActive()) 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 (hasMoveDir()) {
      hash = (37 * hash) + MOVE_DIR_FIELD_NUMBER;
      hash = (53 * hash) + getMoveDir().hashCode();
    }
    if (getModifierListCount() > 0) {
      hash = (37 * hash) + MODIFIER_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getModifierListList().hashCode();
    }
    if (getInfoListCount() > 0) {
      hash = (37 * hash) + INFO_LIST_FIELD_NUMBER;
      hash = (53 * hash) + getInfoListList().hashCode();
    }
    if (hasPos()) {
      hash = (37 * hash) + POS_FIELD_NUMBER;
      hash = (53 * hash) + getPos().hashCode();
    }
    hash = (37 * hash) + INDEX_FIELD_NUMBER;
    hash = (53 * hash) + getIndex();
    hash = (37 * hash) + OFFSET_FIELD_NUMBER;
    hash = (53 * hash) + getOffset();
    hash = (37 * hash) + ELEMENT_REACTION_BUFF_FIELD_NUMBER;
    hash = (53 * hash) + getElementReactionBuff();
    hash = (37 * hash) + SPEED_INCREASE_COUNT_FIELD_NUMBER;
    hash = (53 * hash) + getSpeedIncreaseCount();
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + getState();
    hash = (37 * hash) + ID_FIELD_NUMBER;
    hash = (53 * hash) + getId();
    hash = (37 * hash) + INIT_PEER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getInitPeerId();
    hash = (37 * hash) + SPEED_FIELD_NUMBER;
    hash = (53 * hash) + getSpeed();
    hash = (37 * hash) + ELEMENT_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getElementType();
    hash = (37 * hash) + LAST_HIT_PEER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getLastHitPeerId();
    hash = (37 * hash) + TOTAL_ROTATION_FIELD_NUMBER;
    hash = (53 * hash) + getTotalRotation();
    hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getIsActive());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject 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.define.BreakoutPhysicalObject parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject 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.define.BreakoutPhysicalObject parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject 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.define.BreakoutPhysicalObject parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject 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.define.BreakoutPhysicalObject parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject 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.define.BreakoutPhysicalObject 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 BreakoutPhysicalObject}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:BreakoutPhysicalObject)
      io.grasscutter.net.proto.define.BreakoutPhysicalObjectOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.grasscutter.net.proto.define.Define.internal_static_BreakoutPhysicalObject_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.grasscutter.net.proto.define.Define.internal_static_BreakoutPhysicalObject_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.grasscutter.net.proto.define.BreakoutPhysicalObject.class, io.grasscutter.net.proto.define.BreakoutPhysicalObject.Builder.class);
    }

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getModifierListFieldBuilder();
        getInfoListFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (moveDirBuilder_ == null) {
        moveDir_ = null;
      } else {
        moveDir_ = null;
        moveDirBuilder_ = null;
      }
      if (modifierListBuilder_ == null) {
        modifierList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        modifierListBuilder_.clear();
      }
      if (infoListBuilder_ == null) {
        infoList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        infoListBuilder_.clear();
      }
      if (posBuilder_ == null) {
        pos_ = null;
      } else {
        pos_ = null;
        posBuilder_ = null;
      }
      index_ = 0;

      offset_ = 0;

      elementReactionBuff_ = 0;

      speedIncreaseCount_ = 0;

      state_ = 0;

      id_ = 0;

      initPeerId_ = 0;

      speed_ = 0;

      elementType_ = 0;

      lastHitPeerId_ = 0;

      totalRotation_ = 0;

      isActive_ = false;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return io.grasscutter.net.proto.define.Define.internal_static_BreakoutPhysicalObject_descriptor;
    }

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

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

    @java.lang.Override
    public io.grasscutter.net.proto.define.BreakoutPhysicalObject buildPartial() {
      io.grasscutter.net.proto.define.BreakoutPhysicalObject result = new io.grasscutter.net.proto.define.BreakoutPhysicalObject(this);
      int from_bitField0_ = bitField0_;
      if (moveDirBuilder_ == null) {
        result.moveDir_ = moveDir_;
      } else {
        result.moveDir_ = moveDirBuilder_.build();
      }
      if (modifierListBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          modifierList_ = java.util.Collections.unmodifiableList(modifierList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.modifierList_ = modifierList_;
      } else {
        result.modifierList_ = modifierListBuilder_.build();
      }
      if (infoListBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          infoList_ = java.util.Collections.unmodifiableList(infoList_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.infoList_ = infoList_;
      } else {
        result.infoList_ = infoListBuilder_.build();
      }
      if (posBuilder_ == null) {
        result.pos_ = pos_;
      } else {
        result.pos_ = posBuilder_.build();
      }
      result.index_ = index_;
      result.offset_ = offset_;
      result.elementReactionBuff_ = elementReactionBuff_;
      result.speedIncreaseCount_ = speedIncreaseCount_;
      result.state_ = state_;
      result.id_ = id_;
      result.initPeerId_ = initPeerId_;
      result.speed_ = speed_;
      result.elementType_ = elementType_;
      result.lastHitPeerId_ = lastHitPeerId_;
      result.totalRotation_ = totalRotation_;
      result.isActive_ = isActive_;
      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.define.BreakoutPhysicalObject) {
        return mergeFrom((io.grasscutter.net.proto.define.BreakoutPhysicalObject)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.grasscutter.net.proto.define.BreakoutPhysicalObject other) {
      if (other == io.grasscutter.net.proto.define.BreakoutPhysicalObject.getDefaultInstance()) return this;
      if (other.hasMoveDir()) {
        mergeMoveDir(other.getMoveDir());
      }
      if (modifierListBuilder_ == null) {
        if (!other.modifierList_.isEmpty()) {
          if (modifierList_.isEmpty()) {
            modifierList_ = other.modifierList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureModifierListIsMutable();
            modifierList_.addAll(other.modifierList_);
          }
          onChanged();
        }
      } else {
        if (!other.modifierList_.isEmpty()) {
          if (modifierListBuilder_.isEmpty()) {
            modifierListBuilder_.dispose();
            modifierListBuilder_ = null;
            modifierList_ = other.modifierList_;
            bitField0_ = (bitField0_ & ~0x00000001);
            modifierListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getModifierListFieldBuilder() : null;
          } else {
            modifierListBuilder_.addAllMessages(other.modifierList_);
          }
        }
      }
      if (infoListBuilder_ == null) {
        if (!other.infoList_.isEmpty()) {
          if (infoList_.isEmpty()) {
            infoList_ = other.infoList_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureInfoListIsMutable();
            infoList_.addAll(other.infoList_);
          }
          onChanged();
        }
      } else {
        if (!other.infoList_.isEmpty()) {
          if (infoListBuilder_.isEmpty()) {
            infoListBuilder_.dispose();
            infoListBuilder_ = null;
            infoList_ = other.infoList_;
            bitField0_ = (bitField0_ & ~0x00000002);
            infoListBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getInfoListFieldBuilder() : null;
          } else {
            infoListBuilder_.addAllMessages(other.infoList_);
          }
        }
      }
      if (other.hasPos()) {
        mergePos(other.getPos());
      }
      if (other.getIndex() != 0) {
        setIndex(other.getIndex());
      }
      if (other.getOffset() != 0) {
        setOffset(other.getOffset());
      }
      if (other.getElementReactionBuff() != 0) {
        setElementReactionBuff(other.getElementReactionBuff());
      }
      if (other.getSpeedIncreaseCount() != 0) {
        setSpeedIncreaseCount(other.getSpeedIncreaseCount());
      }
      if (other.getState() != 0) {
        setState(other.getState());
      }
      if (other.getId() != 0) {
        setId(other.getId());
      }
      if (other.getInitPeerId() != 0) {
        setInitPeerId(other.getInitPeerId());
      }
      if (other.getSpeed() != 0) {
        setSpeed(other.getSpeed());
      }
      if (other.getElementType() != 0) {
        setElementType(other.getElementType());
      }
      if (other.getLastHitPeerId() != 0) {
        setLastHitPeerId(other.getLastHitPeerId());
      }
      if (other.getTotalRotation() != 0) {
        setTotalRotation(other.getTotalRotation());
      }
      if (other.getIsActive() != false) {
        setIsActive(other.getIsActive());
      }
      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.define.BreakoutPhysicalObject parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.grasscutter.net.proto.define.BreakoutPhysicalObject) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private io.grasscutter.net.proto.define.BreakoutVector2 moveDir_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.BreakoutVector2, io.grasscutter.net.proto.define.BreakoutVector2.Builder, io.grasscutter.net.proto.define.BreakoutVector2OrBuilder> moveDirBuilder_;
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     * @return Whether the moveDir field is set.
     */
    public boolean hasMoveDir() {
      return moveDirBuilder_ != null || moveDir_ != null;
    }
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     * @return The moveDir.
     */
    public io.grasscutter.net.proto.define.BreakoutVector2 getMoveDir() {
      if (moveDirBuilder_ == null) {
        return moveDir_ == null ? io.grasscutter.net.proto.define.BreakoutVector2.getDefaultInstance() : moveDir_;
      } else {
        return moveDirBuilder_.getMessage();
      }
    }
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     */
    public Builder setMoveDir(io.grasscutter.net.proto.define.BreakoutVector2 value) {
      if (moveDirBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        moveDir_ = value;
        onChanged();
      } else {
        moveDirBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     */
    public Builder setMoveDir(
        io.grasscutter.net.proto.define.BreakoutVector2.Builder builderForValue) {
      if (moveDirBuilder_ == null) {
        moveDir_ = builderForValue.build();
        onChanged();
      } else {
        moveDirBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     */
    public Builder mergeMoveDir(io.grasscutter.net.proto.define.BreakoutVector2 value) {
      if (moveDirBuilder_ == null) {
        if (moveDir_ != null) {
          moveDir_ =
            io.grasscutter.net.proto.define.BreakoutVector2.newBuilder(moveDir_).mergeFrom(value).buildPartial();
        } else {
          moveDir_ = value;
        }
        onChanged();
      } else {
        moveDirBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     */
    public Builder clearMoveDir() {
      if (moveDirBuilder_ == null) {
        moveDir_ = null;
        onChanged();
      } else {
        moveDir_ = null;
        moveDirBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutVector2.Builder getMoveDirBuilder() {
      
      onChanged();
      return getMoveDirFieldBuilder().getBuilder();
    }
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutVector2OrBuilder getMoveDirOrBuilder() {
      if (moveDirBuilder_ != null) {
        return moveDirBuilder_.getMessageOrBuilder();
      } else {
        return moveDir_ == null ?
            io.grasscutter.net.proto.define.BreakoutVector2.getDefaultInstance() : moveDir_;
      }
    }
    /**
     * <code>.BreakoutVector2 move_dir = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.BreakoutVector2, io.grasscutter.net.proto.define.BreakoutVector2.Builder, io.grasscutter.net.proto.define.BreakoutVector2OrBuilder> 
        getMoveDirFieldBuilder() {
      if (moveDirBuilder_ == null) {
        moveDirBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.BreakoutVector2, io.grasscutter.net.proto.define.BreakoutVector2.Builder, io.grasscutter.net.proto.define.BreakoutVector2OrBuilder>(
                getMoveDir(),
                getParentForChildren(),
                isClean());
        moveDir_ = null;
      }
      return moveDirBuilder_;
    }

    private java.util.List<io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier> modifierList_ =
      java.util.Collections.emptyList();
    private void ensureModifierListIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        modifierList_ = new java.util.ArrayList<io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier>(modifierList_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifierOrBuilder> modifierListBuilder_;

    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public java.util.List<io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier> getModifierListList() {
      if (modifierListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(modifierList_);
      } else {
        return modifierListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public int getModifierListCount() {
      if (modifierListBuilder_ == null) {
        return modifierList_.size();
      } else {
        return modifierListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier getModifierList(int index) {
      if (modifierListBuilder_ == null) {
        return modifierList_.get(index);
      } else {
        return modifierListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder setModifierList(
        int index, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier value) {
      if (modifierListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureModifierListIsMutable();
        modifierList_.set(index, value);
        onChanged();
      } else {
        modifierListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder setModifierList(
        int index, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder builderForValue) {
      if (modifierListBuilder_ == null) {
        ensureModifierListIsMutable();
        modifierList_.set(index, builderForValue.build());
        onChanged();
      } else {
        modifierListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder addModifierList(io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier value) {
      if (modifierListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureModifierListIsMutable();
        modifierList_.add(value);
        onChanged();
      } else {
        modifierListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder addModifierList(
        int index, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier value) {
      if (modifierListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureModifierListIsMutable();
        modifierList_.add(index, value);
        onChanged();
      } else {
        modifierListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder addModifierList(
        io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder builderForValue) {
      if (modifierListBuilder_ == null) {
        ensureModifierListIsMutable();
        modifierList_.add(builderForValue.build());
        onChanged();
      } else {
        modifierListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder addModifierList(
        int index, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder builderForValue) {
      if (modifierListBuilder_ == null) {
        ensureModifierListIsMutable();
        modifierList_.add(index, builderForValue.build());
        onChanged();
      } else {
        modifierListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder addAllModifierList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier> values) {
      if (modifierListBuilder_ == null) {
        ensureModifierListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, modifierList_);
        onChanged();
      } else {
        modifierListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder clearModifierList() {
      if (modifierListBuilder_ == null) {
        modifierList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        modifierListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public Builder removeModifierList(int index) {
      if (modifierListBuilder_ == null) {
        ensureModifierListIsMutable();
        modifierList_.remove(index);
        onChanged();
      } else {
        modifierListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder getModifierListBuilder(
        int index) {
      return getModifierListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifierOrBuilder getModifierListOrBuilder(
        int index) {
      if (modifierListBuilder_ == null) {
        return modifierList_.get(index);  } else {
        return modifierListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifierOrBuilder> 
         getModifierListOrBuilderList() {
      if (modifierListBuilder_ != null) {
        return modifierListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(modifierList_);
      }
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder addModifierListBuilder() {
      return getModifierListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.getDefaultInstance());
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder addModifierListBuilder(
        int index) {
      return getModifierListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.getDefaultInstance());
    }
    /**
     * <code>repeated .BreakoutPhysicalObjectModifier modifier_list = 11;</code>
     */
    public java.util.List<io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder> 
         getModifierListBuilderList() {
      return getModifierListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifierOrBuilder> 
        getModifierListFieldBuilder() {
      if (modifierListBuilder_ == null) {
        modifierListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifier.Builder, io.grasscutter.net.proto.define.BreakoutPhysicalObjectModifierOrBuilder>(
                modifierList_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        modifierList_ = null;
      }
      return modifierListBuilder_;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.define.BreakoutBrickInfo, io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder, io.grasscutter.net.proto.define.BreakoutBrickInfoOrBuilder> infoListBuilder_;

    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public java.util.List<io.grasscutter.net.proto.define.BreakoutBrickInfo> getInfoListList() {
      if (infoListBuilder_ == null) {
        return java.util.Collections.unmodifiableList(infoList_);
      } else {
        return infoListBuilder_.getMessageList();
      }
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public int getInfoListCount() {
      if (infoListBuilder_ == null) {
        return infoList_.size();
      } else {
        return infoListBuilder_.getCount();
      }
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutBrickInfo getInfoList(int index) {
      if (infoListBuilder_ == null) {
        return infoList_.get(index);
      } else {
        return infoListBuilder_.getMessage(index);
      }
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder setInfoList(
        int index, io.grasscutter.net.proto.define.BreakoutBrickInfo value) {
      if (infoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInfoListIsMutable();
        infoList_.set(index, value);
        onChanged();
      } else {
        infoListBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder setInfoList(
        int index, io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder builderForValue) {
      if (infoListBuilder_ == null) {
        ensureInfoListIsMutable();
        infoList_.set(index, builderForValue.build());
        onChanged();
      } else {
        infoListBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder addInfoList(io.grasscutter.net.proto.define.BreakoutBrickInfo value) {
      if (infoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInfoListIsMutable();
        infoList_.add(value);
        onChanged();
      } else {
        infoListBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder addInfoList(
        int index, io.grasscutter.net.proto.define.BreakoutBrickInfo value) {
      if (infoListBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInfoListIsMutable();
        infoList_.add(index, value);
        onChanged();
      } else {
        infoListBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder addInfoList(
        io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder builderForValue) {
      if (infoListBuilder_ == null) {
        ensureInfoListIsMutable();
        infoList_.add(builderForValue.build());
        onChanged();
      } else {
        infoListBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder addInfoList(
        int index, io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder builderForValue) {
      if (infoListBuilder_ == null) {
        ensureInfoListIsMutable();
        infoList_.add(index, builderForValue.build());
        onChanged();
      } else {
        infoListBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder addAllInfoList(
        java.lang.Iterable<? extends io.grasscutter.net.proto.define.BreakoutBrickInfo> values) {
      if (infoListBuilder_ == null) {
        ensureInfoListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, infoList_);
        onChanged();
      } else {
        infoListBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder clearInfoList() {
      if (infoListBuilder_ == null) {
        infoList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        infoListBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public Builder removeInfoList(int index) {
      if (infoListBuilder_ == null) {
        ensureInfoListIsMutable();
        infoList_.remove(index);
        onChanged();
      } else {
        infoListBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder getInfoListBuilder(
        int index) {
      return getInfoListFieldBuilder().getBuilder(index);
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutBrickInfoOrBuilder getInfoListOrBuilder(
        int index) {
      if (infoListBuilder_ == null) {
        return infoList_.get(index);  } else {
        return infoListBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public java.util.List<? extends io.grasscutter.net.proto.define.BreakoutBrickInfoOrBuilder> 
         getInfoListOrBuilderList() {
      if (infoListBuilder_ != null) {
        return infoListBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(infoList_);
      }
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder addInfoListBuilder() {
      return getInfoListFieldBuilder().addBuilder(
          io.grasscutter.net.proto.define.BreakoutBrickInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder addInfoListBuilder(
        int index) {
      return getInfoListFieldBuilder().addBuilder(
          index, io.grasscutter.net.proto.define.BreakoutBrickInfo.getDefaultInstance());
    }
    /**
     * <code>repeated .BreakoutBrickInfo info_list = 13;</code>
     */
    public java.util.List<io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder> 
         getInfoListBuilderList() {
      return getInfoListFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.grasscutter.net.proto.define.BreakoutBrickInfo, io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder, io.grasscutter.net.proto.define.BreakoutBrickInfoOrBuilder> 
        getInfoListFieldBuilder() {
      if (infoListBuilder_ == null) {
        infoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.grasscutter.net.proto.define.BreakoutBrickInfo, io.grasscutter.net.proto.define.BreakoutBrickInfo.Builder, io.grasscutter.net.proto.define.BreakoutBrickInfoOrBuilder>(
                infoList_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        infoList_ = null;
      }
      return infoListBuilder_;
    }

    private io.grasscutter.net.proto.define.BreakoutVector2 pos_;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.BreakoutVector2, io.grasscutter.net.proto.define.BreakoutVector2.Builder, io.grasscutter.net.proto.define.BreakoutVector2OrBuilder> posBuilder_;
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     * @return Whether the pos field is set.
     */
    public boolean hasPos() {
      return posBuilder_ != null || pos_ != null;
    }
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     * @return The pos.
     */
    public io.grasscutter.net.proto.define.BreakoutVector2 getPos() {
      if (posBuilder_ == null) {
        return pos_ == null ? io.grasscutter.net.proto.define.BreakoutVector2.getDefaultInstance() : pos_;
      } else {
        return posBuilder_.getMessage();
      }
    }
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     */
    public Builder setPos(io.grasscutter.net.proto.define.BreakoutVector2 value) {
      if (posBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        pos_ = value;
        onChanged();
      } else {
        posBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     */
    public Builder setPos(
        io.grasscutter.net.proto.define.BreakoutVector2.Builder builderForValue) {
      if (posBuilder_ == null) {
        pos_ = builderForValue.build();
        onChanged();
      } else {
        posBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     */
    public Builder mergePos(io.grasscutter.net.proto.define.BreakoutVector2 value) {
      if (posBuilder_ == null) {
        if (pos_ != null) {
          pos_ =
            io.grasscutter.net.proto.define.BreakoutVector2.newBuilder(pos_).mergeFrom(value).buildPartial();
        } else {
          pos_ = value;
        }
        onChanged();
      } else {
        posBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     */
    public Builder clearPos() {
      if (posBuilder_ == null) {
        pos_ = null;
        onChanged();
      } else {
        pos_ = null;
        posBuilder_ = null;
      }

      return this;
    }
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutVector2.Builder getPosBuilder() {
      
      onChanged();
      return getPosFieldBuilder().getBuilder();
    }
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     */
    public io.grasscutter.net.proto.define.BreakoutVector2OrBuilder getPosOrBuilder() {
      if (posBuilder_ != null) {
        return posBuilder_.getMessageOrBuilder();
      } else {
        return pos_ == null ?
            io.grasscutter.net.proto.define.BreakoutVector2.getDefaultInstance() : pos_;
      }
    }
    /**
     * <code>.BreakoutVector2 pos = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.grasscutter.net.proto.define.BreakoutVector2, io.grasscutter.net.proto.define.BreakoutVector2.Builder, io.grasscutter.net.proto.define.BreakoutVector2OrBuilder> 
        getPosFieldBuilder() {
      if (posBuilder_ == null) {
        posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.grasscutter.net.proto.define.BreakoutVector2, io.grasscutter.net.proto.define.BreakoutVector2.Builder, io.grasscutter.net.proto.define.BreakoutVector2OrBuilder>(
                getPos(),
                getParentForChildren(),
                isClean());
        pos_ = null;
      }
      return posBuilder_;
    }

    private int index_ ;
    /**
     * <code>uint32 index = 2;</code>
     * @return The index.
     */
    @java.lang.Override
    public int getIndex() {
      return index_;
    }
    /**
     * <code>uint32 index = 2;</code>
     * @param value The index to set.
     * @return This builder for chaining.
     */
    public Builder setIndex(int value) {
      
      index_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 index = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearIndex() {
      
      index_ = 0;
      onChanged();
      return this;
    }

    private int offset_ ;
    /**
     * <code>int32 offset = 16;</code>
     * @return The offset.
     */
    @java.lang.Override
    public int getOffset() {
      return offset_;
    }
    /**
     * <code>int32 offset = 16;</code>
     * @param value The offset to set.
     * @return This builder for chaining.
     */
    public Builder setOffset(int value) {
      
      offset_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 offset = 16;</code>
     * @return This builder for chaining.
     */
    public Builder clearOffset() {
      
      offset_ = 0;
      onChanged();
      return this;
    }

    private int elementReactionBuff_ ;
    /**
     * <code>uint32 element_reaction_buff = 10;</code>
     * @return The elementReactionBuff.
     */
    @java.lang.Override
    public int getElementReactionBuff() {
      return elementReactionBuff_;
    }
    /**
     * <code>uint32 element_reaction_buff = 10;</code>
     * @param value The elementReactionBuff to set.
     * @return This builder for chaining.
     */
    public Builder setElementReactionBuff(int value) {
      
      elementReactionBuff_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 element_reaction_buff = 10;</code>
     * @return This builder for chaining.
     */
    public Builder clearElementReactionBuff() {
      
      elementReactionBuff_ = 0;
      onChanged();
      return this;
    }

    private int speedIncreaseCount_ ;
    /**
     * <code>uint32 speed_increase_count = 15;</code>
     * @return The speedIncreaseCount.
     */
    @java.lang.Override
    public int getSpeedIncreaseCount() {
      return speedIncreaseCount_;
    }
    /**
     * <code>uint32 speed_increase_count = 15;</code>
     * @param value The speedIncreaseCount to set.
     * @return This builder for chaining.
     */
    public Builder setSpeedIncreaseCount(int value) {
      
      speedIncreaseCount_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 speed_increase_count = 15;</code>
     * @return This builder for chaining.
     */
    public Builder clearSpeedIncreaseCount() {
      
      speedIncreaseCount_ = 0;
      onChanged();
      return this;
    }

    private int state_ ;
    /**
     * <code>uint32 state = 8;</code>
     * @return The state.
     */
    @java.lang.Override
    public int getState() {
      return state_;
    }
    /**
     * <code>uint32 state = 8;</code>
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(int value) {
      
      state_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 state = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearState() {
      
      state_ = 0;
      onChanged();
      return this;
    }

    private int id_ ;
    /**
     * <code>uint32 id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public int getId() {
      return id_;
    }
    /**
     * <code>uint32 id = 1;</code>
     * @param value The id to set.
     * @return This builder for chaining.
     */
    public Builder setId(int value) {
      
      id_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 id = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearId() {
      
      id_ = 0;
      onChanged();
      return this;
    }

    private int initPeerId_ ;
    /**
     * <code>uint32 init_peer_id = 7;</code>
     * @return The initPeerId.
     */
    @java.lang.Override
    public int getInitPeerId() {
      return initPeerId_;
    }
    /**
     * <code>uint32 init_peer_id = 7;</code>
     * @param value The initPeerId to set.
     * @return This builder for chaining.
     */
    public Builder setInitPeerId(int value) {
      
      initPeerId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 init_peer_id = 7;</code>
     * @return This builder for chaining.
     */
    public Builder clearInitPeerId() {
      
      initPeerId_ = 0;
      onChanged();
      return this;
    }

    private int speed_ ;
    /**
     * <code>int32 speed = 6;</code>
     * @return The speed.
     */
    @java.lang.Override
    public int getSpeed() {
      return speed_;
    }
    /**
     * <code>int32 speed = 6;</code>
     * @param value The speed to set.
     * @return This builder for chaining.
     */
    public Builder setSpeed(int value) {
      
      speed_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 speed = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearSpeed() {
      
      speed_ = 0;
      onChanged();
      return this;
    }

    private int elementType_ ;
    /**
     * <code>uint32 element_type = 9;</code>
     * @return The elementType.
     */
    @java.lang.Override
    public int getElementType() {
      return elementType_;
    }
    /**
     * <code>uint32 element_type = 9;</code>
     * @param value The elementType to set.
     * @return This builder for chaining.
     */
    public Builder setElementType(int value) {
      
      elementType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 element_type = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearElementType() {
      
      elementType_ = 0;
      onChanged();
      return this;
    }

    private int lastHitPeerId_ ;
    /**
     * <code>uint32 last_hit_peer_id = 14;</code>
     * @return The lastHitPeerId.
     */
    @java.lang.Override
    public int getLastHitPeerId() {
      return lastHitPeerId_;
    }
    /**
     * <code>uint32 last_hit_peer_id = 14;</code>
     * @param value The lastHitPeerId to set.
     * @return This builder for chaining.
     */
    public Builder setLastHitPeerId(int value) {
      
      lastHitPeerId_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>uint32 last_hit_peer_id = 14;</code>
     * @return This builder for chaining.
     */
    public Builder clearLastHitPeerId() {
      
      lastHitPeerId_ = 0;
      onChanged();
      return this;
    }

    private int totalRotation_ ;
    /**
     * <code>int32 total_rotation = 12;</code>
     * @return The totalRotation.
     */
    @java.lang.Override
    public int getTotalRotation() {
      return totalRotation_;
    }
    /**
     * <code>int32 total_rotation = 12;</code>
     * @param value The totalRotation to set.
     * @return This builder for chaining.
     */
    public Builder setTotalRotation(int value) {
      
      totalRotation_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>int32 total_rotation = 12;</code>
     * @return This builder for chaining.
     */
    public Builder clearTotalRotation() {
      
      totalRotation_ = 0;
      onChanged();
      return this;
    }

    private boolean isActive_ ;
    /**
     * <code>bool is_active = 3;</code>
     * @return The isActive.
     */
    @java.lang.Override
    public boolean getIsActive() {
      return isActive_;
    }
    /**
     * <code>bool is_active = 3;</code>
     * @param value The isActive to set.
     * @return This builder for chaining.
     */
    public Builder setIsActive(boolean value) {
      
      isActive_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>bool is_active = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearIsActive() {
      
      isActive_ = 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:BreakoutPhysicalObject)
  }

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

  public static io.grasscutter.net.proto.define.BreakoutPhysicalObject getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

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

}

