class Interval extends Message

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.

Generated from protobuf message google.type.Interval

Properties

protected $start_time Optional. Inclusive start of the interval.
protected $end_time Optional. Exclusive end of the interval.

Methods

__construct(array $data = NULL)

Constructor.

Timestamp|null
getStartTime()

Optional. Inclusive start of the interval.

hasStartTime()

No description

clearStartTime()

No description

$this
setStartTime(Timestamp $var)

Optional. Inclusive start of the interval.

Timestamp|null
getEndTime()

Optional. Exclusive end of the interval.

hasEndTime()

No description

clearEndTime()

No description

$this
setEndTime(Timestamp $var)

Optional. Exclusive end of the interval.

Details

at line 55
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type \Google\Protobuf\Timestamp $start_time
      Optional. Inclusive start of the interval.
      If specified, a Timestamp matching this interval will have to be the same
      or after the start.
@type \Google\Protobuf\Timestamp $end_time
      Optional. Exclusive end of the interval.
      If specified, a Timestamp matching this interval will have to be before the
      end.

}

at line 68
Timestamp|null getStartTime()

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

Generated from protobuf field .google.protobuf.Timestamp start_time = 1;

Return Value

Timestamp|null

at line 73
hasStartTime()

at line 78
clearStartTime()

at line 92
$this setStartTime(Timestamp $var)

Optional. Inclusive start of the interval.

If specified, a Timestamp matching this interval will have to be the same or after the start.

Generated from protobuf field .google.protobuf.Timestamp start_time = 1;

Parameters

Timestamp $var

Return Value

$this

at line 108
Timestamp|null getEndTime()

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

Generated from protobuf field .google.protobuf.Timestamp end_time = 2;

Return Value

Timestamp|null

at line 113
hasEndTime()

at line 118
clearEndTime()

at line 132
$this setEndTime(Timestamp $var)

Optional. Exclusive end of the interval.

If specified, a Timestamp matching this interval will have to be before the end.

Generated from protobuf field .google.protobuf.Timestamp end_time = 2;

Parameters

Timestamp $var

Return Value

$this