Adds the missing WithRepeatedFieldSize method for protobuf domain customization. PiperOrigin-RevId: 513623869
diff --git a/fuzztest/internal/protobuf_domain.h b/fuzztest/internal/protobuf_domain.h index b8d85c9..3bfb2ac 100644 --- a/fuzztest/internal/protobuf_domain.h +++ b/fuzztest/internal/protobuf_domain.h
@@ -1513,6 +1513,19 @@ return std::move(*this); } + ProtobufDomainImpl&& WithRepeatedFieldsSize(int64_t size) && { + WithRepeatedFieldsMinSize(size); + WithRepeatedFieldsMaxSize(size); + return std::move(*this); + } + + ProtobufDomainImpl&& WithRepeatedFieldsSize( + std::function<bool(const FieldDescriptor*)> filter, int64_t size) && { + WithRepeatedFieldsMinSize(filter, size); + WithRepeatedFieldsMaxSize(filter, size); + return std::move(*this); + } + ProtobufDomainImpl&& WithRepeatedFieldsMinSize(int64_t min_size) && { inner_.GetPolicy().SetMinRepeatedFieldsSize(IncludeAll<FieldDescriptor>(), min_size);