package com.tencent.mm.protocal.protobuf;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.jsapi.q.d;
import com.tencent.ttpic.baseutils.ApiHelper$VERSION_CODES;
import e.a.a.c.a;
import java.util.LinkedList;

public final class ao extends btd {
    public String color;
    public String content;
    public String kbU;
    public LinkedList<ap> kcO = new LinkedList();
    public LinkedList<aq> kcP = new LinkedList();
    public String kcQ;
    public int kcR;
    public String kcS;
    public String kcT;
    public String kcU;
    public String kcV;
    public String vBE;
    public String vBF;
    public String vBG;
    public String vBH;
    public String vBI;
    public String vBJ;
    public String vBK;
    public String vBL;
    public String vBM;
    public String vBN;
    public String vBO;
    public String vBP;
    public boolean vBQ = false;
    public int vBR;
    public int vBS;
    public int vBT;
    public String vBU;
    public String vBV;
    public int vBW;
    public String vBX;
    public String vBY;
    public String vBZ;
    public String vCa;
    public String vCb;
    public String vCc;
    public String vCd;
    public String vCe;

    public ao() {
        AppMethodBeat.i(88999);
        AppMethodBeat.o(88999);
    }

    public final int op(int i, Object... objArr) {
        AppMethodBeat.i(89000);
        int ix;
        byte[] bArr;
        if (i == 0) {
            a aVar = (a) objArr[0];
            if (this.BaseResponse != null) {
                aVar.iy(1, this.BaseResponse.computeSize());
                this.BaseResponse.writeFields(aVar);
            }
            if (this.vBE != null) {
                aVar.e(2, this.vBE);
            }
            if (this.vBF != null) {
                aVar.e(3, this.vBF);
            }
            if (this.vBG != null) {
                aVar.e(4, this.vBG);
            }
            if (this.content != null) {
                aVar.e(5, this.content);
            }
            if (this.vBH != null) {
                aVar.e(6, this.vBH);
            }
            if (this.vBI != null) {
                aVar.e(7, this.vBI);
            }
            if (this.vBJ != null) {
                aVar.e(8, this.vBJ);
            }
            if (this.vBK != null) {
                aVar.e(9, this.vBK);
            }
            if (this.vBL != null) {
                aVar.e(10, this.vBL);
            }
            if (this.vBM != null) {
                aVar.e(11, this.vBM);
            }
            if (this.vBN != null) {
                aVar.e(12, this.vBN);
            }
            if (this.vBO != null) {
                aVar.e(13, this.vBO);
            }
            if (this.kcU != null) {
                aVar.e(14, this.kcU);
            }
            if (this.kcV != null) {
                aVar.e(15, this.kcV);
            }
            if (this.vBP != null) {
                aVar.e(16, this.vBP);
            }
            aVar.aO(17, this.vBQ);
            aVar.iz(18, this.vBR);
            aVar.iz(19, this.vBS);
            aVar.iz(20, this.vBT);
            if (this.color != null) {
                aVar.e(21, this.color);
            }
            if (this.vBU != null) {
                aVar.e(22, this.vBU);
            }
            if (this.vBV != null) {
                aVar.e(23, this.vBV);
            }
            aVar.iz(24, this.vBW);
            if (this.vBX != null) {
                aVar.e(25, this.vBX);
            }
            if (this.vBY != null) {
                aVar.e(26, this.vBY);
            }
            if (this.vBZ != null) {
                aVar.e(27, this.vBZ);
            }
            if (this.vCa != null) {
                aVar.e(28, this.vCa);
            }
            if (this.vCb != null) {
                aVar.e(29, this.vCb);
            }
            if (this.vCc != null) {
                aVar.e(30, this.vCc);
            }
            if (this.vCd != null) {
                aVar.e(31, this.vCd);
            }
            if (this.kbU != null) {
                aVar.e(32, this.kbU);
            }
            if (this.vCe != null) {
                aVar.e(33, this.vCe);
            }
            aVar.e(34, 8, this.kcO);
            aVar.e(35, 8, this.kcP);
            if (this.kcQ != null) {
                aVar.e(36, this.kcQ);
            }
            aVar.iz(37, this.kcR);
            if (this.kcS != null) {
                aVar.e(38, this.kcS);
            }
            if (this.kcT != null) {
                aVar.e(39, this.kcT);
            }
            AppMethodBeat.o(89000);
            return 0;
        } else if (i == 1) {
            if (this.BaseResponse != null) {
                ix = e.a.a.a.ix(1, this.BaseResponse.computeSize()) + 0;
            } else {
                ix = 0;
            }
            if (this.vBE != null) {
                ix += e.a.a.b.b.a.f(2, this.vBE);
            }
            if (this.vBF != null) {
                ix += e.a.a.b.b.a.f(3, this.vBF);
            }
            if (this.vBG != null) {
                ix += e.a.a.b.b.a.f(4, this.vBG);
            }
            if (this.content != null) {
                ix += e.a.a.b.b.a.f(5, this.content);
            }
            if (this.vBH != null) {
                ix += e.a.a.b.b.a.f(6, this.vBH);
            }
            if (this.vBI != null) {
                ix += e.a.a.b.b.a.f(7, this.vBI);
            }
            if (this.vBJ != null) {
                ix += e.a.a.b.b.a.f(8, this.vBJ);
            }
            if (this.vBK != null) {
                ix += e.a.a.b.b.a.f(9, this.vBK);
            }
            if (this.vBL != null) {
                ix += e.a.a.b.b.a.f(10, this.vBL);
            }
            if (this.vBM != null) {
                ix += e.a.a.b.b.a.f(11, this.vBM);
            }
            if (this.vBN != null) {
                ix += e.a.a.b.b.a.f(12, this.vBN);
            }
            if (this.vBO != null) {
                ix += e.a.a.b.b.a.f(13, this.vBO);
            }
            if (this.kcU != null) {
                ix += e.a.a.b.b.a.f(14, this.kcU);
            }
            if (this.kcV != null) {
                ix += e.a.a.b.b.a.f(15, this.kcV);
            }
            if (this.vBP != null) {
                ix += e.a.a.b.b.a.f(16, this.vBP);
            }
            ix = (((ix + (e.a.a.b.b.a.fv(17) + 1)) + e.a.a.b.b.a.bs(18, this.vBR)) + e.a.a.b.b.a.bs(19, this.vBS)) + e.a.a.b.b.a.bs(20, this.vBT);
            if (this.color != null) {
                ix += e.a.a.b.b.a.f(21, this.color);
            }
            if (this.vBU != null) {
                ix += e.a.a.b.b.a.f(22, this.vBU);
            }
            if (this.vBV != null) {
                ix += e.a.a.b.b.a.f(23, this.vBV);
            }
            ix += e.a.a.b.b.a.bs(24, this.vBW);
            if (this.vBX != null) {
                ix += e.a.a.b.b.a.f(25, this.vBX);
            }
            if (this.vBY != null) {
                ix += e.a.a.b.b.a.f(26, this.vBY);
            }
            if (this.vBZ != null) {
                ix += e.a.a.b.b.a.f(27, this.vBZ);
            }
            if (this.vCa != null) {
                ix += e.a.a.b.b.a.f(28, this.vCa);
            }
            if (this.vCb != null) {
                ix += e.a.a.b.b.a.f(29, this.vCb);
            }
            if (this.vCc != null) {
                ix += e.a.a.b.b.a.f(30, this.vCc);
            }
            if (this.vCd != null) {
                ix += e.a.a.b.b.a.f(31, this.vCd);
            }
            if (this.kbU != null) {
                ix += e.a.a.b.b.a.f(32, this.kbU);
            }
            if (this.vCe != null) {
                ix += e.a.a.b.b.a.f(33, this.vCe);
            }
            ix = (ix + e.a.a.a.c(34, 8, this.kcO)) + e.a.a.a.c(35, 8, this.kcP);
            if (this.kcQ != null) {
                ix += e.a.a.b.b.a.f(36, this.kcQ);
            }
            ix += e.a.a.b.b.a.bs(37, this.kcR);
            if (this.kcS != null) {
                ix += e.a.a.b.b.a.f(38, this.kcS);
            }
            if (this.kcT != null) {
                ix += e.a.a.b.b.a.f(39, this.kcT);
            }
            AppMethodBeat.o(89000);
            return ix;
        } else if (i == 2) {
            bArr = (byte[]) objArr[0];
            this.kcO.clear();
            this.kcP.clear();
            e.a.a.a.a aVar2 = new e.a.a.a.a(bArr, unknownTagHandler);
            for (ix = btd.getNextFieldNumber(aVar2); ix > 0; ix = btd.getNextFieldNumber(aVar2)) {
                if (!super.populateBuilderWithField(aVar2, this, ix)) {
                    aVar2.ems();
                }
            }
            AppMethodBeat.o(89000);
            return 0;
        } else if (i == 3) {
            e.a.a.a.a aVar3 = (e.a.a.a.a) objArr[0];
            ao aoVar = (ao) objArr[1];
            int intValue = ((Integer) objArr[2]).intValue();
            LinkedList Vh;
            int size;
            e.a.a.a.a aVar4;
            boolean z;
            switch (intValue) {
                case 1:
                    Vh = aVar3.Vh(intValue);
                    size = Vh.size();
                    for (intValue = 0; intValue < size; intValue++) {
                        bArr = (byte[]) Vh.get(intValue);
                        BaseResponse baseResponse = new BaseResponse();
                        aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
                        for (z = true; z; z = baseResponse.populateBuilderWithField(aVar4, baseResponse, btd.getNextFieldNumber(aVar4))) {
                        }
                        aoVar.BaseResponse = baseResponse;
                    }
                    AppMethodBeat.o(89000);
                    return 0;
                case 2:
                    aoVar.vBE = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 3:
                    aoVar.vBF = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 4:
                    aoVar.vBG = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 5:
                    aoVar.content = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 6:
                    aoVar.vBH = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 7:
                    aoVar.vBI = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 8:
                    aoVar.vBJ = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 9:
                    aoVar.vBK = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 10:
                    aoVar.vBL = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 11:
                    aoVar.vBM = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.HONEYCOMB_MR1 /*12*/:
                    aoVar.vBN = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.HONEYCOMB_MR2 /*13*/:
                    aoVar.vBO = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.ICE_CREAM_SANDWICH /*14*/:
                    aoVar.kcU = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.ICE_CREAM_SANDWICH_MR1 /*15*/:
                    aoVar.kcV = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.JELLY_BEAN /*16*/:
                    aoVar.vBP = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.JELLY_BEAN_MR1 /*17*/:
                    aoVar.vBQ = aVar3.BTU.ehX();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.JELLY_BEAN_MR2 /*18*/:
                    aoVar.vBR = aVar3.BTU.vd();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.KITKAT /*19*/:
                    aoVar.vBS = aVar3.BTU.vd();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.KITKAT_WATCH /*20*/:
                    aoVar.vBT = aVar3.BTU.vd();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.LOLLIPOP /*21*/:
                    aoVar.color = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.LOLLIPOP_MR1 /*22*/:
                    aoVar.vBU = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 23:
                    aoVar.vBV = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.NOUGAT /*24*/:
                    aoVar.vBW = aVar3.BTU.vd();
                    AppMethodBeat.o(89000);
                    return 0;
                case 25:
                    aoVar.vBX = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.O /*26*/:
                    aoVar.vBY = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case ApiHelper$VERSION_CODES.O_MR1 /*27*/:
                    aoVar.vBZ = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 28:
                    aoVar.vCa = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 29:
                    aoVar.vCb = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 30:
                    aoVar.vCc = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 31:
                    aoVar.vCd = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 32:
                    aoVar.kbU = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 33:
                    aoVar.vCe = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 34:
                    Vh = aVar3.Vh(intValue);
                    size = Vh.size();
                    for (intValue = 0; intValue < size; intValue++) {
                        bArr = (byte[]) Vh.get(intValue);
                        ap apVar = new ap();
                        aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
                        for (z = true; z; z = apVar.populateBuilderWithField(aVar4, apVar, btd.getNextFieldNumber(aVar4))) {
                        }
                        aoVar.kcO.add(apVar);
                    }
                    AppMethodBeat.o(89000);
                    return 0;
                case 35:
                    Vh = aVar3.Vh(intValue);
                    size = Vh.size();
                    for (intValue = 0; intValue < size; intValue++) {
                        bArr = (byte[]) Vh.get(intValue);
                        aq aqVar = new aq();
                        aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
                        for (z = true; z; z = aqVar.populateBuilderWithField(aVar4, aqVar, btd.getNextFieldNumber(aVar4))) {
                        }
                        aoVar.kcP.add(aqVar);
                    }
                    AppMethodBeat.o(89000);
                    return 0;
                case 36:
                    aoVar.kcQ = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case 37:
                    aoVar.kcR = aVar3.BTU.vd();
                    AppMethodBeat.o(89000);
                    return 0;
                case 38:
                    aoVar.kcS = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                case d.CTRL_INDEX /*39*/:
                    aoVar.kcT = aVar3.BTU.readString();
                    AppMethodBeat.o(89000);
                    return 0;
                default:
                    AppMethodBeat.o(89000);
                    return -1;
            }
        } else {
            AppMethodBeat.o(89000);
            return -1;
        }
    }
}
