package com.fyber.inneractive.sdk.protobuf; import com.fyber.inneractive.sdk.bidder.TokenParametersOuterClass$TokenParameters; import com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite; import com.fyber.inneractive.sdk.protobuf.a; import com.fyber.inneractive.sdk.protobuf.j; import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.util.AbstractList; import java.util.List; import java.util.RandomAccess; /* loaded from: classes2.dex */ public final class y { public static final Charset a = Charset.forName("UTF-8"); public static final byte[] b; public interface a extends j { } public interface b extends j { } public interface c { int a(); } public interface d { T a(int i); } public interface e { boolean a(); } public interface f extends j { } public interface g extends j { } public static class h extends AbstractList { public final List a; public final a b; public interface a { } public h(g gVar, a aVar) { this.a = gVar; this.b = aVar; } @Override // java.util.AbstractList, java.util.List public final T get(int i) { a aVar = this.b; F f = this.a.get(i); ((TokenParametersOuterClass$TokenParameters.a) aVar).getClass(); T t = (T) TokenParametersOuterClass$TokenParameters.k.a(((Integer) f).intValue()); return t == null ? (T) TokenParametersOuterClass$TokenParameters.k.UNRECOGNIZED : t; } @Override // java.util.AbstractCollection, java.util.Collection, java.util.List public final int size() { return this.a.size(); } } public interface i extends j { } public interface j extends List, RandomAccess { j a(int i); void a(); boolean d(); } static { Charset.forName("ISO-8859-1"); byte[] bArr = new byte[0]; b = bArr; ByteBuffer.wrap(bArr); try { new j.a(bArr, 0, 0, false).d(0); } catch (z e2) { throw new IllegalArgumentException(e2); } } public static int a(long j2) { return (int) (j2 ^ (j2 >>> 32)); } public static T a(T t, String str) { if (t != null) { return t; } throw new NullPointerException(str); } public static String a(byte[] bArr) { return new String(bArr, a); } public static GeneratedMessageLite a(Object obj, Object obj2) { o0 o0Var = (o0) obj2; a.AbstractC0103a abstractC0103a = (a.AbstractC0103a) ((o0) obj).toBuilder(); abstractC0103a.getClass(); GeneratedMessageLite.b bVar = (GeneratedMessageLite.b) abstractC0103a; if (bVar.a.getClass().isInstance(o0Var)) { return bVar.a((GeneratedMessageLite) ((com.fyber.inneractive.sdk.protobuf.a) o0Var)).b(); } throw new IllegalArgumentException("mergeFrom(MessageLite) can only merge messages of the same type."); } }