Class FileSource.Builder
java.lang.Object
ai.docling.serve.api.convert.request.source.FileSource.Builder
- Enclosing class:
- FileSource
Builder for creating
FileSource instances.
Generated by Lombok's @Builder annotation.
Builder methods:
base64String(String)- Set the base64-encoded file contentfilename(String)- Set the filename
-
Method Summary
Modifier and TypeMethodDescription@NonNull FileSource.Builderbase64String(@NonNull String base64String) Content of the file serialized in base64.@NonNull FileSourcebuild()@NonNull FileSource.BuilderFilename of the uploaded document.@NonNull StringtoString()
-
Method Details
-
base64String
Content of the file serialized in base64. For example it can be obtained via `base64 -w 0 /path/to/file/pdf-to-convert.pdf`.- Parameters:
base64String- the base64-encoded file content- Returns:
this.
-
filename
Filename of the uploaded document.- Parameters:
filename- the filename- Returns:
this.
-
build
-
toString
-