public CmdlineRemoteProto.Message.ControllerMessage.FSEvent createNextEvent() { final CmdlineRemoteProto.Message.ControllerMessage.FSEvent.Builder builder = CmdlineRemoteProto.Message.ControllerMessage.FSEvent.newBuilder(); builder.setOrdinal(++myNextEventOrdinal); builder.addAllChangedPaths(myChanged); myChanged.clear(); builder.addAllDeletedPaths(myDeleted); myDeleted.clear(); return builder.build(); }