Package com.google.genai.types
Class Interval
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Interval
Represents a time interval, encoded as a start time (inclusive) and an end time (exclusive).
The start time must be less than or equal to the end time. When the start equals the end time, the interval is an empty interval. (matches no time) When both start and end are unspecified, the interval matches any time.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Interval.Builder
builder()
Instantiates a builder for Interval.endTime()
The end time of the interval.static Interval
Deserializes a JSON string to a Interval object.The start time of the interval.abstract Interval.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
toJson
-
Constructor Details
-
Interval
public Interval()
-
-
Method Details
-
startTime
The start time of the interval. -
endTime
The end time of the interval. -
builder
Instantiates a builder for Interval. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a Interval object.
-