- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
114 lines
5.1 KiB
Java
114 lines
5.1 KiB
Java
package com.vungle.ads.internal.model;
|
|
|
|
import com.vungle.ads.internal.model.CommonRequestBody;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlinx.serialization.KSerializer;
|
|
import kotlinx.serialization.UnknownFieldException;
|
|
import kotlinx.serialization.descriptors.SerialDescriptor;
|
|
import kotlinx.serialization.encoding.CompositeDecoder;
|
|
import kotlinx.serialization.encoding.CompositeEncoder;
|
|
import kotlinx.serialization.encoding.Decoder;
|
|
import kotlinx.serialization.encoding.Encoder;
|
|
import kotlinx.serialization.internal.GeneratedSerializer;
|
|
import kotlinx.serialization.internal.LongSerializer;
|
|
import kotlinx.serialization.internal.PluginGeneratedSerialDescriptor;
|
|
import kotlinx.serialization.internal.StringSerializer;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class CommonRequestBody$GDPR$$serializer implements GeneratedSerializer<CommonRequestBody.GDPR> {
|
|
public static final CommonRequestBody$GDPR$$serializer INSTANCE;
|
|
public static final /* synthetic */ SerialDescriptor descriptor;
|
|
|
|
public SerialDescriptor getDescriptor() {
|
|
return descriptor;
|
|
}
|
|
|
|
static {
|
|
CommonRequestBody$GDPR$$serializer commonRequestBody$GDPR$$serializer = new CommonRequestBody$GDPR$$serializer();
|
|
INSTANCE = commonRequestBody$GDPR$$serializer;
|
|
SerialDescriptor pluginGeneratedSerialDescriptor = new PluginGeneratedSerialDescriptor("com.vungle.ads.internal.model.CommonRequestBody.GDPR", commonRequestBody$GDPR$$serializer, 4);
|
|
pluginGeneratedSerialDescriptor.addElement("consent_status", false);
|
|
pluginGeneratedSerialDescriptor.addElement("consent_source", false);
|
|
pluginGeneratedSerialDescriptor.addElement("consent_timestamp", false);
|
|
pluginGeneratedSerialDescriptor.addElement("consent_message_version", false);
|
|
descriptor = pluginGeneratedSerialDescriptor;
|
|
}
|
|
|
|
private CommonRequestBody$GDPR$$serializer() {
|
|
}
|
|
|
|
public KSerializer<?>[] childSerializers() {
|
|
return new KSerializer[]{(KSerializer) StringSerializer.INSTANCE, (KSerializer) StringSerializer.INSTANCE, (KSerializer) LongSerializer.INSTANCE, (KSerializer) StringSerializer.INSTANCE};
|
|
}
|
|
|
|
/* renamed from: deserialize, reason: merged with bridge method [inline-methods] */
|
|
public CommonRequestBody.GDPR m3919deserialize(Decoder decoder) {
|
|
String str;
|
|
String str2;
|
|
int i;
|
|
String str3;
|
|
long j;
|
|
Intrinsics.checkNotNullParameter(decoder, "decoder");
|
|
SerialDescriptor descriptor2 = getDescriptor();
|
|
CompositeDecoder beginStructure = decoder.beginStructure(descriptor2);
|
|
if (beginStructure.decodeSequentially()) {
|
|
String decodeStringElement = beginStructure.decodeStringElement(descriptor2, 0);
|
|
String decodeStringElement2 = beginStructure.decodeStringElement(descriptor2, 1);
|
|
long decodeLongElement = beginStructure.decodeLongElement(descriptor2, 2);
|
|
str = decodeStringElement;
|
|
str2 = beginStructure.decodeStringElement(descriptor2, 3);
|
|
i = 15;
|
|
str3 = decodeStringElement2;
|
|
j = decodeLongElement;
|
|
} else {
|
|
String str4 = null;
|
|
String str5 = null;
|
|
boolean z = true;
|
|
long j2 = 0;
|
|
String str6 = null;
|
|
int i2 = 0;
|
|
while (z) {
|
|
int decodeElementIndex = beginStructure.decodeElementIndex(descriptor2);
|
|
if (decodeElementIndex == -1) {
|
|
z = false;
|
|
} else if (decodeElementIndex == 0) {
|
|
str4 = beginStructure.decodeStringElement(descriptor2, 0);
|
|
i2 |= 1;
|
|
} else if (decodeElementIndex == 1) {
|
|
str5 = beginStructure.decodeStringElement(descriptor2, 1);
|
|
i2 |= 2;
|
|
} else if (decodeElementIndex == 2) {
|
|
j2 = beginStructure.decodeLongElement(descriptor2, 2);
|
|
i2 |= 4;
|
|
} else {
|
|
if (decodeElementIndex != 3) {
|
|
throw new UnknownFieldException(decodeElementIndex);
|
|
}
|
|
str6 = beginStructure.decodeStringElement(descriptor2, 3);
|
|
i2 |= 8;
|
|
}
|
|
}
|
|
str = str4;
|
|
str2 = str6;
|
|
i = i2;
|
|
str3 = str5;
|
|
j = j2;
|
|
}
|
|
beginStructure.endStructure(descriptor2);
|
|
return new CommonRequestBody.GDPR(i, str, str3, j, str2, null);
|
|
}
|
|
|
|
public void serialize(Encoder encoder, CommonRequestBody.GDPR value) {
|
|
Intrinsics.checkNotNullParameter(encoder, "encoder");
|
|
Intrinsics.checkNotNullParameter(value, "value");
|
|
SerialDescriptor descriptor2 = getDescriptor();
|
|
CompositeEncoder beginStructure = encoder.beginStructure(descriptor2);
|
|
CommonRequestBody.GDPR.write$Self(value, beginStructure, descriptor2);
|
|
beginStructure.endStructure(descriptor2);
|
|
}
|
|
|
|
public KSerializer<?>[] typeParametersSerializers() {
|
|
return GeneratedSerializer.DefaultImpls.typeParametersSerializers(this);
|
|
}
|
|
}
|