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, detailing its purpose as a time-to-live (TTL) configuration for documents.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eField.Types.TtlConfig\u003c/code\u003e class is used to set the expiration time for documents, with timestamp values in a TTL-enabled field determining the document's absolute expiration.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines that \u003ccode\u003eField.Types.TtlConfig\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and it also showcases a list of all versions of this file.\u003c/p\u003e\n"],["\u003cp\u003eThe TTL feature is disabled for any document if a field is left absent or does not contain a timestamp value, according to the documents provided.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes information on the class's constructors, such as \u003ccode\u003eTtlConfig()\u003c/code\u003e and \u003ccode\u003eTtlConfig(TtlConfig other)\u003c/code\u003e, along with details about the \u003ccode\u003eState\u003c/code\u003e property, and shows the versions ranging from 3.12.0 to 2.2.0.\u003c/p\u003e\n"]]],[],null,[]]