624 lines
19 KiB
Java
624 lines
19 KiB
Java
package o;
|
|
|
|
import com.google.protobuf.CodedOutputStream;
|
|
import java.io.IOException;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.RandomAccess;
|
|
import o.MTP;
|
|
import o.Rkw;
|
|
import o.rqb;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes2.dex */
|
|
public final class jDR {
|
|
private static final Class<?> a = e();
|
|
private static final Hjq<?, ?> e = e(false);
|
|
private static final Hjq<?, ?> c = e(true);
|
|
private static final Hjq<?, ?> d = new GHc();
|
|
|
|
public static void a(Class<?> cls) {
|
|
Class<?> cls2;
|
|
if (!KUw.class.isAssignableFrom(cls) && (cls2 = a) != null && !cls2.isAssignableFrom(cls)) {
|
|
throw new IllegalArgumentException("Message classes must extend GeneratedMessageV3 or GeneratedMessageLite");
|
|
}
|
|
}
|
|
|
|
public static void b(int i, List<Double> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.b(i, list, z);
|
|
}
|
|
|
|
public static void j(int i, List<Float> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.g(i, list, z);
|
|
}
|
|
|
|
public static void f(int i, List<Long> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.f(i, list, z);
|
|
}
|
|
|
|
public static void m(int i, List<Long> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.m(i, list, z);
|
|
}
|
|
|
|
public static void n(int i, List<Long> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.o(i, list, z);
|
|
}
|
|
|
|
public static void d(int i, List<Long> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.e(i, list, z);
|
|
}
|
|
|
|
public static void i(int i, List<Long> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.j(i, list, z);
|
|
}
|
|
|
|
public static void h(int i, List<Integer> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.h(i, list, z);
|
|
}
|
|
|
|
public static void l(int i, List<Integer> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.n(i, list, z);
|
|
}
|
|
|
|
public static void o(int i, List<Integer> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.l(i, list, z);
|
|
}
|
|
|
|
public static void c(int i, List<Integer> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.a(i, list, z);
|
|
}
|
|
|
|
public static void g(int i, List<Integer> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.i(i, list, z);
|
|
}
|
|
|
|
public static void a(int i, List<Integer> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.d(i, list, z);
|
|
}
|
|
|
|
public static void e(int i, List<Boolean> list, InterfaceC16095lEl interfaceC16095lEl, boolean z) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.c(i, list, z);
|
|
}
|
|
|
|
public static void b(int i, List<String> list, InterfaceC16095lEl interfaceC16095lEl) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.e(i, list);
|
|
}
|
|
|
|
public static void e(int i, List<QwV> list, InterfaceC16095lEl interfaceC16095lEl) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.c(i, list);
|
|
}
|
|
|
|
public static void c(int i, List<?> list, InterfaceC16095lEl interfaceC16095lEl, Wnq wnq) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.b(i, list, wnq);
|
|
}
|
|
|
|
public static void a(int i, List<?> list, InterfaceC16095lEl interfaceC16095lEl, Wnq wnq) throws IOException {
|
|
if (list == null || list.isEmpty()) {
|
|
return;
|
|
}
|
|
interfaceC16095lEl.a(i, list, wnq);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int j(List<Long> list) {
|
|
int size = list.size();
|
|
int i = 0;
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
if (list instanceof C15673heO) {
|
|
C15673heO c15673heO = (C15673heO) list;
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
c15673heO.d(i2);
|
|
i += CodedOutputStream.b(c15673heO.d[i2]);
|
|
}
|
|
} else {
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
i += CodedOutputStream.b(list.get(i3).longValue());
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int h(int i, List<Long> list) {
|
|
if (list.size() == 0) {
|
|
return 0;
|
|
}
|
|
return j(list) + (list.size() * CodedOutputStream.o(i));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int g(List<Long> list) {
|
|
int size = list.size();
|
|
int i = 0;
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
if (list instanceof C15673heO) {
|
|
C15673heO c15673heO = (C15673heO) list;
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
c15673heO.d(i2);
|
|
i += CodedOutputStream.d(c15673heO.d[i2]);
|
|
}
|
|
} else {
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
i += CodedOutputStream.d(list.get(i3).longValue());
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int m(int i, List<Long> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return g(list) + (size * CodedOutputStream.o(i));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int h(List<Long> list) {
|
|
int size = list.size();
|
|
int i = 0;
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
if (list instanceof C15673heO) {
|
|
C15673heO c15673heO = (C15673heO) list;
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
c15673heO.d(i2);
|
|
i += CodedOutputStream.c(c15673heO.d[i2]);
|
|
}
|
|
} else {
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
i += CodedOutputStream.c(list.get(i3).longValue());
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int j(int i, List<Long> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return h(list) + (size * CodedOutputStream.o(i));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int d(List<Integer> list) {
|
|
int size = list.size();
|
|
int i = 0;
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
if (list instanceof Rjv) {
|
|
Rjv rjv = (Rjv) list;
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
rjv.c(i2);
|
|
i += CodedOutputStream.c(rjv.a[i2]);
|
|
}
|
|
} else {
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
i += CodedOutputStream.c(list.get(i3).intValue());
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int a(int i, List<Integer> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return d(list) + (size * CodedOutputStream.o(i));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int e(List<Integer> list) {
|
|
int size = list.size();
|
|
int i = 0;
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
if (list instanceof Rjv) {
|
|
Rjv rjv = (Rjv) list;
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
rjv.c(i2);
|
|
i += CodedOutputStream.g(rjv.a[i2]);
|
|
}
|
|
} else {
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
i += CodedOutputStream.g(list.get(i3).intValue());
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int i(int i, List<Integer> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return e(list) + (size * CodedOutputStream.o(i));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int f(List<Integer> list) {
|
|
int size = list.size();
|
|
int i = 0;
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
if (list instanceof Rjv) {
|
|
Rjv rjv = (Rjv) list;
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
rjv.c(i2);
|
|
i += CodedOutputStream.k(rjv.a[i2]);
|
|
}
|
|
} else {
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
i += CodedOutputStream.k(list.get(i3).intValue());
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int k(int i, List<Integer> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return f(list) + (size * CodedOutputStream.o(i));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int i(List<Integer> list) {
|
|
int size = list.size();
|
|
int i = 0;
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
if (list instanceof Rjv) {
|
|
Rjv rjv = (Rjv) list;
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
rjv.c(i2);
|
|
i += CodedOutputStream.m(rjv.a[i2]);
|
|
}
|
|
} else {
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
i += CodedOutputStream.m(list.get(i3).intValue());
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int g(int i, List<Integer> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return i(list) + (size * CodedOutputStream.o(i));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int a(List<?> list) {
|
|
return list.size() << 2;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int e(int i, List<?> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return size * CodedOutputStream.e(i);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int b(List<?> list) {
|
|
return list.size() << 3;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int b(int i, List<?> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return size * CodedOutputStream.d(i);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int c(List<?> list) {
|
|
return list.size();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int d(int i, List<?> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
return size * CodedOutputStream.a(i);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int f(int i, List<?> list) {
|
|
int d2;
|
|
int d3;
|
|
int size = list.size();
|
|
int i2 = 0;
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
int o2 = CodedOutputStream.o(i) * size;
|
|
if (list instanceof VWY) {
|
|
VWY vwy = (VWY) list;
|
|
while (i2 < size) {
|
|
Object c2 = vwy.c(i2);
|
|
if (c2 instanceof QwV) {
|
|
d3 = CodedOutputStream.b((QwV) c2);
|
|
} else {
|
|
d3 = CodedOutputStream.d((String) c2);
|
|
}
|
|
o2 += d3;
|
|
i2++;
|
|
}
|
|
} else {
|
|
while (i2 < size) {
|
|
Object obj = list.get(i2);
|
|
if (obj instanceof QwV) {
|
|
d2 = CodedOutputStream.b((QwV) obj);
|
|
} else {
|
|
d2 = CodedOutputStream.d((String) obj);
|
|
}
|
|
o2 += d2;
|
|
i2++;
|
|
}
|
|
}
|
|
return o2;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int a(int i, Object obj, Wnq wnq) {
|
|
if (obj instanceof XYy) {
|
|
return CodedOutputStream.c(i, (XYy) obj);
|
|
}
|
|
return CodedOutputStream.b(i, (InterfaceC16581pUl) obj, wnq);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int d(int i, List<?> list, Wnq wnq) {
|
|
int a2;
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
int o2 = CodedOutputStream.o(i) * size;
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
Object obj = list.get(i2);
|
|
if (obj instanceof XYy) {
|
|
a2 = CodedOutputStream.d((XYy) obj);
|
|
} else {
|
|
a2 = CodedOutputStream.a((InterfaceC16581pUl) obj, wnq);
|
|
}
|
|
o2 += a2;
|
|
}
|
|
return o2;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int c(int i, List<QwV> list) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
int o2 = size * CodedOutputStream.o(i);
|
|
for (int i2 = 0; i2 < list.size(); i2++) {
|
|
o2 += CodedOutputStream.b(list.get(i2));
|
|
}
|
|
return o2;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static int a(int i, List<InterfaceC16581pUl> list, Wnq wnq) {
|
|
int size = list.size();
|
|
if (size == 0) {
|
|
return 0;
|
|
}
|
|
int i2 = 0;
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
i2 += CodedOutputStream.d(i, list.get(i3), wnq);
|
|
}
|
|
return i2;
|
|
}
|
|
|
|
private static Hjq<?, ?> e(boolean z) {
|
|
try {
|
|
Class<?> d2 = d();
|
|
if (d2 == null) {
|
|
return null;
|
|
}
|
|
return (Hjq) d2.getConstructor(Boolean.TYPE).newInstance(Boolean.valueOf(z));
|
|
} catch (Throwable unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
private static Class<?> e() {
|
|
try {
|
|
return Class.forName("com.google.protobuf.GeneratedMessageV3");
|
|
} catch (Throwable unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
private static Class<?> d() {
|
|
try {
|
|
return Class.forName("com.google.protobuf.UnknownFieldSetSchema");
|
|
} catch (Throwable unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static boolean b(Object obj, Object obj2) {
|
|
return obj == obj2 || (obj != null && obj.equals(obj2));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T> void d(IIk iIk, T t, T t2, long j) {
|
|
vqr.e(t, j, iIk.b(vqr.j(t, j), vqr.j(t2, j)));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T, FT extends Rkw.Sts<FT>> void c(SSy<FT> sSy, T t, T t2) {
|
|
Iterable entrySet;
|
|
Rkw<FT> a2 = sSy.a(t2);
|
|
if (a2.c.isEmpty()) {
|
|
return;
|
|
}
|
|
Rkw<FT> d2 = sSy.d(t);
|
|
for (int i = 0; i < a2.c.e.size(); i++) {
|
|
d2.a(a2.c.e.get(i));
|
|
}
|
|
rqb<FT, Object> rqbVar = a2.c;
|
|
if (rqbVar.b.isEmpty()) {
|
|
entrySet = rqb.HBt.c();
|
|
} else {
|
|
entrySet = rqbVar.b.entrySet();
|
|
}
|
|
Iterator<T> it = entrySet.iterator();
|
|
while (it.hasNext()) {
|
|
d2.a((Map.Entry) it.next());
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <T, UT, UB> void a(Hjq<UT, UB> hjq, T t, T t2) {
|
|
hjq.b(t, hjq.d(hjq.d(t), hjq.d(t2)));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <UT, UB> UB a(int i, List<Integer> list, MTP.LWm lWm, UB ub, Hjq<UT, UB> hjq) {
|
|
if (lWm == null) {
|
|
return ub;
|
|
}
|
|
if (list instanceof RandomAccess) {
|
|
int size = list.size();
|
|
int i2 = 0;
|
|
for (int i3 = 0; i3 < size; i3++) {
|
|
int intValue = list.get(i3).intValue();
|
|
if (lWm.b()) {
|
|
if (i3 != i2) {
|
|
list.set(i2, Integer.valueOf(intValue));
|
|
}
|
|
i2++;
|
|
} else {
|
|
if (ub == null) {
|
|
ub = hjq.e();
|
|
}
|
|
hjq.d((Hjq<UT, UB>) ub, i, intValue);
|
|
}
|
|
}
|
|
if (i2 != size) {
|
|
list.subList(i2, size).clear();
|
|
}
|
|
} else {
|
|
Iterator<Integer> it = list.iterator();
|
|
while (it.hasNext()) {
|
|
int intValue2 = it.next().intValue();
|
|
if (!lWm.b()) {
|
|
if (ub == null) {
|
|
ub = hjq.e();
|
|
}
|
|
hjq.d((Hjq<UT, UB>) ub, i, intValue2);
|
|
it.remove();
|
|
}
|
|
}
|
|
}
|
|
return ub;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static <UT, UB> UB d(int i, int i2, UB ub, Hjq<UT, UB> hjq) {
|
|
if (ub == null) {
|
|
ub = hjq.e();
|
|
}
|
|
hjq.d((Hjq<UT, UB>) ub, i, i2);
|
|
return ub;
|
|
}
|
|
|
|
public static Hjq<?, ?> a() {
|
|
return d;
|
|
}
|
|
|
|
public static Hjq<?, ?> c() {
|
|
return c;
|
|
}
|
|
|
|
public static Hjq<?, ?> b() {
|
|
return e;
|
|
}
|
|
}
|