80 lines
2.6 KiB
Java
80 lines
2.6 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.crypto.tink.shaded.protobuf.CodedOutputStream;
|
||
|
import java.io.IOException;
|
||
|
import o.AbstractC16771rBp;
|
||
|
import o.AbstractC16771rBp.RVV;
|
||
|
import o.jra;
|
||
|
import o.vAr;
|
||
|
|
||
|
/* renamed from: o.rBp, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class AbstractC16771rBp<MessageType extends AbstractC16771rBp<MessageType, BuilderType>, BuilderType extends RVV<MessageType, BuilderType>> implements vAr {
|
||
|
protected int memoizedHashCode = 0;
|
||
|
|
||
|
@Override // o.vAr
|
||
|
public final jra j() {
|
||
|
try {
|
||
|
jra.ZqN e = jra.e(n());
|
||
|
b(e.c);
|
||
|
if (e.c.j() == 0) {
|
||
|
return new jra.tOB(e.e);
|
||
|
}
|
||
|
throw new IllegalStateException("Did not write as much data as expected.");
|
||
|
} catch (IOException e2) {
|
||
|
throw new RuntimeException(b("ByteString"), e2);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.vAr
|
||
|
public final byte[] h() {
|
||
|
try {
|
||
|
byte[] bArr = new byte[n()];
|
||
|
CodedOutputStream b = CodedOutputStream.b(bArr);
|
||
|
b(b);
|
||
|
if (b.j() == 0) {
|
||
|
return bArr;
|
||
|
}
|
||
|
throw new IllegalStateException("Did not write as much data as expected.");
|
||
|
} catch (IOException e) {
|
||
|
throw new RuntimeException(b("byte array"), e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public int i() {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
public void b(int i) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
private String b(String str) {
|
||
|
StringBuilder sb = new StringBuilder("Serializing ");
|
||
|
sb.append(getClass().getName());
|
||
|
sb.append(" to a ");
|
||
|
sb.append(str);
|
||
|
sb.append(" threw an IOException (should never happen).");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.rBp$RVV */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static abstract class RVV<MessageType extends AbstractC16771rBp<MessageType, BuilderType>, BuilderType extends RVV<MessageType, BuilderType>> implements vAr.Sts {
|
||
|
@Override //
|
||
|
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
||
|
public abstract BuilderType clone();
|
||
|
|
||
|
protected abstract BuilderType c(MessageType messagetype);
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // o.vAr.Sts
|
||
|
public final /* synthetic */ vAr.Sts a(vAr var) {
|
||
|
if (!o().getClass().isInstance(var)) {
|
||
|
throw new IllegalArgumentException("mergeFrom(MessageLite) can only merge messages of the same type.");
|
||
|
}
|
||
|
return c((AbstractC16771rBp) var);
|
||
|
}
|
||
|
}
|
||
|
}
|