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 Timestamp start (inclusive) and a Timestamp end
(exclusive). The start must be less than or equal to the end. When the start equals the end, the
interval is empty (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.Builderbuilder()Instantiates a builder for Interval.endTime()Optional.static IntervalDeserializes a JSON string to a Interval object.Optional.abstract Interval.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
Interval
public Interval()
-
-
Method Details
-
endTime
Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. -
startTime
Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. -
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.
-