what-the-bank/sources/com/google/firebase/firestore/proto/Target.java

287 lines
9.4 KiB
Java

package com.google.firebase.firestore.proto;
import com.google.protobuf.InvalidProtocolBufferException;
import o.AQX;
import o.KUw;
import o.QwV;
import o.XgX;
import o.ksi;
/* loaded from: classes2.dex */
public final class Target extends KUw<Target, Builder> implements TargetOrBuilder {
private static final Target DEFAULT_INSTANCE;
public static final int DOCUMENTS_FIELD_NUMBER = 6;
public static final int LAST_LIMBO_FREE_SNAPSHOT_VERSION_FIELD_NUMBER = 7;
public static final int LAST_LISTEN_SEQUENCE_NUMBER_FIELD_NUMBER = 4;
private static volatile XgX<Target> PARSER = null;
public static final int QUERY_FIELD_NUMBER = 5;
public static final int RESUME_TOKEN_FIELD_NUMBER = 3;
public static final int SNAPSHOT_VERSION_FIELD_NUMBER = 2;
public static final int TARGET_ID_FIELD_NUMBER = 1;
private AQX lastLimboFreeSnapshotVersion_;
private long lastListenSequenceNumber_;
private AQX snapshotVersion_;
private int targetId_;
private Object targetType_;
private int targetTypeCase_ = 0;
private QwV resumeToken_ = QwV.a;
private Target() {
}
/* loaded from: classes2.dex */
public enum TargetTypeCase {
QUERY(5),
DOCUMENTS(6),
TARGETTYPE_NOT_SET(0);
private final int value;
TargetTypeCase(int i) {
this.value = i;
}
public static TargetTypeCase forNumber(int i) {
if (i == 0) {
return TARGETTYPE_NOT_SET;
}
if (i == 5) {
return QUERY;
}
if (i != 6) {
return null;
}
return DOCUMENTS;
}
}
public final TargetTypeCase getTargetTypeCase() {
return TargetTypeCase.forNumber(this.targetTypeCase_);
}
public final AQX getSnapshotVersion() {
AQX aqx = this.snapshotVersion_;
return aqx == null ? AQX.c() : aqx;
}
/* JADX INFO: Access modifiers changed from: private */
public void setSnapshotVersion(AQX aqx) {
this.snapshotVersion_ = aqx;
}
/* JADX INFO: Access modifiers changed from: private */
public void setResumeToken(QwV qwV) {
this.resumeToken_ = qwV;
}
public final ksi.Sts getQuery() {
if (this.targetTypeCase_ == 5) {
return (ksi.Sts) this.targetType_;
}
return ksi.Sts.c();
}
/* JADX INFO: Access modifiers changed from: private */
public void setQuery(ksi.Sts sts) {
this.targetType_ = sts;
this.targetTypeCase_ = 5;
}
public final ksi.RVV getDocuments() {
if (this.targetTypeCase_ == 6) {
return (ksi.RVV) this.targetType_;
}
return ksi.RVV.d();
}
/* JADX INFO: Access modifiers changed from: private */
public void setDocuments(ksi.RVV rvv) {
this.targetType_ = rvv;
this.targetTypeCase_ = 6;
}
public final AQX getLastLimboFreeSnapshotVersion() {
AQX aqx = this.lastLimboFreeSnapshotVersion_;
return aqx == null ? AQX.c() : aqx;
}
/* JADX INFO: Access modifiers changed from: private */
public void setLastLimboFreeSnapshotVersion(AQX aqx) {
this.lastLimboFreeSnapshotVersion_ = aqx;
}
public static Target parseFrom(byte[] bArr) throws InvalidProtocolBufferException {
return (Target) KUw.parseFrom(DEFAULT_INSTANCE, bArr);
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.createBuilder();
}
/* loaded from: classes2.dex */
public static final class Builder extends KUw.LWm<Target, Builder> implements TargetOrBuilder {
/* synthetic */ Builder(AnonymousClass1 anonymousClass1) {
this();
}
private Builder() {
super(Target.DEFAULT_INSTANCE);
}
public final Builder setTargetId(int i) {
copyOnWrite();
((Target) this.instance).setTargetId(i);
return this;
}
public final Builder setSnapshotVersion(AQX aqx) {
copyOnWrite();
((Target) this.instance).setSnapshotVersion(aqx);
return this;
}
public final Builder setResumeToken(QwV qwV) {
copyOnWrite();
((Target) this.instance).setResumeToken(qwV);
return this;
}
public final Builder setLastListenSequenceNumber(long j) {
copyOnWrite();
((Target) this.instance).setLastListenSequenceNumber(j);
return this;
}
public final Builder setQuery(ksi.Sts sts) {
copyOnWrite();
((Target) this.instance).setQuery(sts);
return this;
}
public final Builder setDocuments(ksi.RVV rvv) {
copyOnWrite();
((Target) this.instance).setDocuments(rvv);
return this;
}
public final Builder setLastLimboFreeSnapshotVersion(AQX aqx) {
copyOnWrite();
((Target) this.instance).setLastLimboFreeSnapshotVersion(aqx);
return this;
}
public final Builder clearLastLimboFreeSnapshotVersion() {
copyOnWrite();
((Target) this.instance).clearLastLimboFreeSnapshotVersion();
return this;
}
}
/* renamed from: com.google.firebase.firestore.proto.Target$1, reason: invalid class name */
/* loaded from: classes2.dex */
static /* synthetic */ class AnonymousClass1 {
static final int[] $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke;
static {
int[] iArr = new int[KUw.ojQ.values().length];
$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke = iArr;
try {
iArr[KUw.ojQ.NEW_MUTABLE_INSTANCE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[KUw.ojQ.NEW_BUILDER.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[KUw.ojQ.BUILD_MESSAGE_INFO.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[KUw.ojQ.GET_DEFAULT_INSTANCE.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[KUw.ojQ.GET_PARSER.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[KUw.ojQ.GET_MEMOIZED_IS_INITIALIZED.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[KUw.ojQ.SET_MEMOIZED_IS_INITIALIZED.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
}
}
@Override // o.KUw
public final Object dynamicMethod(KUw.ojQ ojq, Object obj, Object obj2) {
XgX xgX;
AnonymousClass1 anonymousClass1 = null;
switch (AnonymousClass1.$SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[ojq.ordinal()]) {
case 1:
return new Target();
case 2:
return new Builder(anonymousClass1);
case 3:
return newMessageInfo(DEFAULT_INSTANCE, "\u0000\u0007\u0001\u0000\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0004\u0002\t\u0003\n\u0004\u0002\u0005<\u0000\u0006<\u0000\u0007\t", new Object[]{"targetType_", "targetTypeCase_", "targetId_", "snapshotVersion_", "resumeToken_", "lastListenSequenceNumber_", ksi.Sts.class, ksi.RVV.class, "lastLimboFreeSnapshotVersion_"});
case 4:
return DEFAULT_INSTANCE;
case 5:
XgX<Target> xgX2 = PARSER;
if (xgX2 != null) {
return xgX2;
}
synchronized (Target.class) {
xgX = PARSER;
if (xgX == null) {
xgX = new KUw.HBt(DEFAULT_INSTANCE);
PARSER = xgX;
}
}
return xgX;
case 6:
return (byte) 1;
case 7:
return null;
default:
throw new UnsupportedOperationException();
}
}
static {
Target target = new Target();
DEFAULT_INSTANCE = target;
KUw.registerDefaultInstance(Target.class, target);
}
public final int getTargetId() {
return this.targetId_;
}
public final QwV getResumeToken() {
return this.resumeToken_;
}
public final long getLastListenSequenceNumber() {
return this.lastListenSequenceNumber_;
}
/* JADX INFO: Access modifiers changed from: private */
public void setTargetId(int i) {
this.targetId_ = i;
}
/* JADX INFO: Access modifiers changed from: private */
public void setLastListenSequenceNumber(long j) {
this.lastListenSequenceNumber_ = j;
}
/* JADX INFO: Access modifiers changed from: private */
public void clearLastLimboFreeSnapshotVersion() {
this.lastLimboFreeSnapshotVersion_ = null;
}
}