Interface File._FinalStage
-
- All Known Implementing Classes:
File.Builder
- Enclosing class:
- File
public static interface File._FinalStage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Filebuild()File._FinalStagecontents(Nullable<FileContents> contents)File._FinalStagecontents(FileContents contents)File._FinalStagecontents(java.util.Optional<FileContents> contents)Deprecated: Use thePOST /parse_runsendpoint instead to parse and retrieve file contents.File._FinalStageparentFileId(Nullable<java.lang.String> parentFileId)File._FinalStageparentFileId(java.lang.String parentFileId)File._FinalStageparentFileId(java.util.Optional<java.lang.String> parentFileId)ID of the parent file.File._FinalStagepresignedUrl(Nullable<java.lang.String> presignedUrl)File._FinalStagepresignedUrl(java.lang.String presignedUrl)File._FinalStagepresignedUrl(java.util.Optional<java.lang.String> presignedUrl)A presigned URL to download the file.File._FinalStagetype(Nullable<FileType> type)File._FinalStagetype(FileType type)File._FinalStagetype(java.util.Optional<FileType> type)The type of the file.
-
-
-
Method Detail
-
build
File build()
-
type
File._FinalStage type(java.util.Optional<FileType> type)
The type of the file.
Availability: Present when the file type could be determined.
-
type
File._FinalStage type(FileType type)
-
type
File._FinalStage type(Nullable<FileType> type)
-
presignedUrl
File._FinalStage presignedUrl(java.util.Optional<java.lang.String> presignedUrl)
A presigned URL to download the file. Expires after 15 minutes.
Availability: Present on
GET /files/{id}. Not present onPOST /files/uploador when the file is embedded in other resources (e.g., in run responses).
-
presignedUrl
File._FinalStage presignedUrl(java.lang.String presignedUrl)
-
presignedUrl
File._FinalStage presignedUrl(Nullable<java.lang.String> presignedUrl)
-
parentFileId
File._FinalStage parentFileId(java.util.Optional<java.lang.String> parentFileId)
ID of the parent file.
Availability: Present for files created via a Splitter in a workflow.
-
parentFileId
File._FinalStage parentFileId(java.lang.String parentFileId)
-
parentFileId
File._FinalStage parentFileId(Nullable<java.lang.String> parentFileId)
-
contents
File._FinalStage contents(java.util.Optional<FileContents> contents)
Deprecated: Use the
POST /parse_runsendpoint instead to parse and retrieve file contents. The parse runs endpoint provides more control over parsing configuration and better performance.The parsed content of the file. This field will only contain data after the file has been parsed via a parse run, extract run, classify run, split run, edit run, or workflow run.
Availability: Only present and populated on
GET /files/{id}when the file has been previously parsed and the corresponding query parameters are set to true. Will benullonPOST /files/uploadand for files that haven't been parsed. The structure varies based on file type.
-
contents
File._FinalStage contents(FileContents contents)
-
contents
File._FinalStage contents(Nullable<FileContents> contents)
-
-