2828@class FIRTransaction;
2929@class FIRTransactionOptions;
3030@class FIRWriteBatch;
31+ @class FIRPersistentCacheIndexManager;
3132
3233NS_ASSUME_NONNULL_BEGIN
3334
@@ -103,7 +104,16 @@ NS_SWIFT_NAME(Firestore)
103104#pragma mark - Configure FieldIndexes
104105
105106/* *
106- * This method is in preview. API signature and functionality are subject to change.
107+ * A PersistentCacheIndexManager which you can config persistent cache indexes used for
108+ * local query execution.
109+ */
110+ @property(nonatomic, readonly, nullable)
111+ FIRPersistentCacheIndexManager *persistentCacheIndexManager;
112+
113+ /* *
114+ * NOTE: This preview method will be deprecated in a future major release. Consider using
115+ * `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to create
116+ * cache indexes for queries running locally.
107117 *
108118 * Configures indexing for local query execution. Any previous index configuration is overridden.
109119 *
@@ -121,10 +131,15 @@ NS_SWIFT_NAME(Firestore)
121131 */
122132- (void )setIndexConfigurationFromJSON:(NSString *)json
123133 completion:(nullable void (^)(NSError *_Nullable error))completion
124- NS_SWIFT_NAME(setIndexConfiguration(_:completion:));
134+ NS_SWIFT_NAME(setIndexConfiguration(_:completion:)) DEPRECATED_MSG_ATTRIBUTE(
135+ " Instead of creating cache indexes manually, consider using "
136+ " `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to "
137+ " create cache indexes for queries running locally." );
125138
126139/* *
127- * This method is in preview. API signature and functionality are subject to change.
140+ * NOTE: This preview method will be deprecated in a future major release. Consider using
141+ * `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to create
142+ * cache indexes for queries running locally.
128143 *
129144 * Configures indexing for local query execution. Any previous index configuration is overridden.
130145 *
@@ -145,7 +160,10 @@ NS_SWIFT_NAME(Firestore)
145160 */
146161- (void )setIndexConfigurationFromStream:(NSInputStream *)stream
147162 completion:(nullable void (^)(NSError *_Nullable error))completion
148- NS_SWIFT_NAME(setIndexConfiguration(_:completion:));
163+ NS_SWIFT_NAME(setIndexConfiguration(_:completion:)) DEPRECATED_MSG_ATTRIBUTE(
164+ " Instead of creating cache indexes manually, consider using "
165+ " `PersistentCacheIndexManager.enableIndexAutoCreation()` to let the SDK decide whether to "
166+ " create cache indexes for queries running locally." );
149167
150168#pragma mark - Collections and Documents
151169
0 commit comments