TimestampRangeValue
CEL runtime value for one half-open timestamp range [start, end).
An empty range is valid when start equals end; a range whose start is
after its end is invalid.
Implements
Section titled “Implements”Val
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TimestampRangeValue(
start,end):TimestampRangeValue
Creates a range with an inclusive start and exclusive end.
Parameters
Section titled “Parameters”Timestamp$1
Timestamp$1
Returns
Section titled “Returns”TimestampRangeValue
Properties
Section titled “Properties”
readonlyend:Timestamp$1
Exclusive upper bound of the range.
readonlystart:Timestamp$1
Inclusive lower bound of the range.
Methods
Section titled “Methods”contains()
Section titled “contains()”contains(
value):boolean
Reports whether the range contains a timestamp.
Parameters
Section titled “Parameters”Timestamp$1
Returns
Section titled “Returns”boolean
convertToNative()
Section titled “convertToNative()”convertToNative(
typeDesc?):unknown
Returns this value for its own native type and rejects other conversions.
Parameters
Section titled “Parameters”typeDesc?
Section titled “typeDesc?”unknown
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”Val.convertToNative
convertToType()
Section titled “convertToType()”convertToType(
typeValue):Val
Converts only to this opaque CEL type or CEL’s type value.
Parameters
Section titled “Parameters”typeValue
Section titled “typeValue”Type
Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”Val.convertToType
equal()
Section titled “equal()”equal(
other):Val
Compares both bounds with timestamp precision.
Parameters
Section titled “Parameters”Val
Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”Val.equal
overlaps()
Section titled “overlaps()”overlaps(
other):boolean
Reports whether two half-open ranges share at least one timestamp.
Parameters
Section titled “Parameters”TimestampRangeValue
Returns
Section titled “Returns”boolean
type()
Section titled “type()”type():
Type
Returns the opaque CEL type of this range.
Returns
Section titled “Returns”Type
Implementation of
Section titled “Implementation of”Val.type
value()
Section titled “value()”value():
unknown
Returns both bounds in a CEL-native object.
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”Val.value