Reference documentation and code samples for the Google Cloud Retail V2 Client class TimeRange.
Used for time-dependent conditions.
Example: Want to have rule applied for week long sale.
Generated from protobuf message google.cloud.retail.v2.Condition.TimeRange
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. |
getStartTime
Start of time range. Range is inclusive.
Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasStartTime
clearStartTime
setStartTime
Start of time range. Range is inclusive.
Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEndTime
End of time range. Range is inclusive.
Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasEndTime
clearEndTime
setEndTime
End of time range. Range is inclusive.
Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|