Package ai.extend.requests
Class ParseRequest.Builder
- java.lang.Object
-
- ai.extend.requests.ParseRequest.Builder
-
- All Implemented Interfaces:
ParseRequest._FinalStage,ParseRequest.FileStage
- Enclosing class:
- ParseRequest
public static final class ParseRequest.Builder extends java.lang.Object implements ParseRequest.FileStage, ParseRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseRequestbuild()ParseRequest._FinalStageconfig(ParseConfig config)ParseRequest._FinalStageconfig(java.util.Optional<ParseConfig> config)ParseRequest._FinalStagefile(ParseRequestFile file)The file to be parsed.ParseRequest.Builderfrom(ParseRequest other)ParseRequest._FinalStagemetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)ParseRequest._FinalStagemetadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)ParseRequest._FinalStageresponseType(ParseRequestResponseType responseType)Controls the format of the response chunks.ParseRequest._FinalStageresponseType(java.util.Optional<ParseRequestResponseType> responseType)Controls the format of the response chunks.
-
-
-
Method Detail
-
from
public ParseRequest.Builder from(ParseRequest other)
- Specified by:
fromin interfaceParseRequest.FileStage
-
file
public ParseRequest._FinalStage file(@NotNull ParseRequestFile file)
The file to be parsed. Files can be provided as a URL or an Extend file ID.
The file to be parsed. Files can be provided as a URL or an Extend file ID.
- Specified by:
filein interfaceParseRequest.FileStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public ParseRequest._FinalStage metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
- Specified by:
metadatain interfaceParseRequest._FinalStage
-
metadata
public ParseRequest._FinalStage metadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metadata)
- Specified by:
metadatain interfaceParseRequest._FinalStage
-
config
public ParseRequest._FinalStage config(ParseConfig config)
- Specified by:
configin interfaceParseRequest._FinalStage
-
config
public ParseRequest._FinalStage config(java.util.Optional<ParseConfig> config)
- Specified by:
configin interfaceParseRequest._FinalStage
-
responseType
public ParseRequest._FinalStage responseType(ParseRequestResponseType responseType)
Controls the format of the response chunks. Defaults to
jsonif not specified.json- Returns parsed outputs in the response bodyurl- Return a presigned URL to the parsed content in the response body
- Specified by:
responseTypein interfaceParseRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
responseType
public ParseRequest._FinalStage responseType(java.util.Optional<ParseRequestResponseType> responseType)
Controls the format of the response chunks. Defaults to
jsonif not specified.json- Returns parsed outputs in the response bodyurl- Return a presigned URL to the parsed content in the response body
- Specified by:
responseTypein interfaceParseRequest._FinalStage
-
build
public ParseRequest build()
- Specified by:
buildin interfaceParseRequest._FinalStage
-
-