discord-jadx/app/src/main/java/c/i/a/f/h/l/u4.java

325 lines
10 KiB
Java

package c.i.a.f.h.l;
import c.i.a.f.h.l.u4;
import c.i.a.f.h.l.u4.b;
import com.google.android.gms.internal.measurement.zzhi;
import com.google.android.gms.internal.measurement.zzij;
import com.google.android.gms.internal.measurement.zzkq;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public abstract class u4<MessageType extends u4<MessageType, BuilderType>, BuilderType extends b<MessageType, BuilderType>> extends l3<MessageType, BuilderType> {
private static Map<Object, u4<?, ?>> zzd = new ConcurrentHashMap();
public c7 zzb = c7.a;
private int zzc = -1;
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public static class a<T extends u4<T, ?>> extends p3<T> {
public a(T t) {
}
}
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public static abstract class b<MessageType extends u4<MessageType, BuilderType>, BuilderType extends b<MessageType, BuilderType>> extends n3<MessageType, BuilderType> {
public final MessageType i;
public MessageType j;
public boolean k = false;
public b(MessageType messagetype) {
this.i = messagetype;
this.j = (MessageType) ((u4) messagetype.p(4, null, null));
}
/* JADX DEBUG: Multi-variable search result rejected for r0v2, resolved type: c.i.a.f.h.l.u4$b */
/* JADX WARN: Multi-variable type inference failed */
@Override // java.lang.Object
public /* synthetic */ Object clone() throws CloneNotSupportedException {
b bVar = (b) this.i.p(5, null, null);
bVar.l((u4) o());
return bVar;
}
@Override // c.i.a.f.h.l.d6
public final /* synthetic */ c6 k() {
return this.i;
}
public final BuilderType l(MessageType messagetype) {
if (this.k) {
n();
this.k = false;
}
MessageType messagetype2 = this.j;
n6.a.b(messagetype2).i(messagetype2, messagetype);
return this;
}
/* JADX WARN: Incorrect args count in method signature: ([BIILc/i/a/f/h/l/h4;)TBuilderType; */
public final b m(byte[] bArr, int i, h4 h4Var) throws zzij {
if (this.k) {
n();
this.k = false;
}
try {
n6.a.b(this.j).h(this.j, bArr, 0, i, new s3(h4Var));
return this;
} catch (zzij e) {
throw e;
} catch (IndexOutOfBoundsException unused) {
throw zzij.a();
} catch (IOException e2) {
throw new RuntimeException("Reading from byte array should not throw IOException.", e2);
}
}
public void n() {
MessageType messagetype = (MessageType) ((u4) this.j.p(4, null, null));
n6.a.b(messagetype).i(messagetype, this.j);
this.j = messagetype;
}
public c6 o() {
if (this.k) {
return this.j;
}
MessageType messagetype = this.j;
n6.a.b(messagetype).d(messagetype);
this.k = true;
return this.j;
}
public c6 p() {
u4 u4Var = (u4) o();
if (u4Var.j()) {
return u4Var;
}
throw new zzkq();
}
}
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public static final class c implements p4<c> {
@Override // c.i.a.f.h.l.p4
public final b6 W(b6 b6Var, c6 c6Var) {
throw new NoSuchMethodError();
}
@Override // c.i.a.f.h.l.p4
public final int a() {
throw new NoSuchMethodError();
}
@Override // c.i.a.f.h.l.p4
public final p7 b() {
throw new NoSuchMethodError();
}
@Override // c.i.a.f.h.l.p4
public final f6 b0(f6 f6Var, f6 f6Var2) {
throw new NoSuchMethodError();
}
@Override // c.i.a.f.h.l.p4
public final w7 c() {
throw new NoSuchMethodError();
}
@Override // java.lang.Comparable
public final /* synthetic */ int compareTo(Object obj) {
throw new NoSuchMethodError();
}
@Override // c.i.a.f.h.l.p4
public final boolean d() {
throw new NoSuchMethodError();
}
@Override // c.i.a.f.h.l.p4
public final boolean e() {
throw new NoSuchMethodError();
}
}
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public static abstract class d<MessageType extends d<MessageType, BuilderType>, BuilderType> extends u4<MessageType, BuilderType> implements d6 {
public n4<c> zzc = n4.a;
public final n4<c> u() {
n4<c> n4Var = this.zzc;
if (n4Var.f1096c) {
this.zzc = (n4) n4Var.clone();
}
return this.zzc;
}
}
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
/* JADX INFO: Failed to restore enum class, 'enum' modifier removed */
public static final class e {
public static final /* synthetic */ int[] a = {1, 2, 3, 4, 5, 6, 7};
public static int[] a() {
return (int[]) a.clone();
}
}
/* compiled from: com.google.android.gms:play-services-measurement-base@@18.0.0 */
public static class f<ContainingType extends c6, Type> extends i4<ContainingType, Type> {
}
public static <T extends u4<?, ?>> T m(Class<T> cls) {
u4<?, ?> u4Var = zzd.get(cls);
if (u4Var == null) {
try {
Class.forName(cls.getName(), true, cls.getClassLoader());
u4Var = (T) zzd.get(cls);
} catch (ClassNotFoundException e2) {
throw new IllegalStateException("Class initialization cannot fail.", e2);
}
}
if (u4Var == null) {
u4Var = (T) ((u4) ((u4) j7.c(cls)).p(6, null, null));
if (u4Var != null) {
zzd.put(cls, u4Var);
} else {
throw new IllegalStateException();
}
}
return (T) u4Var;
}
public static <E> b5<E> n(b5<E> b5Var) {
int size = b5Var.size();
return b5Var.f(size == 0 ? 10 : size << 1);
}
public static c5 o(c5 c5Var) {
int i = ((q5) c5Var).l;
return ((q5) c5Var).f(i == 0 ? 10 : i << 1);
}
public static Object q(Method method, Object obj, Object... objArr) {
try {
return method.invoke(obj, objArr);
} catch (IllegalAccessException e2) {
throw new RuntimeException("Couldn't use Java reflection to implement protocol message reflection.", e2);
} catch (InvocationTargetException e3) {
Throwable cause = e3.getCause();
if (cause instanceof RuntimeException) {
throw ((RuntimeException) cause);
} else if (cause instanceof Error) {
throw ((Error) cause);
} else {
throw new RuntimeException("Unexpected exception thrown by generated accessor method.", cause);
}
}
}
public static <T extends u4<?, ?>> void r(Class<T> cls, T t) {
zzd.put(cls, t);
}
@Override // c.i.a.f.h.l.l3
public final int e() {
return this.zzc;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj != null && getClass() == obj.getClass()) {
return n6.a.b(this).f(this, (u4) obj);
}
return false;
}
@Override // c.i.a.f.h.l.c6
public final /* synthetic */ b6 f() {
b bVar = (b) p(5, null, null);
bVar.l(this);
return bVar;
}
@Override // c.i.a.f.h.l.c6
public final int g() {
if (this.zzc == -1) {
this.zzc = n6.a.b(this).e(this);
}
return this.zzc;
}
@Override // c.i.a.f.h.l.c6
public final /* synthetic */ b6 h() {
return (b) p(5, null, null);
}
public int hashCode() {
int i = this.zza;
if (i != 0) {
return i;
}
int b2 = n6.a.b(this).b(this);
this.zza = b2;
return b2;
}
@Override // c.i.a.f.h.l.c6
public final void i(zzhi zzhi) throws IOException {
q6 b2 = n6.a.b(this);
g4 g4Var = zzhi.f2290c;
if (g4Var == null) {
g4Var = new g4(zzhi);
}
b2.g(this, g4Var);
}
@Override // c.i.a.f.h.l.d6
public final boolean j() {
byte byteValue = ((Byte) p(1, null, null)).byteValue();
if (byteValue == 1) {
return true;
}
if (byteValue == 0) {
return false;
}
boolean c2 = n6.a.b(this).c(this);
p(2, c2 ? this : null, null);
return c2;
}
@Override // c.i.a.f.h.l.d6
public final /* synthetic */ c6 k() {
return (u4) p(6, null, null);
}
@Override // c.i.a.f.h.l.l3
public final void l(int i) {
this.zzc = i;
}
public abstract Object p(int i, Object obj, Object obj2);
public final <MessageType extends u4<MessageType, BuilderType>, BuilderType extends b<MessageType, BuilderType>> BuilderType s() {
return (BuilderType) ((b) p(5, null, null));
}
public final BuilderType t() {
BuilderType buildertype = (BuilderType) ((b) p(5, null, null));
buildertype.l(this);
return buildertype;
}
public String toString() {
String obj = super.toString();
StringBuilder sb = new StringBuilder();
sb.append("# ");
sb.append(obj);
c.i.a.f.e.o.c.P0(this, sb, 0);
return sb.toString();
}
}