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

228 lines
7.8 KiB
Java

package com.google.firebase.firestore.proto;
import com.google.protobuf.InvalidProtocolBufferException;
import o.KUw;
import o.SPR;
import o.XgX;
/* loaded from: classes2.dex */
public final class MaybeDocument extends KUw<MaybeDocument, Builder> implements MaybeDocumentOrBuilder {
private static final MaybeDocument DEFAULT_INSTANCE;
public static final int DOCUMENT_FIELD_NUMBER = 2;
public static final int HAS_COMMITTED_MUTATIONS_FIELD_NUMBER = 4;
public static final int NO_DOCUMENT_FIELD_NUMBER = 1;
private static volatile XgX<MaybeDocument> PARSER = null;
public static final int UNKNOWN_DOCUMENT_FIELD_NUMBER = 3;
private int documentTypeCase_ = 0;
private Object documentType_;
private boolean hasCommittedMutations_;
private MaybeDocument() {
}
/* loaded from: classes2.dex */
public enum DocumentTypeCase {
NO_DOCUMENT(1),
DOCUMENT(2),
UNKNOWN_DOCUMENT(3),
DOCUMENTTYPE_NOT_SET(0);
private final int value;
DocumentTypeCase(int i) {
this.value = i;
}
public static DocumentTypeCase forNumber(int i) {
if (i == 0) {
return DOCUMENTTYPE_NOT_SET;
}
if (i == 1) {
return NO_DOCUMENT;
}
if (i == 2) {
return DOCUMENT;
}
if (i != 3) {
return null;
}
return UNKNOWN_DOCUMENT;
}
}
public final DocumentTypeCase getDocumentTypeCase() {
return DocumentTypeCase.forNumber(this.documentTypeCase_);
}
public final NoDocument getNoDocument() {
if (this.documentTypeCase_ == 1) {
return (NoDocument) this.documentType_;
}
return NoDocument.getDefaultInstance();
}
/* JADX INFO: Access modifiers changed from: private */
public void setNoDocument(NoDocument noDocument) {
this.documentType_ = noDocument;
this.documentTypeCase_ = 1;
}
public final SPR getDocument() {
if (this.documentTypeCase_ == 2) {
return (SPR) this.documentType_;
}
return SPR.c();
}
/* JADX INFO: Access modifiers changed from: private */
public void setDocument(SPR spr) {
this.documentType_ = spr;
this.documentTypeCase_ = 2;
}
public final UnknownDocument getUnknownDocument() {
if (this.documentTypeCase_ == 3) {
return (UnknownDocument) this.documentType_;
}
return UnknownDocument.getDefaultInstance();
}
/* JADX INFO: Access modifiers changed from: private */
public void setUnknownDocument(UnknownDocument unknownDocument) {
this.documentType_ = unknownDocument;
this.documentTypeCase_ = 3;
}
public static MaybeDocument parseFrom(byte[] bArr) throws InvalidProtocolBufferException {
return (MaybeDocument) 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<MaybeDocument, Builder> implements MaybeDocumentOrBuilder {
/* synthetic */ Builder(AnonymousClass1 anonymousClass1) {
this();
}
private Builder() {
super(MaybeDocument.DEFAULT_INSTANCE);
}
public final Builder setNoDocument(NoDocument noDocument) {
copyOnWrite();
((MaybeDocument) this.instance).setNoDocument(noDocument);
return this;
}
public final Builder setDocument(SPR spr) {
copyOnWrite();
((MaybeDocument) this.instance).setDocument(spr);
return this;
}
public final Builder setUnknownDocument(UnknownDocument unknownDocument) {
copyOnWrite();
((MaybeDocument) this.instance).setUnknownDocument(unknownDocument);
return this;
}
public final Builder setHasCommittedMutations(boolean z) {
copyOnWrite();
((MaybeDocument) this.instance).setHasCommittedMutations(z);
return this;
}
}
/* renamed from: com.google.firebase.firestore.proto.MaybeDocument$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 MaybeDocument();
case 2:
return new Builder(anonymousClass1);
case 3:
return newMessageInfo(DEFAULT_INSTANCE, "\u0000\u0004\u0001\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001<\u0000\u0002<\u0000\u0003<\u0000\u0004\u0007", new Object[]{"documentType_", "documentTypeCase_", NoDocument.class, SPR.class, UnknownDocument.class, "hasCommittedMutations_"});
case 4:
return DEFAULT_INSTANCE;
case 5:
XgX<MaybeDocument> xgX2 = PARSER;
if (xgX2 != null) {
return xgX2;
}
synchronized (MaybeDocument.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 {
MaybeDocument maybeDocument = new MaybeDocument();
DEFAULT_INSTANCE = maybeDocument;
KUw.registerDefaultInstance(MaybeDocument.class, maybeDocument);
}
public final boolean getHasCommittedMutations() {
return this.hasCommittedMutations_;
}
/* JADX INFO: Access modifiers changed from: private */
public void setHasCommittedMutations(boolean z) {
this.hasCommittedMutations_ = z;
}
}