package com.google.firebase.firestore.proto;

import com.google.protobuf.AbstractC1320n;
import com.google.protobuf.AbstractC1329s;
import com.google.protobuf.B0;
import com.google.protobuf.C1343z;
import com.google.protobuf.G;
import com.google.protobuf.H;
import com.google.protobuf.K;
import com.google.protobuf.L;
import com.google.protobuf.Q0;
import com.google.protobuf.R0;
import java.io.InputStream;
import java.nio.ByteBuffer;

/* JADX INFO: loaded from: classes3.dex */
public final class TargetGlobal extends L implements TargetGlobalOrBuilder {
    private static final TargetGlobal DEFAULT_INSTANCE;
    public static final int HIGHEST_LISTEN_SEQUENCE_NUMBER_FIELD_NUMBER = 2;
    public static final int HIGHEST_TARGET_ID_FIELD_NUMBER = 1;
    public static final int LAST_REMOTE_SNAPSHOT_VERSION_FIELD_NUMBER = 3;
    private static volatile B0 PARSER = null;
    public static final int TARGET_COUNT_FIELD_NUMBER = 4;
    private int bitField0_;
    private long highestListenSequenceNumber_;
    private int highestTargetId_;
    private R0 lastRemoteSnapshotVersion_;
    private int targetCount_;

    /* JADX INFO: renamed from: com.google.firebase.firestore.proto.TargetGlobal$1, reason: invalid class name */
    public static /* synthetic */ class AnonymousClass1 {
        static final /* synthetic */ int[] $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke;

        static {
            int[] iArr = new int[K.values().length];
            $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke = iArr;
            try {
                iArr[3] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[4] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[2] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[5] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[6] = 5;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[0] = 6;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                $SwitchMap$com$google$protobuf$GeneratedMessageLite$MethodToInvoke[1] = 7;
            } catch (NoSuchFieldError unused7) {
            }
        }
    }

    public static final class Builder extends G implements TargetGlobalOrBuilder {
        public /* synthetic */ Builder(AnonymousClass1 anonymousClass1) {
            this();
        }

        public Builder clearHighestListenSequenceNumber() {
            copyOnWrite();
            ((TargetGlobal) this.instance).clearHighestListenSequenceNumber();
            return this;
        }

        public Builder clearHighestTargetId() {
            copyOnWrite();
            ((TargetGlobal) this.instance).clearHighestTargetId();
            return this;
        }

        public Builder clearLastRemoteSnapshotVersion() {
            copyOnWrite();
            ((TargetGlobal) this.instance).clearLastRemoteSnapshotVersion();
            return this;
        }

        public Builder clearTargetCount() {
            copyOnWrite();
            ((TargetGlobal) this.instance).clearTargetCount();
            return this;
        }

        @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
        public long getHighestListenSequenceNumber() {
            return ((TargetGlobal) this.instance).getHighestListenSequenceNumber();
        }

        @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
        public int getHighestTargetId() {
            return ((TargetGlobal) this.instance).getHighestTargetId();
        }

        @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
        public R0 getLastRemoteSnapshotVersion() {
            return ((TargetGlobal) this.instance).getLastRemoteSnapshotVersion();
        }

        @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
        public int getTargetCount() {
            return ((TargetGlobal) this.instance).getTargetCount();
        }

        @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
        public boolean hasLastRemoteSnapshotVersion() {
            return ((TargetGlobal) this.instance).hasLastRemoteSnapshotVersion();
        }

        public Builder mergeLastRemoteSnapshotVersion(R0 r02) {
            copyOnWrite();
            ((TargetGlobal) this.instance).mergeLastRemoteSnapshotVersion(r02);
            return this;
        }

        public Builder setHighestListenSequenceNumber(long j4) {
            copyOnWrite();
            ((TargetGlobal) this.instance).setHighestListenSequenceNumber(j4);
            return this;
        }

        public Builder setHighestTargetId(int i6) {
            copyOnWrite();
            ((TargetGlobal) this.instance).setHighestTargetId(i6);
            return this;
        }

        public Builder setLastRemoteSnapshotVersion(R0 r02) {
            copyOnWrite();
            ((TargetGlobal) this.instance).setLastRemoteSnapshotVersion(r02);
            return this;
        }

        public Builder setTargetCount(int i6) {
            copyOnWrite();
            ((TargetGlobal) this.instance).setTargetCount(i6);
            return this;
        }

        private Builder() {
            super(TargetGlobal.DEFAULT_INSTANCE);
        }

        public Builder setLastRemoteSnapshotVersion(Q0 q02) {
            copyOnWrite();
            ((TargetGlobal) this.instance).setLastRemoteSnapshotVersion((R0) q02.m359build());
            return this;
        }
    }

    static {
        TargetGlobal targetGlobal = new TargetGlobal();
        DEFAULT_INSTANCE = targetGlobal;
        L.registerDefaultInstance(TargetGlobal.class, targetGlobal);
    }

    private TargetGlobal() {
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void clearHighestListenSequenceNumber() {
        this.highestListenSequenceNumber_ = 0L;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void clearHighestTargetId() {
        this.highestTargetId_ = 0;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void clearLastRemoteSnapshotVersion() {
        this.lastRemoteSnapshotVersion_ = null;
        this.bitField0_ &= -2;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void clearTargetCount() {
        this.targetCount_ = 0;
    }

    public static TargetGlobal getDefaultInstance() {
        return DEFAULT_INSTANCE;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void mergeLastRemoteSnapshotVersion(R0 r02) {
        r02.getClass();
        R0 r03 = this.lastRemoteSnapshotVersion_;
        if (r03 == null || r03 == R0.h()) {
            this.lastRemoteSnapshotVersion_ = r02;
        } else {
            this.lastRemoteSnapshotVersion_ = (R0) ((Q0) R0.l(this.lastRemoteSnapshotVersion_).mergeFrom((L) r02)).buildPartial();
        }
        this.bitField0_ |= 1;
    }

    public static Builder newBuilder() {
        return (Builder) DEFAULT_INSTANCE.createBuilder();
    }

    public static TargetGlobal parseDelimitedFrom(InputStream inputStream) {
        return (TargetGlobal) L.parseDelimitedFrom(DEFAULT_INSTANCE, inputStream);
    }

    public static TargetGlobal parseFrom(ByteBuffer byteBuffer) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, byteBuffer);
    }

    public static B0 parser() {
        return DEFAULT_INSTANCE.getParserForType();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void setHighestListenSequenceNumber(long j4) {
        this.highestListenSequenceNumber_ = j4;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void setHighestTargetId(int i6) {
        this.highestTargetId_ = i6;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void setLastRemoteSnapshotVersion(R0 r02) {
        r02.getClass();
        this.lastRemoteSnapshotVersion_ = r02;
        this.bitField0_ |= 1;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public void setTargetCount(int i6) {
        this.targetCount_ = i6;
    }

    @Override // com.google.protobuf.L
    public final Object dynamicMethod(K k6, Object obj, Object obj2) {
        B0 h5;
        AnonymousClass1 anonymousClass1 = null;
        switch (k6.ordinal()) {
            case 0:
                return (byte) 1;
            case 1:
                return null;
            case 2:
                return L.newMessageInfo(DEFAULT_INSTANCE, "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0004\u0002\u0002\u0003ဉ\u0000\u0004\u0004", new Object[]{"bitField0_", "highestTargetId_", "highestListenSequenceNumber_", "lastRemoteSnapshotVersion_", "targetCount_"});
            case 3:
                return new TargetGlobal();
            case 4:
                return new Builder(anonymousClass1);
            case 5:
                return DEFAULT_INSTANCE;
            case 6:
                B0 b02 = PARSER;
                if (b02 != null) {
                    return b02;
                }
                synchronized (TargetGlobal.class) {
                    try {
                        h5 = PARSER;
                        if (h5 == null) {
                            h5 = new H(DEFAULT_INSTANCE);
                            PARSER = h5;
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                    break;
                }
                return h5;
            default:
                throw new UnsupportedOperationException();
        }
    }

    @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
    public long getHighestListenSequenceNumber() {
        return this.highestListenSequenceNumber_;
    }

    @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
    public int getHighestTargetId() {
        return this.highestTargetId_;
    }

    @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
    public R0 getLastRemoteSnapshotVersion() {
        R0 r02 = this.lastRemoteSnapshotVersion_;
        return r02 == null ? R0.h() : r02;
    }

    @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
    public int getTargetCount() {
        return this.targetCount_;
    }

    @Override // com.google.firebase.firestore.proto.TargetGlobalOrBuilder
    public boolean hasLastRemoteSnapshotVersion() {
        return (this.bitField0_ & 1) != 0;
    }

    public static Builder newBuilder(TargetGlobal targetGlobal) {
        return (Builder) DEFAULT_INSTANCE.createBuilder(targetGlobal);
    }

    public static TargetGlobal parseDelimitedFrom(InputStream inputStream, C1343z c1343z) {
        return (TargetGlobal) L.parseDelimitedFrom(DEFAULT_INSTANCE, inputStream, c1343z);
    }

    public static TargetGlobal parseFrom(ByteBuffer byteBuffer, C1343z c1343z) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, byteBuffer, c1343z);
    }

    public static TargetGlobal parseFrom(AbstractC1320n abstractC1320n) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, abstractC1320n);
    }

    public static TargetGlobal parseFrom(AbstractC1320n abstractC1320n, C1343z c1343z) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, abstractC1320n, c1343z);
    }

    public static TargetGlobal parseFrom(byte[] bArr) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, bArr);
    }

    public static TargetGlobal parseFrom(byte[] bArr, C1343z c1343z) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, bArr, c1343z);
    }

    public static TargetGlobal parseFrom(InputStream inputStream) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, inputStream);
    }

    public static TargetGlobal parseFrom(InputStream inputStream, C1343z c1343z) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, inputStream, c1343z);
    }

    public static TargetGlobal parseFrom(AbstractC1329s abstractC1329s) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, abstractC1329s);
    }

    public static TargetGlobal parseFrom(AbstractC1329s abstractC1329s, C1343z c1343z) {
        return (TargetGlobal) L.parseFrom(DEFAULT_INSTANCE, abstractC1329s, c1343z);
    }
}
