public sealed class Field.Types.TtlConfig : IMessage<Field.Types.TtlConfig>, IEquatable<Field.Types.TtlConfig>, IDeepCloneable<Field.Types.TtlConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore Admin v1 API class Field.Types.TtlConfig.
The TTL (time-to-live) configuration for documents that have this Field
set.
Storing a timestamp value into a TTL-enabled field will be treated as
the document's absolute expiration time. Using any other data type or
leaving the field absent will disable the TTL for the individual document.
[[["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 document provides reference documentation for the \u003ccode\u003eField.Types.TtlConfig\u003c/code\u003e class within the Firestore Admin v1 API, specifically for version 3.9.0 and other versions as well.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eField.Types.TtlConfig\u003c/code\u003e class is used to manage the Time-to-Live (TTL) settings for documents, defining how long they should exist based on a field's timestamp.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing it to interact with Google's Protobuf framework.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, one default and one that can copy from another \u003ccode\u003eTtlConfig\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe key property of the class is "State," which indicates the current status of the TTL configuration, and is of type \u003ccode\u003eField.Types.TtlConfig.Types.State\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]