Retail v2 API - Class Condition.Types.TimeRange (2.3.0)

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.

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