I use Google Sheet API v4 and I would like to insert new row in my sheet. I tried https://developers.google.com/sheets/api/guides/values#appending_values but that way just insert the data and I want to add the data to specific column like here: Is there a way to add a row on a Google Spreadsheet without OAuth using java? this is an example how to do that using api v3
row.getCustomElements().setValueLocal("id", "21");
row.getCustomElements().setValueLocal("type", si.getType().toString());
row.getCustomElements().setValueLocal("longitude", String.valueOf(si.getLongitude()));
row.getCustomElements().setValueLocal("latitude", String.valueOf(si.getLatitude()));
row.getCustomElements().setValueLocal("last_maint", String.valueOf(si.getLast()));
row.getCustomElements().setValueLocal("inst_date", String.valueOf(si.getInst()));
row = service.insert(listFeedUrl, row);
How can I do the same using api v4.