test_class.file: openrtb-core/src/test/java/com/google/openrtb/util/ProtoUtilsTest.java
test_class.identifier: ProtoUtilsTest
test_case.body: @Test
    public void testUpdate() {
      BidRequest.Builder req = BidRequest.newBuilder().setId("0");
      ProtoUtils.update(ImmutableList.of(req), reqBuilder -> {
        reqBuilder.setAt(AuctionType.FIRST_PRICE);
        return true;
      });
      assertThat(req.getAt()).isSameInstanceAs(AuctionType.FIRST_PRICE);
    }
test_case.class_method_signature: ProtoUtilsTest.testUpdate()
test_case.full_signature: @Test public void testUpdate()
test_case.identifier: testUpdate
test_case.invocations: setId newBuilder update of setAt isSameInstanceAs assertThat getAt
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUpdate()
focal_class.declarator: NOT_EXTENSION = fd -> !fd.isExtension()
focal_class.modifier: public static final
focal_class.original_string: public static final Predicate<FieldDescriptor> NOT_EXTENSION = fd -> !fd.isExtension();
focal_class.type: Predicate<FieldDescriptor>
focal_class.var_name: NOT_EXTENSION
focal_class.file: openrtb-core/src/main/java/com/google/openrtb/util/ProtoUtils.java
focal_class.identifier: ProtoUtils
focal_class.class_method_signature: ProtoUtils.ProtoUtils()
focal_class.full_signature: private  ProtoUtils()
focal_class.identifier: ProtoUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ProtoUtils()
focal_class.class_method_signature: ProtoUtils.built(@Nullable I msg)
focal_class.full_signature: @SuppressWarnings("unchecked") public static O built(@Nullable I msg)
focal_class.identifier: built
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (@Nullable I msg)
focal_class.return: O
focal_class.signature: O built(@Nullable I msg)
focal_class.class_method_signature: ProtoUtils.builder(
        @Nullable I msg)
focal_class.full_signature: @SuppressWarnings("unchecked") public static O builder(
        @Nullable I msg)
focal_class.identifier: builder
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (
        @Nullable I msg)
focal_class.return: O
focal_class.signature: O builder(
        @Nullable I msg)
focal_class.class_method_signature: ProtoUtils.update(
        Iterable<B> objs, Function<B, Boolean> updater)
focal_class.full_signature: public static boolean update(
        Iterable<B> objs, Function<B, Boolean> updater)
focal_class.identifier: update
focal_class.modifiers: public static
focal_class.parameters: (
        Iterable<B> objs, Function<B, Boolean> updater)
focal_class.return: boolean
focal_class.signature: boolean update(
        Iterable<B> objs, Function<B, Boolean> updater)
focal_class.class_method_signature: ProtoUtils.filter(List<M> objs, Predicate<M> filter)
focal_class.full_signature: public static List<M> filter(List<M> objs, Predicate<M> filter)
focal_class.identifier: filter
focal_class.modifiers: public static
focal_class.parameters: (List<M> objs, Predicate<M> filter)
focal_class.return: List<M>
focal_class.signature: List<M> filter(List<M> objs, Predicate<M> filter)
focal_class.class_method_signature: ProtoUtils.filterFrom(
        List<M> objs, Predicate<M> filter, int firstDiscarded)
focal_class.full_signature: private static List<M> filterFrom(
        List<M> objs, Predicate<M> filter, int firstDiscarded)
focal_class.identifier: filterFrom
focal_class.modifiers: private static
focal_class.parameters: (
        List<M> objs, Predicate<M> filter, int firstDiscarded)
focal_class.return: List<M>
focal_class.signature: List<M> filterFrom(
        List<M> objs, Predicate<M> filter, int firstDiscarded)
focal_class.class_method_signature: ProtoUtils.filter(
        M msg, boolean clearEmpty, Predicate<FieldDescriptor> filter)
focal_class.full_signature: @Nullable public static M filter(
        M msg, boolean clearEmpty, Predicate<FieldDescriptor> filter)
focal_class.identifier: filter
focal_class.modifiers: @Nullable public static
focal_class.parameters: (
        M msg, boolean clearEmpty, Predicate<FieldDescriptor> filter)
focal_class.return: M
focal_class.signature: M filter(
        M msg, boolean clearEmpty, Predicate<FieldDescriptor> filter)
focal_class.class_method_signature: ProtoUtils.filterFrom(
        M msg, boolean clearEmpty, Predicate<FieldDescriptor> filter, int first, boolean discard)
focal_class.full_signature: @Nullable private static M filterFrom(
        M msg, boolean clearEmpty, Predicate<FieldDescriptor> filter, int first, boolean discard)
focal_class.identifier: filterFrom
focal_class.modifiers: @Nullable private static
focal_class.parameters: (
        M msg, boolean clearEmpty, Predicate<FieldDescriptor> filter, int first, boolean discard)
focal_class.return: M
focal_class.signature: M filterFrom(
        M msg, boolean clearEmpty, Predicate<FieldDescriptor> filter, int first, boolean discard)
focal_class.class_method_signature: ProtoUtils.filterValue(boolean clearEmpty, Predicate<FieldDescriptor> filter,
        Message.Builder builder, Map.Entry<FieldDescriptor, Object> entry)
focal_class.full_signature: protected static boolean filterValue(boolean clearEmpty, Predicate<FieldDescriptor> filter,
        Message.Builder builder, Map.Entry<FieldDescriptor, Object> entry)
focal_class.identifier: filterValue
focal_class.modifiers: protected static
focal_class.parameters: (boolean clearEmpty, Predicate<FieldDescriptor> filter,
        Message.Builder builder, Map.Entry<FieldDescriptor, Object> entry)
focal_class.return: boolean
focal_class.signature: boolean filterValue(boolean clearEmpty, Predicate<FieldDescriptor> filter,
        Message.Builder builder, Map.Entry<FieldDescriptor, Object> entry)
focal_method.body: public static <B extends MessageLite.Builder> boolean update(
        Iterable<B> objs, Function<B, Boolean> updater) {
      checkNotNull(updater);
      boolean updated = false;
  
      for (B obj : objs) {
        updated |= updater.apply(obj);
      }
      return updated;
    }
focal_method.class_method_signature: ProtoUtils.update(
        Iterable<B> objs, Function<B, Boolean> updater)
focal_method.full_signature: public static boolean update(
        Iterable<B> objs, Function<B, Boolean> updater)
focal_method.identifier: update
focal_method.invocations: checkNotNull apply
focal_method.modifiers: public static
focal_method.parameters: (
        Iterable<B> objs, Function<B, Boolean> updater)
focal_method.return: boolean
focal_method.signature: boolean update(
        Iterable<B> objs, Function<B, Boolean> updater)