Package ai.extend.types
Class LegacyProvidedExtractionFieldResult.Builder
- java.lang.Object
-
- ai.extend.types.LegacyProvidedExtractionFieldResult.Builder
-
- All Implemented Interfaces:
LegacyProvidedExtractionFieldResult._FinalStage,LegacyProvidedExtractionFieldResult.IdStage,LegacyProvidedExtractionFieldResult.ValueStage
- Enclosing class:
- LegacyProvidedExtractionFieldResult
public static final class LegacyProvidedExtractionFieldResult.Builder extends java.lang.Object implements LegacyProvidedExtractionFieldResult.IdStage, LegacyProvidedExtractionFieldResult.ValueStage, LegacyProvidedExtractionFieldResult._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyProvidedExtractionFieldResultbuild()LegacyProvidedExtractionFieldResult._FinalStageconfidence(java.lang.Double confidence)A value between 0 and 1 indicating confidence in the extraction.LegacyProvidedExtractionFieldResult._FinalStageconfidence(java.util.Optional<java.lang.Double> confidence)A value between 0 and 1 indicating confidence in the extraction.LegacyProvidedExtractionFieldResult.Builderfrom(LegacyProvidedExtractionFieldResult other)LegacyProvidedExtractionFieldResult.ValueStageid(java.lang.String id)The unique identifier for this fieldLegacyProvidedExtractionFieldResult._FinalStagepage(Nullable<java.lang.Double> page)The page number where this field was extracted fromLegacyProvidedExtractionFieldResult._FinalStagepage(java.lang.Double page)The page number where this field was extracted fromLegacyProvidedExtractionFieldResult._FinalStagepage(java.util.Optional<java.lang.Double> page)The page number where this field was extracted fromLegacyProvidedExtractionFieldResult._FinalStagetype(LegacyProvidedExtractionFieldResultType type)The type of the extraction field resultLegacyProvidedExtractionFieldResult._FinalStagetype(java.util.Optional<LegacyProvidedExtractionFieldResultType> type)The type of the extraction field resultLegacyProvidedExtractionFieldResult._FinalStagevalue(java.lang.Object value)
-
-
-
Method Detail
-
from
public LegacyProvidedExtractionFieldResult.Builder from(LegacyProvidedExtractionFieldResult other)
- Specified by:
fromin interfaceLegacyProvidedExtractionFieldResult.IdStage
-
id
public LegacyProvidedExtractionFieldResult.ValueStage id(@NotNull java.lang.String id)
The unique identifier for this field
The unique identifier for this field
- Specified by:
idin interfaceLegacyProvidedExtractionFieldResult.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
public LegacyProvidedExtractionFieldResult._FinalStage value(java.lang.Object value)
- Specified by:
valuein interfaceLegacyProvidedExtractionFieldResult.ValueStage
-
page
public LegacyProvidedExtractionFieldResult._FinalStage page(Nullable<java.lang.Double> page)
The page number where this field was extracted from
- Specified by:
pagein interfaceLegacyProvidedExtractionFieldResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
page
public LegacyProvidedExtractionFieldResult._FinalStage page(java.lang.Double page)
The page number where this field was extracted from
- Specified by:
pagein interfaceLegacyProvidedExtractionFieldResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
page
public LegacyProvidedExtractionFieldResult._FinalStage page(java.util.Optional<java.lang.Double> page)
The page number where this field was extracted from
- Specified by:
pagein interfaceLegacyProvidedExtractionFieldResult._FinalStage
-
confidence
public LegacyProvidedExtractionFieldResult._FinalStage confidence(java.lang.Double confidence)
A value between 0 and 1 indicating confidence in the extraction. Will be set to 1 if not provided.
- Specified by:
confidencein interfaceLegacyProvidedExtractionFieldResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
confidence
public LegacyProvidedExtractionFieldResult._FinalStage confidence(java.util.Optional<java.lang.Double> confidence)
A value between 0 and 1 indicating confidence in the extraction. Will be set to 1 if not provided.
- Specified by:
confidencein interfaceLegacyProvidedExtractionFieldResult._FinalStage
-
type
public LegacyProvidedExtractionFieldResult._FinalStage type(LegacyProvidedExtractionFieldResultType type)
The type of the extraction field result
- Specified by:
typein interfaceLegacyProvidedExtractionFieldResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public LegacyProvidedExtractionFieldResult._FinalStage type(java.util.Optional<LegacyProvidedExtractionFieldResultType> type)
The type of the extraction field result
- Specified by:
typein interfaceLegacyProvidedExtractionFieldResult._FinalStage
-
build
public LegacyProvidedExtractionFieldResult build()
- Specified by:
buildin interfaceLegacyProvidedExtractionFieldResult._FinalStage
-
-