// This file is auto-generated by alef — DO NOT EDIT. // alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75 // To regenerate: alef generate // To verify freshness: alef verify --exit-code // Issues & docs: https://github.com/kreuzberg-dev/alef package dev.kreuzberg; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = StructuredDataResult.Builder.class) public record StructuredDataResult( @JsonProperty("content") String content, @JsonProperty("format") String format, @JsonProperty("metadata") Map metadata, @JsonProperty("text_fields") List textFields ) { public static Builder builder() { return new Builder(); } // CPD-OFF @JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build") public static final class Builder { private String content = ""; private String format = ""; private Map metadata = Map.of(); @JsonProperty("text_fields") private List textFields = List.of(); /** Sets the content field. */ @JsonProperty("content") public Builder withContent(final String value) { this.content = value; return this; } /** Sets the format field. */ @JsonProperty("format") public Builder withFormat(final String value) { this.format = value; return this; } /** Sets the metadata field. */ @JsonProperty("metadata") public Builder withMetadata(final Map value) { this.metadata = value; return this; } /** Sets the textFields field. */ @JsonProperty("text_fields") public Builder withTextFields(final List value) { this.textFields = value; return this; } /** Builds the StructuredDataResult instance. */ public StructuredDataResult build() { return new StructuredDataResult( content, format, metadata, textFields ); } } // CPD-ON }