Package ai.extend.types
Class FileContentsPagesItem.Builder
- java.lang.Object
-
- ai.extend.types.FileContentsPagesItem.Builder
-
- All Implemented Interfaces:
FileContentsPagesItem._FinalStage,FileContentsPagesItem.PageNumberStage
- Enclosing class:
- FileContentsPagesItem
public static final class FileContentsPagesItem.Builder extends java.lang.Object implements FileContentsPagesItem.PageNumberStage, FileContentsPagesItem._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileContentsPagesItembuild()FileContentsPagesItem.Builderfrom(FileContentsPagesItem other)FileContentsPagesItem._FinalStagehtml(java.lang.String html)Cleaned and structured html content of the page.FileContentsPagesItem._FinalStagehtml(java.util.Optional<java.lang.String> html)Cleaned and structured html content of the page.FileContentsPagesItem._FinalStagemarkdown(java.lang.String markdown)Cleaned and structured markdown content of this page.FileContentsPagesItem._FinalStagemarkdown(java.util.Optional<java.lang.String> markdown)Cleaned and structured markdown content of this page.FileContentsPagesItem._FinalStagepageHeight(java.lang.Double pageHeight)FileContentsPagesItem._FinalStagepageHeight(java.util.Optional<java.lang.Double> pageHeight)FileContentsPagesItem._FinalStagepageNumber(int pageNumber)The page number of this page in the document.FileContentsPagesItem._FinalStagepageWidth(java.lang.Double pageWidth)FileContentsPagesItem._FinalStagepageWidth(java.util.Optional<java.lang.Double> pageWidth)FileContentsPagesItem._FinalStagerawText(java.lang.String rawText)The raw text content extracted from this page.FileContentsPagesItem._FinalStagerawText(java.util.Optional<java.lang.String> rawText)The raw text content extracted from this page.
-
-
-
Method Detail
-
from
public FileContentsPagesItem.Builder from(FileContentsPagesItem other)
- Specified by:
fromin interfaceFileContentsPagesItem.PageNumberStage
-
pageNumber
public FileContentsPagesItem._FinalStage pageNumber(int pageNumber)
The page number of this page in the document.
The page number of this page in the document.
- Specified by:
pageNumberin interfaceFileContentsPagesItem.PageNumberStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
html
public FileContentsPagesItem._FinalStage html(java.lang.String html)
Cleaned and structured html content of the page. Available for DOCX file types (that were not auto-converted to PDFs). Only included if the
htmlquery parameter is set to true in the endpoint request.- Specified by:
htmlin interfaceFileContentsPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
html
public FileContentsPagesItem._FinalStage html(java.util.Optional<java.lang.String> html)
Cleaned and structured html content of the page. Available for DOCX file types (that were not auto-converted to PDFs). Only included if the
htmlquery parameter is set to true in the endpoint request.- Specified by:
htmlin interfaceFileContentsPagesItem._FinalStage
-
markdown
public FileContentsPagesItem._FinalStage markdown(java.lang.String markdown)
Cleaned and structured markdown content of this page.
- Specified by:
markdownin interfaceFileContentsPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
markdown
public FileContentsPagesItem._FinalStage markdown(java.util.Optional<java.lang.String> markdown)
Cleaned and structured markdown content of this page.
- Specified by:
markdownin interfaceFileContentsPagesItem._FinalStage
-
rawText
public FileContentsPagesItem._FinalStage rawText(java.lang.String rawText)
The raw text content extracted from this page.
- Specified by:
rawTextin interfaceFileContentsPagesItem._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rawText
public FileContentsPagesItem._FinalStage rawText(java.util.Optional<java.lang.String> rawText)
The raw text content extracted from this page.
- Specified by:
rawTextin interfaceFileContentsPagesItem._FinalStage
-
pageWidth
public FileContentsPagesItem._FinalStage pageWidth(java.lang.Double pageWidth)
- Specified by:
pageWidthin interfaceFileContentsPagesItem._FinalStage
-
pageWidth
public FileContentsPagesItem._FinalStage pageWidth(java.util.Optional<java.lang.Double> pageWidth)
- Specified by:
pageWidthin interfaceFileContentsPagesItem._FinalStage
-
pageHeight
public FileContentsPagesItem._FinalStage pageHeight(java.lang.Double pageHeight)
- Specified by:
pageHeightin interfaceFileContentsPagesItem._FinalStage
-
pageHeight
public FileContentsPagesItem._FinalStage pageHeight(java.util.Optional<java.lang.Double> pageHeight)
- Specified by:
pageHeightin interfaceFileContentsPagesItem._FinalStage
-
build
public FileContentsPagesItem build()
- Specified by:
buildin interfaceFileContentsPagesItem._FinalStage
-
-