BidResponse extends UserResponse<BidResponse> { public final BidResponse addBid(BidOrBuilder bid) { SeatBid.Builder seatBid = seatBid(); if (bid instanceof Bid) { seatBid.addBid((Bid) bid); } else { seatBid.addBid((Bid.Builder) bid); } return self(); } protected  BidResponse(Exchange exchange, HttpResponse.Builder httpResponseBuilder); static Builder newBuilder(); @Override Builder toBuilder(); final OpenRtb.BidResponse.Builder openRtb(); final T nativeResponse(); final ResponseMode getResponseMode(); final SeatBid.Builder seatBid(String seat); final SeatBid.Builder seatBid(); final BidResponse addBid(BidOrBuilder bid); final BidResponse addBid(String seat, BidOrBuilder bid); final Iterable<Bid.Builder> bids(); final List<Bid.Builder> bids(@Nullable String seat); final @Nullable Bid.Builder bidWithId(String id); final @Nullable Bid.Builder bidWithId(@Nullable String seat, String id); final @Nullable Bid.Builder bidWithAdid(String adid); final @Nullable Bid.Builder bidWithAdid(@Nullable String seat, String adid); final Iterable<Bid.Builder> bidsWith(Predicate<Bid.Builder> filter); final Iterable<Bid.Builder> bidsWith(
      @Nullable String seat, Predicate<Bid.Builder> filter); final boolean updateBids(Function<Bid.Builder, Boolean> updater); final boolean updateBids(@Nullable String seat, Function<Bid.Builder, Boolean> updater); final boolean filterBids(Predicate<Bid.Builder> filter); final boolean filterBids(@Nullable String seat, Predicate<Bid.Builder> filter); @Override ToStringHelper toStringHelper();  }
@Test public void testCommonMethods() { BidResponse resp = TestBidResponseBuilder.create().build().addBid(buildHtmlBid("1", 0.1)); TestUtil.testCommonMethods(resp); TestUtil.testCommonEnum(BidResponse.ResponseMode.values()); }
@Test public void testAddBid() { BidResponse response = TestBidResponseBuilder.create().build(); Bid.Builder bid = Bid.newBuilder().setId("1").setImpid("1").setPrice(1.0); response.addBid(bid); response.addBid("x", bid); }