@Override
    public void write(org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TProtocol prot, TableChange struct) throws org.apache.amoro.shade.thrift.org.apache.thrift.TException {
      org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.amoro.shade.thrift.org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetInnerTable()) {
        optionals.set(0);
      }
      if (struct.isSetAddFiles()) {
        optionals.set(1);
      }
      if (struct.isSetDeleteFiles()) {
        optionals.set(2);
      }
      if (struct.isSetSnapshotId()) {
        optionals.set(3);
      }
      if (struct.isSetSnapshotSequence()) {
        optionals.set(4);
      }
      if (struct.isSetParentSnapshotId()) {
        optionals.set(5);
      }
      oprot.writeBitSet(optionals, 6);
      if (struct.isSetInnerTable()) {
        oprot.writeString(struct.innerTable);
      }
      if (struct.isSetAddFiles()) {
        {
          oprot.writeI32(struct.addFiles.size());
          for (DataFile _iter56 : struct.addFiles)
          {
            _iter56.write(oprot);
          }
        }
      }
      if (struct.isSetDeleteFiles()) {
        {
          oprot.writeI32(struct.deleteFiles.size());
          for (DataFile _iter57 : struct.deleteFiles)
          {
            _iter57.write(oprot);
          }
        }
      }
      if (struct.isSetSnapshotId()) {
        oprot.writeI64(struct.snapshotId);
      }
      if (struct.isSetSnapshotSequence()) {
        oprot.writeI64(struct.snapshotSequence);
      }
      if (struct.isSetParentSnapshotId()) {
        oprot.writeI64(struct.parentSnapshotId);
      }
    }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
amoro-common/src/main/gen-java/org/apache/amoro/api/TableChange.java