Package ai.extend.types
Class LegacyExtractionField.Builder
- java.lang.Object
-
- ai.extend.types.LegacyExtractionField.Builder
-
- All Implemented Interfaces:
LegacyExtractionField._FinalStage,LegacyExtractionField.DescriptionStage,LegacyExtractionField.IdStage,LegacyExtractionField.NameStage,LegacyExtractionField.TypeStage
- Enclosing class:
- LegacyExtractionField
public static final class LegacyExtractionField.Builder extends java.lang.Object implements LegacyExtractionField.IdStage, LegacyExtractionField.NameStage, LegacyExtractionField.TypeStage, LegacyExtractionField.DescriptionStage, LegacyExtractionField._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyExtractionFieldbuild()LegacyExtractionField._FinalStagedescription(java.lang.String description)Detailed description of the field, including expected content and format.LegacyExtractionField._FinalStageenum_(java.util.List<Enum> enum_)Required when type is "enum".LegacyExtractionField._FinalStageenum_(java.util.Optional<java.util.List<Enum>> enum_)Required when type is "enum".LegacyExtractionField.Builderfrom(LegacyExtractionField other)LegacyExtractionField.NameStageid(java.lang.String id)Unique identifier for the field.LegacyExtractionField.TypeStagename(java.lang.String name)Human-readable name for the field.LegacyExtractionField._FinalStageschema(java.util.List<LegacyExtractionField> schema)Required when type is "array" or "object".LegacyExtractionField._FinalStageschema(java.util.Optional<java.util.List<LegacyExtractionField>> schema)Required when type is "array" or "object".LegacyExtractionField.DescriptionStagetype(LegacyExtractionFieldType type)The type of the field.
-
-
-
Method Detail
-
from
public LegacyExtractionField.Builder from(LegacyExtractionField other)
- Specified by:
fromin interfaceLegacyExtractionField.IdStage
-
id
public LegacyExtractionField.NameStage id(@NotNull java.lang.String id)
Unique identifier for the field.
Unique identifier for the field.
- Specified by:
idin interfaceLegacyExtractionField.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
public LegacyExtractionField.TypeStage name(@NotNull java.lang.String name)
Human-readable name for the field.
Human-readable name for the field.
- Specified by:
namein interfaceLegacyExtractionField.NameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public LegacyExtractionField.DescriptionStage type(@NotNull LegacyExtractionFieldType type)
The type of the field.
The type of the field.
- Specified by:
typein interfaceLegacyExtractionField.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
description
public LegacyExtractionField._FinalStage description(@NotNull java.lang.String description)
Detailed description of the field, including expected content and format.
Detailed description of the field, including expected content and format.
- Specified by:
descriptionin interfaceLegacyExtractionField.DescriptionStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
enum_
public LegacyExtractionField._FinalStage enum_(java.util.List<Enum> enum_)
Required when type is "enum". List of allowed values.
- Specified by:
enum_in interfaceLegacyExtractionField._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
enum_
public LegacyExtractionField._FinalStage enum_(java.util.Optional<java.util.List<Enum>> enum_)
Required when type is "enum". List of allowed values.
- Specified by:
enum_in interfaceLegacyExtractionField._FinalStage
-
schema
public LegacyExtractionField._FinalStage schema(java.util.List<LegacyExtractionField> schema)
Required when type is "array" or "object". Contains nested field definitions.
- Specified by:
schemain interfaceLegacyExtractionField._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
schema
public LegacyExtractionField._FinalStage schema(java.util.Optional<java.util.List<LegacyExtractionField>> schema)
Required when type is "array" or "object". Contains nested field definitions.
- Specified by:
schemain interfaceLegacyExtractionField._FinalStage
-
build
public LegacyExtractionField build()
- Specified by:
buildin interfaceLegacyExtractionField._FinalStage
-
-