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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eCondition.Types.TimeRange\u003c/code\u003e class within the Google Cloud Retail v2 API, detailing its usage in specifying time-dependent conditions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTimeRange\u003c/code\u003e class, found in the \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e namespace, allows you to define a specific time period, such as a week-long sale, by setting inclusive start and end times.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the class's inheritance from the \u003ccode\u003eObject\u003c/code\u003e class and its implementation of several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, highlighting the class's structure and capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTimeRange\u003c/code\u003e class includes properties for setting the \u003ccode\u003eStartTime\u003c/code\u003e and \u003ccode\u003eEndTime\u003c/code\u003e of the desired time period, both using the \u003ccode\u003eTimestamp\u003c/code\u003e type.\u003c/p\u003e\n"],["\u003cp\u003eThis resource contains references to versioned documentation, with the latest being version \u003ccode\u003e2.12.0\u003c/code\u003e and providing a history of other versions, from \u003ccode\u003e2.11.0\u003c/code\u003e down to \u003ccode\u003e1.0.0\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]