public sealed class TimeRange : IMessage<Condition.Types.TimeRange>, IEquatable<Condition.Types.TimeRange>, IDeepCloneable<Condition.Types.TimeRange>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class Condition.Types.TimeRange.
Used for time-dependent conditions. Example: Want to have rule applied for week long sale.
Implements
IMessage<Condition.Types.TimeRange>, IEquatable<Condition.Types.TimeRange>, IDeepCloneable<Condition.Types.TimeRange>, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
TimeRange()
public TimeRange()
TimeRange(Condition.Types.TimeRange)
public TimeRange(Condition.Types.TimeRange other)
Parameter | |
---|---|
Name | Description |
other | Condition.Types.TimeRange |
Properties
EndTime
public Timestamp EndTime { get; set; }
End of time range. Range is inclusive.
Property Value | |
---|---|
Type | Description |
Timestamp |
StartTime
public Timestamp StartTime { get; set; }
Start of time range. Range is inclusive.
Property Value | |
---|---|
Type | Description |
Timestamp |