Class Condition.Types.TimeRange (2.2.0)

public sealed class TimeRange : IMessage<Condition.Types.TimeRange>, IEquatable<Condition.Types.TimeRange>, IDeepCloneable<Condition.Types.TimeRange>, IBufferMessage, IMessage

Used for time-dependent conditions. Example: Want to have rule applied for week long sale.

Inheritance

Object > Condition.Types.TimeRange

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

TimeRange()

public TimeRange()

TimeRange(Condition.Types.TimeRange)

public TimeRange(Condition.Types.TimeRange other)
Parameter
NameDescription
otherCondition.Types.TimeRange

Properties

EndTime

public Timestamp EndTime { get; set; }

End of time range. Range is inclusive.

Property Value
TypeDescription
Timestamp

StartTime

public Timestamp StartTime { get; set; }

Start of time range. Range is inclusive.

Property Value
TypeDescription
Timestamp