Google Cloud Discovery Engine V1 Client - Class TimeRange (1.6.1)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class TimeRange.

Used for time-dependent conditions.

Generated from protobuf message google.cloud.discoveryengine.v1.Condition.TimeRange

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ Condition

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_time Google\Protobuf\Timestamp

Start of time range. Range is inclusive.

↳ end_time Google\Protobuf\Timestamp

End of time range. Range is inclusive. Must be in the future.

getStartTime

Start of time range.

Range is inclusive.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Start of time range.

Range is inclusive.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

End of time range.

Range is inclusive. Must be in the future.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

End of time range.

Range is inclusive. Must be in the future.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

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

Last updated 2025年10月30日 UTC.