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

public sealed class Condition.Types.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(TimeRange)

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

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