openrtb-core/src/main/java/com/google/openrtb/util/OpenRtbUtils.java
public static boolean updateBids(
      BidResponse.Builder response, Function<Bid.Builder, Boolean> updater) {
    checkNotNull(updater);

    boolean updated = false;
    for (SeatBid.Builder seatbid : response.getSeatbidBuilderList()) {
      updated |= ProtoUtils.update(seatbid.getBidBuilderList(), updater);
    }
    return updated;
  }
public static boolean updateBids(
      BidResponse.Builder response, Function<Bid.Builder, Boolean> updater) {
    checkNotNull(updater);

    boolean updated = false;
    for (SeatBid.Builder seatbid : response.getSeatbidBuilderList()) {
      updated |= ProtoUtils.update(seatbid.getBidBuilderList(), updater);
    }
    return updated;
  }
Updates bids, from all seats.

@param updater Update function. The {@code apply()} method can decide or not to update each
object, and it's expected to return {@code true} for objects that were updated
@return {@code true} if at least one bid was updated
@see ProtoUtils#update(Iterable, Function) for more general updating support