Class Interval.Builder

java.lang.Object
com.google.genai.types.Interval.Builder
Enclosing class:
Interval

public abstract static class Interval.Builder extends Object
Builder for Interval.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • endTime

      public abstract Interval.Builder endTime(Instant endTime)
      Setter for endTime.

      endTime: Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.

    • startTime

      public abstract Interval.Builder startTime(Instant startTime)
      Setter for startTime.

      startTime: Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.

    • build

      public abstract Interval build()