14
14
15
15
package com .google .firebase .remoteconfig .internal ;
16
16
17
+ import com .google .errorprone .annotations .CanIgnoreReturnValue ;
17
18
import java .util .Date ;
18
19
import java .util .HashMap ;
19
20
import java .util .HashSet ;
@@ -328,11 +329,13 @@ public Builder(ConfigContainer otherContainer) {
328
329
this .builderRolloutMetadata = otherContainer .getRolloutMetadata ();
329
330
}
330
331
332
+ @ CanIgnoreReturnValue
331
333
public Builder replaceConfigsWith (Map <String , String > configsMap ) {
332
334
this .builderConfigsJson = new JSONObject (configsMap );
333
335
return this ;
334
336
}
335
337
338
+ @ CanIgnoreReturnValue
336
339
public Builder replaceConfigsWith (JSONObject configsJson ) {
337
340
try {
338
341
this .builderConfigsJson = new JSONObject (configsJson .toString ());
@@ -345,11 +348,13 @@ public Builder replaceConfigsWith(JSONObject configsJson) {
345
348
return this ;
346
349
}
347
350
351
+ @ CanIgnoreReturnValue
348
352
public Builder withFetchTime (Date fetchTime ) {
349
353
this .builderFetchTime = fetchTime ;
350
354
return this ;
351
355
}
352
356
357
+ @ CanIgnoreReturnValue
353
358
public Builder withAbtExperiments (JSONArray abtExperiments ) {
354
359
try {
355
360
this .builderAbtExperiments = new JSONArray (abtExperiments .toString ());
@@ -362,6 +367,7 @@ public Builder withAbtExperiments(JSONArray abtExperiments) {
362
367
return this ;
363
368
}
364
369
370
+ @ CanIgnoreReturnValue
365
371
public Builder withPersonalizationMetadata (JSONObject personalizationMetadata ) {
366
372
try {
367
373
this .builderPersonalizationMetadata = new JSONObject (personalizationMetadata .toString ());
@@ -374,11 +380,13 @@ public Builder withPersonalizationMetadata(JSONObject personalizationMetadata) {
374
380
return this ;
375
381
}
376
382
383
+ @ CanIgnoreReturnValue
377
384
public Builder withTemplateVersionNumber (long templateVersionNumber ) {
378
385
this .builderTemplateVersionNumber = templateVersionNumber ;
379
386
return this ;
380
387
}
381
388
389
+ @ CanIgnoreReturnValue
382
390
public Builder withRolloutMetadata (JSONArray rolloutMetadata ) {
383
391
try {
384
392
this .builderRolloutMetadata = new JSONArray (rolloutMetadata .toString ());
0 commit comments