@@ -240,8 +240,13 @@ void SetDefaults(const ConfigKeyValueVariant* defaults,
240
240
// / @param number_of_defaults Number of elements in the defaults array.
241
241
// / @param config_namespace Namespace these default values will be applied
242
242
// / to.
243
- void SetDefaults (const ConfigKeyValueVariant* defaults,
244
- size_t number_of_defaults, const char * config_namespace);
243
+ // /
244
+ // / @deprecated Support for configuration values in namespaces is deprecated.
245
+ // / You can now only assign configuration values to the default namespace.
246
+ // / Please use SetDefaults(defaults, number_of_defaults) instead.
247
+ FIREBASE_DEPRECATED void SetDefaults (const ConfigKeyValueVariant* defaults,
248
+ size_t number_of_defaults,
249
+ const char * config_namespace);
245
250
#endif // SWIG
246
251
247
252
// / @brief Sets the default values based on a string map.
@@ -265,8 +270,13 @@ void SetDefaults(const ConfigKeyValue* defaults, size_t number_of_defaults);
265
270
// / @param number_of_defaults Number of elements in the defaults array.
266
271
// / @param config_namespace Namespace these default values will be applied
267
272
// / to.
268
- void SetDefaults (const ConfigKeyValue* defaults, size_t number_of_defaults,
269
- const char * config_namespace);
273
+ // /
274
+ // / @deprecated Support for configuration values in namespaces is deprecated.
275
+ // / You can now only assign configuration values to the default namespace.
276
+ // / Please use SetDefaults(defaults, number_of_defaults) instead.
277
+ FIREBASE_DEPRECATED void SetDefaults (const ConfigKeyValue* defaults,
278
+ size_t number_of_defaults,
279
+ const char * config_namespace);
270
280
271
281
// / @brief Retrieve an internal configuration setting.
272
282
// /
@@ -308,7 +318,12 @@ bool GetBoolean(const char* key);
308
318
// /
309
319
// / @returns Value associated with the specified key converted to a boolean
310
320
// / value.
311
- bool GetBoolean (const char * key, const char * config_namespace);
321
+ // /
322
+ // / @deprecated Support for configuration values in namespaces is deprecated.
323
+ // / You can now only retrieve configuration values from the default namespace.
324
+ // / Please use GetBoolean(key) instead.
325
+ FIREBASE_DEPRECATED bool GetBoolean (const char * key,
326
+ const char * config_namespace);
312
327
313
328
// / @brief Returns the value associated with a key, converted to a bool.
314
329
// /
@@ -337,7 +352,13 @@ bool GetBoolean(const char* key, ValueInfo* info);
337
352
// /
338
353
// / @returns Value associated with the specified key converted to a boolean
339
354
// / value.
340
- bool GetBoolean (const char * key, const char * config_namespace, ValueInfo* info);
355
+ // /
356
+ // / @deprecated Support for configuration values in namespaces is deprecated.
357
+ // / You can now only retrieve configuration values from the default namespace.
358
+ // / Please use GetBoolean(key, info) instead.
359
+ FIREBASE_DEPRECATED bool GetBoolean (const char * key,
360
+ const char * config_namespace,
361
+ ValueInfo* info);
341
362
342
363
// / @brief Returns the value associated with a key, converted to a 64-bit
343
364
// / integer.
@@ -356,7 +377,12 @@ int64_t GetLong(const char* key);
356
377
// /
357
378
// / @returns Value associated with the specified key converted to a 64-bit
358
379
// / integer.
359
- int64_t GetLong (const char * key, const char * config_namespace);
380
+ // /
381
+ // / @deprecated Support for configuration values in namespaces is deprecated.
382
+ // / You can now only retrieve configuration values from the default namespace.
383
+ // / Please use GetLong(key) instead.
384
+ FIREBASE_DEPRECATED int64_t GetLong (const char * key,
385
+ const char * config_namespace);
360
386
361
387
// / @brief Returns the value associated with a key, converted to a 64-bit
362
388
// / integer.
@@ -379,7 +405,13 @@ int64_t GetLong(const char* key, ValueInfo* info);
379
405
// /
380
406
// / @returns Value associated with the specified key converted to a 64-bit
381
407
// / integer.
382
- int64_t GetLong (const char * key, const char * config_namespace, ValueInfo* info);
408
+ // /
409
+ // / @deprecated Support for configuration values in namespaces is deprecated.
410
+ // / You can now only retrieve configuration values from the default namespace.
411
+ // / Please use GetLong(key, info) instead.
412
+ FIREBASE_DEPRECATED int64_t GetLong (const char * key,
413
+ const char * config_namespace,
414
+ ValueInfo* info);
383
415
384
416
// / @brief Returns the value associated with a key, converted to a double.
385
417
// /
@@ -394,7 +426,12 @@ double GetDouble(const char* key);
394
426
// / @param[in] config_namespace Namespace to query for the key.
395
427
// /
396
428
// / @returns Value associated with the specified key converted to a double.
397
- double GetDouble (const char * key, const char * config_namespace);
429
+ // /
430
+ // / @deprecated Support for configuration values in namespaces is deprecated.
431
+ // / You can now only retrieve configuration values from the default namespace.
432
+ // / Please use GetDouble(key) instead.
433
+ FIREBASE_DEPRECATED double GetDouble (const char * key,
434
+ const char * config_namespace);
398
435
399
436
// / @brief Returns the value associated with a key, converted to a double.
400
437
// /
@@ -413,8 +450,13 @@ double GetDouble(const char* key, ValueInfo* info);
413
450
// / value.
414
451
// /
415
452
// / @returns Value associated with the specified key converted to a double.
416
- double GetDouble (const char * key, const char * config_namespace,
417
- ValueInfo* info);
453
+ // /
454
+ // / @deprecated Support for configuration values in namespaces is deprecated.
455
+ // / You can now only retrieve configuration values from the default namespace.
456
+ // / Please use GetDouble(key, info) instead.
457
+ FIREBASE_DEPRECATED double GetDouble (const char * key,
458
+ const char * config_namespace,
459
+ ValueInfo* info);
418
460
419
461
// / @brief Returns the value associated with a key, converted to a string.
420
462
// /
@@ -429,7 +471,12 @@ std::string GetString(const char* key);
429
471
// / @param[in] config_namespace Namespace the api lives in
430
472
// /
431
473
// / @return Value as a string associated with the specified key.
432
- std::string GetString (const char * key, const char * config_namespace);
474
+ // /
475
+ // / @deprecated Support for configuration values in namespaces is deprecated.
476
+ // / You can now only retrieve configuration values from the default namespace.
477
+ // / Please use GetString(key) instead.
478
+ FIREBASE_DEPRECATED std::string GetString (const char * key,
479
+ const char * config_namespace);
433
480
434
481
// / @brief Returns the value associated with a key, converted to a string.
435
482
// /
@@ -446,8 +493,13 @@ std::string GetString(const char* key, ValueInfo* info);
446
493
// / @param[in] config_namespace Namespace to query for the key.
447
494
// / @param[out] info A return value, specifying the source of the returned
448
495
// / value.
449
- std::string GetString (const char * key, const char * config_namespace,
450
- ValueInfo* info);
496
+ // /
497
+ // / @deprecated Support for configuration values in namespaces is deprecated.
498
+ // / You can now only retrieve configuration values from the default namespace.
499
+ // / Please use GetString(key, info) instead.
500
+ FIREBASE_DEPRECATED std::string GetString (const char * key,
501
+ const char * config_namespace,
502
+ ValueInfo* info);
451
503
452
504
// / @brief Returns the value associated with a key, as a vector of raw
453
505
// / byte-data.
@@ -464,8 +516,12 @@ std::vector<unsigned char> GetData(const char* key);
464
516
// / @param[in] config_namespace Namespace to query for the key.
465
517
// /
466
518
// / @returns Vector of bytes.
467
- std::vector<unsigned char > GetData (const char * key,
468
- const char * config_namespace);
519
+ // /
520
+ // / @deprecated Support for configuration values in namespaces is deprecated.
521
+ // / You can now only retrieve configuration values from the default namespace.
522
+ // / Please use GetData(key) instead.
523
+ FIREBASE_DEPRECATED std::vector<unsigned char > GetData (
524
+ const char * key, const char * config_namespace);
469
525
470
526
// / @brief Returns the value associated with a key, as a vector of raw
471
527
// / byte-data.
@@ -486,9 +542,12 @@ std::vector<unsigned char> GetData(const char* key, ValueInfo* info);
486
542
// / value.
487
543
// /
488
544
// / @returns Vector of bytes.
489
- std::vector<unsigned char > GetData (const char * key,
490
- const char * config_namespace,
491
- ValueInfo* info);
545
+ // /
546
+ // / @deprecated Support for configuration values in namespaces is deprecated.
547
+ // / You can now only retrieve configuration values from the default namespace.
548
+ // / Please use GetData(key, info) instead.
549
+ FIREBASE_DEPRECATED std::vector<unsigned char > GetData (
550
+ const char * key, const char * config_namespace, ValueInfo* info);
492
551
493
552
// / @brief Gets the set of keys that start with the given prefix, in the
494
553
// / default namespace.
@@ -511,8 +570,12 @@ std::vector<std::string> GetKeysByPrefix(const char* prefix);
511
570
// / @returns Set of Remote Config parameter keys that start with the specified
512
571
// / prefix. Will return an empty set if there are no keys with the given
513
572
// / prefix.
514
- std::vector<std::string> GetKeysByPrefix (const char * prefix,
515
- const char * config_namespace);
573
+ // /
574
+ // / @deprecated Support for configuration values in namespaces is deprecated.
575
+ // / You can now only retrieve configuration keys from the default namespace.
576
+ // / Please use GetKeysByPrefix(prefix) instead.
577
+ FIREBASE_DEPRECATED std::vector<std::string> GetKeysByPrefix (
578
+ const char * prefix, const char * config_namespace);
516
579
517
580
// / @brief Gets the set of all keys in the default namespace.
518
581
// /
@@ -524,7 +587,12 @@ std::vector<std::string> GetKeys();
524
587
// / @param[in] config_namespace The namespace in which to look up the keys.
525
588
// /
526
589
// / @returns Set of all Remote Config parameter keys in the given namespace.
527
- std::vector<std::string> GetKeys (const char * config_namespace);
590
+ // /
591
+ // / @deprecated Support for configuration values in namespaces is deprecated.
592
+ // / You can now only retrieve configuration keys from the default namespace.
593
+ // / Please use GetKeys() instead.
594
+ FIREBASE_DEPRECATED std::vector<std::string> GetKeys (
595
+ const char * config_namespace);
528
596
529
597
// / @brief Fetches config data from the server.
530
598
// /
0 commit comments