-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathTCStringV2.java
More file actions
618 lines (553 loc) · 23 KB
/
TCStringV2.java
File metadata and controls
618 lines (553 loc) · 23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
package com.iabtcf.decoder;
/*-
* #%L
* IAB TCF Java Decoder Library
* %%
* Copyright (C) 2020 IAB Technology Laboratory, Inc
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import static com.iabtcf.utils.FieldDefs.AV_MAX_VENDOR_ID;
import static com.iabtcf.utils.FieldDefs.AV_VENDOR_BITRANGE_FIELD;
import static com.iabtcf.utils.FieldDefs.CORE_CMP_ID;
import static com.iabtcf.utils.FieldDefs.CORE_CMP_VERSION;
import static com.iabtcf.utils.FieldDefs.CORE_CONSENT_LANGUAGE;
import static com.iabtcf.utils.FieldDefs.CORE_CONSENT_SCREEN;
import static com.iabtcf.utils.FieldDefs.CORE_CREATED;
import static com.iabtcf.utils.FieldDefs.CORE_IS_SERVICE_SPECIFIC;
import static com.iabtcf.utils.FieldDefs.CORE_LAST_UPDATED;
import static com.iabtcf.utils.FieldDefs.CORE_NUM_PUB_RESTRICTION;
import static com.iabtcf.utils.FieldDefs.CORE_PUBLISHER_CC;
import static com.iabtcf.utils.FieldDefs.CORE_PUB_RESTRICTION_ENTRY;
import static com.iabtcf.utils.FieldDefs.CORE_PURPOSES_CONSENT;
import static com.iabtcf.utils.FieldDefs.CORE_PURPOSES_LI_TRANSPARENCY;
import static com.iabtcf.utils.FieldDefs.CORE_PURPOSE_ONE_TREATMENT;
import static com.iabtcf.utils.FieldDefs.CORE_SPECIAL_FEATURE_OPT_INS;
import static com.iabtcf.utils.FieldDefs.CORE_TCF_POLICY_VERSION;
import static com.iabtcf.utils.FieldDefs.CORE_USE_NON_STANDARD_STOCKS;
import static com.iabtcf.utils.FieldDefs.CORE_VENDOR_BITRANGE_FIELD;
import static com.iabtcf.utils.FieldDefs.CORE_VENDOR_LIST_VERSION;
import static com.iabtcf.utils.FieldDefs.CORE_VENDOR_LI_BITRANGE_FIELD;
import static com.iabtcf.utils.FieldDefs.CORE_VENDOR_LI_MAX_VENDOR_ID;
import static com.iabtcf.utils.FieldDefs.CORE_VENDOR_MAX_VENDOR_ID;
import static com.iabtcf.utils.FieldDefs.CORE_VERSION;
import static com.iabtcf.utils.FieldDefs.DV_MAX_VENDOR_ID;
import static com.iabtcf.utils.FieldDefs.DV_VENDOR_BITRANGE_FIELD;
import static com.iabtcf.utils.FieldDefs.OOB_SEGMENT_TYPE;
import static com.iabtcf.utils.FieldDefs.PPTC_CUSTOM_PURPOSES_CONSENT;
import static com.iabtcf.utils.FieldDefs.PPTC_CUSTOM_PURPOSES_LI_TRANSPARENCY;
import static com.iabtcf.utils.FieldDefs.PPTC_PUB_PURPOSES_CONSENT;
import static com.iabtcf.utils.FieldDefs.PPTC_PUB_PURPOSES_LI_TRANSPARENCY;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Collection;
import java.util.EnumSet;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import com.iabtcf.exceptions.InvalidRangeFieldException;
import com.iabtcf.utils.BitReader;
import com.iabtcf.utils.BitSetIntIterable;
import com.iabtcf.utils.FieldDefs;
import com.iabtcf.utils.IntIterable;
import com.iabtcf.v2.PublisherRestriction;
import com.iabtcf.v2.RestrictionType;
import com.iabtcf.v2.SegmentType;
class TCStringV2 implements TCString {
private int version;
private Instant consentRecordCreated;
private Instant consentRecordLastUpdated;
private int consentManagerProviderId;
private int consentManagerProviderVersion;
private int consentScreen;
private String consentLanguage;
private int vendorListVersion;
private int policyVersion;
private boolean isServiceSpecific;
private boolean useNonStandardStacks;
private IntIterable specialFeaturesOptInts;
private IntIterable purposesConsent;
private IntIterable purposesLITransparency;
private boolean isPurposeOneTreatment;
private String publisherCountryCode;
private IntIterable vendorConsents;
private IntIterable vendorLegitimateInterests;
private List<PublisherRestriction> publisherRestrictions;
private IntIterable disclosedVendors;
private IntIterable allowedVendors;
private IntIterable publisherPurposesConsent;
private IntIterable publisherPurposesLITransparency;
private IntIterable customPurposesConsent;
private IntIterable customPurposesLITransparency;
private final EnumSet<FieldDefs> cache = EnumSet.noneOf(FieldDefs.class);
private final BitReader bbv;
private final Collection<BitReader> remainingVectors;
private TCStringV2(BitReader bbv) {
this(bbv, new BitReader[] {});
}
private TCStringV2(BitReader bbv, BitReader... theRest) {
this.bbv = bbv;
this.remainingVectors = Arrays.asList(theRest);
}
public static TCStringV2 fromBitVector(BitReader coreBitVector, BitReader... remainingVectors) {
return new TCStringV2(coreBitVector, remainingVectors);
}
private BitReader getSegment(SegmentType segmentType) {
if (segmentType == SegmentType.DEFAULT) {
return bbv;
}
for (BitReader rbbv : remainingVectors) {
int rSegmentType = rbbv.readBits3(OOB_SEGMENT_TYPE);
if (segmentType == SegmentType.from(rSegmentType)) {
return rbbv;
}
}
return null;
}
@Override
public IntIterable getPubPurposesConsent() {
if (cache.add(PPTC_PUB_PURPOSES_CONSENT)) {
publisherPurposesConsent = BitSetIntIterable.EMPTY;
BitReader dvBbv = getSegment(SegmentType.PUBLISHER_TC);
if (dvBbv != null) {
publisherPurposesConsent = fillBitSet(dvBbv, PPTC_PUB_PURPOSES_CONSENT);
}
}
return publisherPurposesConsent;
}
/**
* @throws InvalidRangeFieldException
*/
static BitSetIntIterable fillVendors(BitReader bbv, FieldDefs maxVendor, FieldDefs vendorField) {
final int maxV = bbv.readBits16(maxVendor);
final boolean isRangeEncoding = bbv.readBits1(maxVendor.getEnd(bbv));
final int vendorFieldOffset = vendorField.getOffset(bbv);
BitSet bs = new BitSet();
if (isRangeEncoding) {
vendorIdsFromRange(bbv, bs, vendorField, Optional.of(maxVendor));
} else {
bs = bbv.readBitSet(vendorFieldOffset, maxV, 1);
}
return BitSetIntIterable.from(bs);
}
/**
* Returns the offset following this range entry
*
* @throws InvalidRangeFieldException
*/
static int vendorIdsFromRange(BitReader bbv, BitSet bs, int numberOfVendorEntriesOffset,
Optional<FieldDefs> maxVendor) {
final int numberOfVendorEntries = bbv.readBits12(numberOfVendorEntriesOffset);
final int maxV = maxVendor.map(maxVF -> bbv.readBits16(maxVF)).orElse(Integer.MAX_VALUE);
final int vendorIdFieldLength = FieldDefs.START_OR_ONLY_VENDOR_ID.getLength(bbv);
final int vendorIdMask = 0xFFFFFFFF >>> (32 - vendorIdFieldLength);
int offset = numberOfVendorEntriesOffset + FieldDefs.NUM_ENTRIES.getLength(bbv);
for (int j = 0; j < numberOfVendorEntries; j++) {
boolean isRangeEntry = bbv.readBits1(offset++);
if (isRangeEntry) {
final int content = bbv.readBits32(offset);
final int startVendorId = (content >>> vendorIdFieldLength) & vendorIdMask;
final int endVendorId = content & vendorIdMask;
offset += 2 * vendorIdFieldLength;
if (startVendorId > endVendorId) {
throw new InvalidRangeFieldException(String.format(
"start vendor id (%d) is greater than endVendorId (%d)", startVendorId, endVendorId));
}
if (endVendorId > maxV) {
throw new InvalidRangeFieldException(
String.format("end vendor id (%d) is greater than max (%d)", endVendorId, maxV));
}
bs.set(startVendorId, endVendorId + 1);
} else {
final int onlyVendorId = bbv.readBits16(offset);
offset += vendorIdFieldLength;
bs.set(onlyVendorId);
}
}
return offset;
}
/**
* @throws InvalidRangeFieldException
*/
static void vendorIdsFromRange(BitReader bbv, BitSet bs, FieldDefs vendorField, Optional<FieldDefs> maxVendor) {
vendorIdsFromRange(bbv, bs, vendorField.getOffset(bbv), maxVendor);
}
/**
* @throws InvalidRangeFieldException
*/
private int fillPublisherRestrictions(
List<PublisherRestriction> publisherRestrictions, int currentPointer, BitReader bitVector) {
final int numberOfPublisherRestrictions = bitVector.readBits12(currentPointer);
final int purposeIdFieldLength = FieldDefs.PURPOSE_ID.getLength(bitVector);
currentPointer += FieldDefs.NUM_ENTRIES.getLength(bitVector);
for (int i = 0; i < numberOfPublisherRestrictions; i++) {
final byte content = bitVector.readByteBits(currentPointer, 8);
final int purposeId = (content >>> 2) & (0xFF >>> (8 - purposeIdFieldLength));
final int restrictionTypeId = content & 0b11;
currentPointer += purposeIdFieldLength + 2;
final BitSet bs = new BitSet();
currentPointer = vendorIdsFromRange(bbv, bs, currentPointer, Optional.empty());
publisherRestrictions.add(
new PublisherRestriction(
purposeId, RestrictionType.from(restrictionTypeId),
BitSetIntIterable.from(bs)));
}
return currentPointer;
}
static BitSetIntIterable fillBitSet(BitReader bbv, FieldDefs field) {
int offset = field.getOffset(bbv);
int length = field.getLength(bbv);
BitSetIntIterable.Builder bs = BitSetIntIterable.newBuilder();
for (int i = 0; i < length; i++) {
if (bbv.readBits1(offset + i)) {
bs.add(i + 1);
}
}
return bs.build();
}
@Override
public int getVersion() {
if (cache.add(CORE_VERSION)) {
version = bbv.readBits6(CORE_VERSION);
}
return version;
}
@Override
public Instant getCreated() {
if (cache.add(CORE_CREATED)) {
consentRecordCreated = Instant.ofEpochMilli(bbv.readBits36(CORE_CREATED) * 100);
}
return consentRecordCreated;
}
@Override
public Instant getLastUpdated() {
if (cache.add(CORE_LAST_UPDATED)) {
consentRecordLastUpdated = Instant.ofEpochMilli(bbv.readBits36(CORE_LAST_UPDATED) * 100);
}
return consentRecordLastUpdated;
}
@Override
public int getCmpId() {
if (cache.add(CORE_CMP_ID)) {
consentManagerProviderId = (short) bbv.readBits12(CORE_CMP_ID);
}
return consentManagerProviderId;
}
@Override
public int getCmpVersion() {
if (cache.add(CORE_CMP_VERSION)) {
consentManagerProviderVersion = (short) bbv.readBits12(CORE_CMP_VERSION);
}
return consentManagerProviderVersion;
}
@Override
public int getConsentScreen() {
if (cache.add(CORE_CONSENT_SCREEN)) {
consentScreen = bbv.readBits6(CORE_CONSENT_SCREEN);
}
return consentScreen;
}
@Override
public String getConsentLanguage() {
if (cache.add(CORE_CONSENT_LANGUAGE)) {
consentLanguage = bbv.readStr2(CORE_CONSENT_LANGUAGE);
}
return consentLanguage;
}
@Override
public int getVendorListVersion() {
if (cache.add(CORE_VENDOR_LIST_VERSION)) {
vendorListVersion = (short) bbv.readBits12(CORE_VENDOR_LIST_VERSION);
}
return vendorListVersion;
}
@Override
public IntIterable getPurposesConsent() {
if (cache.add(CORE_PURPOSES_CONSENT)) {
purposesConsent = fillBitSet(bbv, CORE_PURPOSES_CONSENT);
}
return purposesConsent;
}
/**
* @throws InvalidRangeFieldException
*/
@Override
public IntIterable getVendorConsent() {
if (cache.add(CORE_VENDOR_BITRANGE_FIELD)) {
vendorConsents = fillVendors(bbv, CORE_VENDOR_MAX_VENDOR_ID, CORE_VENDOR_BITRANGE_FIELD);
}
return vendorConsents;
}
@Override
public boolean getDefaultVendorConsent() {
return false;
}
@Override
public int getTcfPolicyVersion() {
if (cache.add(CORE_TCF_POLICY_VERSION)) {
policyVersion = bbv.readBits6(CORE_TCF_POLICY_VERSION);
}
return policyVersion;
}
@Override
public boolean isServiceSpecific() {
if (cache.add(CORE_IS_SERVICE_SPECIFIC)) {
isServiceSpecific = bbv.readBits1(CORE_IS_SERVICE_SPECIFIC);
}
return isServiceSpecific;
}
@Override
public boolean getUseNonStandardStacks() {
if (cache.add(CORE_USE_NON_STANDARD_STOCKS)) {
useNonStandardStacks = bbv.readBits1(CORE_USE_NON_STANDARD_STOCKS);
}
return useNonStandardStacks;
}
@Override
public IntIterable getSpecialFeatureOptIns() {
if (cache.add(CORE_SPECIAL_FEATURE_OPT_INS)) {
specialFeaturesOptInts = fillBitSet(bbv, CORE_SPECIAL_FEATURE_OPT_INS);
}
return specialFeaturesOptInts;
}
@Override
public IntIterable getPurposesLITransparency() {
if (cache.add(CORE_PURPOSES_LI_TRANSPARENCY)) {
purposesLITransparency = fillBitSet(bbv, CORE_PURPOSES_LI_TRANSPARENCY);
}
return purposesLITransparency;
}
@Override
public boolean getPurposeOneTreatment() {
if (cache.add(CORE_PURPOSE_ONE_TREATMENT)) {
isPurposeOneTreatment = bbv.readBits1(CORE_PURPOSE_ONE_TREATMENT);
}
return isPurposeOneTreatment;
}
@Override
public String getPublisherCC() {
if (cache.add(CORE_PUBLISHER_CC)) {
publisherCountryCode = bbv.readStr2(CORE_PUBLISHER_CC);
}
return publisherCountryCode;
}
/**
* @throws InvalidRangeFieldException
*/
@Override
public IntIterable getVendorLegitimateInterest() {
if (cache.add(CORE_VENDOR_LI_BITRANGE_FIELD)) {
vendorLegitimateInterests =
fillVendors(bbv, CORE_VENDOR_LI_MAX_VENDOR_ID, FieldDefs.CORE_VENDOR_LI_BITRANGE_FIELD);
}
return vendorLegitimateInterests;
}
/**
* @throws InvalidRangeFieldException
*/
@Override
public List<PublisherRestriction> getPublisherRestrictions() {
if (cache.add(CORE_PUB_RESTRICTION_ENTRY)) {
publisherRestrictions = new ArrayList<>();
fillPublisherRestrictions(publisherRestrictions, CORE_NUM_PUB_RESTRICTION.getOffset(bbv), bbv);
}
return publisherRestrictions;
}
/**
* @throws InvalidRangeFieldException
*/
@Override
public IntIterable getAllowedVendors() {
if (cache.add(AV_VENDOR_BITRANGE_FIELD)) {
allowedVendors = BitSetIntIterable.EMPTY;
BitReader dvBbv = getSegment(SegmentType.ALLOWED_VENDOR);
if (dvBbv != null) {
allowedVendors = fillVendors(dvBbv, AV_MAX_VENDOR_ID, AV_VENDOR_BITRANGE_FIELD);
}
}
return allowedVendors;
}
/**
* @throws InvalidRangeFieldException
*/
@Override
public IntIterable getDisclosedVendors() {
if (cache.add(DV_VENDOR_BITRANGE_FIELD)) {
disclosedVendors = BitSetIntIterable.EMPTY;
BitReader dvBbv = getSegment(SegmentType.DISCLOSED_VENDOR);
if (dvBbv != null) {
disclosedVendors = fillVendors(dvBbv, DV_MAX_VENDOR_ID, DV_VENDOR_BITRANGE_FIELD);
}
}
return disclosedVendors;
}
@Override
public IntIterable getPubPurposesLITransparency() {
if (cache.add(PPTC_PUB_PURPOSES_LI_TRANSPARENCY)) {
publisherPurposesLITransparency = BitSetIntIterable.EMPTY;
BitReader dvBbv = getSegment(SegmentType.PUBLISHER_TC);
if (dvBbv != null) {
publisherPurposesLITransparency = fillBitSet(dvBbv, PPTC_PUB_PURPOSES_LI_TRANSPARENCY);
}
}
return publisherPurposesLITransparency;
}
@Override
public IntIterable getCustomPurposesConsent() {
if (cache.add(PPTC_CUSTOM_PURPOSES_CONSENT)) {
customPurposesConsent = BitSetIntIterable.EMPTY;
BitReader dvBbv = getSegment(SegmentType.PUBLISHER_TC);
if (dvBbv != null) {
customPurposesConsent = fillBitSet(dvBbv, PPTC_CUSTOM_PURPOSES_CONSENT);
}
}
return customPurposesConsent;
}
@Override
public IntIterable getCustomPurposesLITransparency() {
if (cache.add(PPTC_CUSTOM_PURPOSES_LI_TRANSPARENCY)) {
customPurposesLITransparency = BitSetIntIterable.EMPTY;
BitReader dvBbv = getSegment(SegmentType.PUBLISHER_TC);
if (dvBbv != null) {
customPurposesLITransparency = fillBitSet(dvBbv, PPTC_CUSTOM_PURPOSES_LI_TRANSPARENCY);
}
}
return customPurposesLITransparency;
}
@Override
public int hashCode() {
return Objects.hash(
getAllowedVendors(),
getConsentLanguage(),
getCmpId(),
getCmpVersion(),
getCreated(),
getLastUpdated(),
getConsentScreen(),
getCustomPurposesConsent(),
getCustomPurposesLITransparency(),
getDisclosedVendors(),
getPurposeOneTreatment(),
isServiceSpecific(),
getTcfPolicyVersion(),
getPublisherCC(),
getPubPurposesConsent(),
getPubPurposesLITransparency(),
getPublisherRestrictions(),
getPurposesConsent(),
getPurposesLITransparency(),
getSpecialFeatureOptIns(),
getUseNonStandardStacks(),
getVendorConsent(),
getVendorLegitimateInterest(),
getVendorListVersion(),
getVersion());
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
TCStringV2 other = (TCStringV2) obj;
return Objects.equals(getAllowedVendors(), other.getAllowedVendors())
&& Objects.equals(getConsentLanguage(), other.getConsentLanguage())
&& getCmpId() == other.getCmpId()
&& getCmpVersion() == other.getCmpVersion()
&& Objects.equals(getCreated(), other.getCreated())
&& Objects.equals(getLastUpdated(), other.getLastUpdated())
&& getConsentScreen() == other.getConsentScreen()
&& Objects.equals(getCustomPurposesConsent(), other.getCustomPurposesConsent())
&& Objects.equals(getCustomPurposesLITransparency(),
other.getCustomPurposesLITransparency())
&& Objects.equals(getDisclosedVendors(), other.getDisclosedVendors())
&& getPurposeOneTreatment() == other.getPurposeOneTreatment()
&& isServiceSpecific() == other.isServiceSpecific()
&& getTcfPolicyVersion() == other.getTcfPolicyVersion()
&& Objects.equals(getPublisherCC(), other.getPublisherCC())
&& Objects.equals(getPubPurposesConsent(), other.getPubPurposesConsent())
&& Objects.equals(getPubPurposesLITransparency(), other.getPubPurposesLITransparency())
&& Objects.equals(getPublisherRestrictions(), other.getPublisherRestrictions())
&& Objects.equals(getPurposesConsent(), other.getPurposesConsent())
&& Objects.equals(getPurposesLITransparency(), other.getPurposesLITransparency())
&& Objects.equals(getSpecialFeatureOptIns(), other.getSpecialFeatureOptIns())
&& getUseNonStandardStacks() == other.getUseNonStandardStacks()
&& Objects.equals(getVendorConsent(), other.getVendorConsent())
&& Objects.equals(getVendorLegitimateInterest(), other.getVendorLegitimateInterest())
&& getVendorListVersion() == other.getVendorListVersion() && getVersion() == other.getVersion();
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("TCStringV2 [getVersion()=");
builder.append(getVersion());
builder.append(", getCreated()=");
builder.append(getCreated());
builder.append(", getLastUpdated()=");
builder.append(getLastUpdated());
builder.append(", getCmpId()=");
builder.append(getCmpId());
builder.append(", getCmpVersion()=");
builder.append(getCmpVersion());
builder.append(", getConsentScreen()=");
builder.append(getConsentScreen());
builder.append(", getConsentLanguage()=");
builder.append(getConsentLanguage());
builder.append(", getVendorListVersion()=");
builder.append(getVendorListVersion());
builder.append(", getTcfPolicyVersion()=");
builder.append(getTcfPolicyVersion());
builder.append(", isServiceSpecific()=");
builder.append(isServiceSpecific());
builder.append(", getUseNonStandardStacks()=");
builder.append(getUseNonStandardStacks());
builder.append(", getSpecialFeatureOptIns()=");
builder.append(getSpecialFeatureOptIns());
builder.append(", getPurposesConsent()=");
builder.append(getPurposesConsent());
builder.append(", getPurposesLITransparency()=");
builder.append(getPurposesLITransparency());
builder.append(", getPurposeOneTreatment()=");
builder.append(getPurposeOneTreatment());
builder.append(", getPublisherCC()=");
builder.append(getPublisherCC());
builder.append(", getVendorConsent()=");
builder.append(getVendorConsent());
builder.append(", getVendorLegitimateInterest()=");
builder.append(getVendorLegitimateInterest());
builder.append(", getPublisherRestrictions()=");
builder.append(getPublisherRestrictions());
builder.append(", getDisclosedVendors()=");
builder.append(getDisclosedVendors());
builder.append(", getAllowedVendors()=");
builder.append(getAllowedVendors());
builder.append(", getPubPurposesConsent()=");
builder.append(getPubPurposesConsent());
builder.append(", getPubPurposesLITransparency()=");
builder.append(getPubPurposesLITransparency());
builder.append(", getCustomPurposesConsent()=");
builder.append(getCustomPurposesConsent());
builder.append(", getCustomPurposesLITransparency()=");
builder.append(getCustomPurposesLITransparency());
builder.append("]");
return builder.toString();
}
}