Documentation

Interval extends Message
in package

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

Table of Contents

Properties

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

Methods

__construct()  : mixed
Constructor.
clearEndTime()  : mixed
clearStartTime()  : mixed
getEndTime()  : Timestamp|null
Optional. Exclusive end of the interval.
getStartTime()  : Timestamp|null
Optional. Inclusive start of the interval.
hasEndTime()  : mixed
hasStartTime()  : mixed
setEndTime()  : $this
Optional. Exclusive end of the interval.
setStartTime()  : $this
Optional. Inclusive start of the interval.

Properties

$end_time

Optional. Exclusive end of the interval.

protected mixed $end_time = null

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

Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"];

$start_time

Optional. Inclusive start of the interval.

protected mixed $start_time = null

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 [json_name = "startTime"];

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ 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.

}

clearEndTime()

public clearEndTime() : mixed

clearStartTime()

public clearStartTime() : mixed

getEndTime()

Optional. Exclusive end of the interval.

public getEndTime() : Timestamp|null

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

Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"];

Return values
Timestamp|null

getStartTime()

Optional. Inclusive start of the interval.

public getStartTime() : Timestamp|null

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 [json_name = "startTime"];

Return values
Timestamp|null

hasEndTime()

public hasEndTime() : mixed

hasStartTime()

public hasStartTime() : mixed

setEndTime()

Optional. Exclusive end of the interval.

public setEndTime(Timestamp $var) : $this

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

Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"];

Parameters
$var : Timestamp
Return values
$this

setStartTime()

Optional. Inclusive start of the interval.

public setStartTime(Timestamp $var) : $this

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 [json_name = "startTime"];

Parameters
$var : Timestamp
Return values
$this

        
On this page

Search results