ℹ️ This enum is non-exhaustive.
+ */ + _FinalStage sampleType(Optionalℹ️ This enum is non-exhaustive.
+ */ + _FinalStage measurementKind(Optionalℹ️ This enum is non-exhaustive.
*/ @@ -370,6 +412,10 @@ public static final class Builder implements TestNameStage, ValueStage, _FinalSt private Optionalℹ️ This enum is non-exhaustive.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage measurementKind(LabReportResultMeasurementKind measurementKind) { + this.measurementKind = Optional.ofNullable(measurementKind); + return this; + } + + /** + *ℹ️ This enum is non-exhaustive.
+ */ + @java.lang.Override + @JsonSetter(value = "measurement_kind", nulls = Nulls.SKIP) + public _FinalStage measurementKind(Optionalℹ️ This enum is non-exhaustive.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sampleType(LabReportResultSampleType sampleType) { + this.sampleType = Optional.ofNullable(sampleType); + return this; + } + + /** + *ℹ️ This enum is non-exhaustive.
+ */ + @java.lang.Override + @JsonSetter(value = "sample_type", nulls = Nulls.SKIP) + public _FinalStage sampleType(OptionalDate of the meal in the YYYY-mm-dd format. For providers that only expose a date, this is the calendar date as recorded by the user.
+ */ + NameStage calendarDate(@NotNull String calendarDate); } public interface NameStage { @@ -391,6 +412,7 @@ public static final class Builder SourceIdStage, ProviderIdStage, TimestampStage, + CalendarDateStage, NameStage, SourceStage, CreatedAtStage, @@ -408,6 +430,8 @@ public static final class Builder private OffsetDateTime timestamp; + private String calendarDate; + private String name; private ClientFacingSource source; @@ -441,6 +465,7 @@ public Builder from(MealInDbBaseClientFacingSource other) { sourceId(other.getSourceId()); providerId(other.getProviderId()); timestamp(other.getTimestamp()); + calendarDate(other.getCalendarDate()); name(other.getName()); energy(other.getEnergy()); macros(other.getMacros()); @@ -506,11 +531,23 @@ public TimestampStage providerId(@NotNull String providerId) { @java.lang.Override @JsonSetter("timestamp") - public NameStage timestamp(@NotNull OffsetDateTime timestamp) { + public CalendarDateStage timestamp(@NotNull OffsetDateTime timestamp) { this.timestamp = Objects.requireNonNull(timestamp, "timestamp must not be null"); return this; } + /** + *Date of the meal in the YYYY-mm-dd format. For providers that only expose a date, this is the calendar date as recorded by the user.
+ *Date of the meal in the YYYY-mm-dd format. For providers that only expose a date, this is the calendar date as recorded by the user.
+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("calendar_date") + public NameStage calendarDate(@NotNull String calendarDate) { + this.calendarDate = Objects.requireNonNull(calendarDate, "calendarDate must not be null"); + return this; + } + @java.lang.Override @JsonSetter("name") public SourceStage name(@NotNull String name) { @@ -686,6 +723,7 @@ public MealInDbBaseClientFacingSource build() { sourceId, providerId, timestamp, + calendarDate, name, energy, macros,