Interval

A floating point interval.

JSON representation
{// Union fieldmin can be only one of the following:"minimum":number,"exclusiveMinimum":number// End of list of possible types for union fieldmin.// Union fieldmax can be only one of the following:"maximum":number,"exclusiveMaximum":number// End of list of possible types for union fieldmax.}
Fields

Union fieldmin. The lower bound of the interval. If neither of the min fields are set, then the lower bound is negative infinity.

This field must be not larger than max. Otherwise, anINVALID_ARGUMENT error is returned.min can be only one of the following:

minimum

number

Inclusive lower bound.

exclusiveMinimum

number

Exclusive lower bound.

Union fieldmax. The upper bound of the interval. If neither of the max fields are set, then the upper bound is positive infinity.

This field must be not smaller than min. Otherwise, anINVALID_ARGUMENT error is returned.max can be only one of the following:

maximum

number

Inclusive upper bound.

exclusiveMaximum

number

Exclusive upper bound.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-27 UTC.