Class FilesRetrieveRequest.Builder

  • Enclosing class:
    FilesRetrieveRequest

    public static final class FilesRetrieveRequest.Builder
    extends java.lang.Object
    • Method Detail

      • extendWorkspaceId

        public FilesRetrieveRequest.Builder extendWorkspaceId​(java.util.Optional<java.lang.String> extendWorkspaceId)

        The workspace ID to target. Required when using an organization-scoped API key; optional for workspace-scoped keys (the key is already tied to a workspace). See Authentication for details on API key scopes.

      • rawText

        public FilesRetrieveRequest.Builder rawText​(java.util.Optional<java.lang.Boolean> rawText)

        Deprecated: Use POST /parse_runs instead to parse file contents.

        If set to true, the raw text content of the file will be included in the response.

      • markdown

        public FilesRetrieveRequest.Builder markdown​(java.util.Optional<java.lang.Boolean> markdown)

        Deprecated: Use POST /parse_runs instead to parse file contents.

        If set to true, the markdown content of the file will be included in the response.

        Only available for files with a type of PDF, IMG, or DOCX files that were auto-converted to PDFs.

      • html

        public FilesRetrieveRequest.Builder html​(java.util.Optional<java.lang.Boolean> html)

        Deprecated: Use POST /parse_runs instead to parse file contents.

        If set to true, the html content of the file will be included in the response.

        Only available for files with a type of DOCX.