package nano;

import com.google.protobuf.nano.CodedInputByteBufferNano;
import com.google.protobuf.nano.CodedOutputByteBufferNano;
import com.google.protobuf.nano.InternalNano;
import com.google.protobuf.nano.InvalidProtocolBufferNanoException;
import com.google.protobuf.nano.MessageNano;
import com.google.protobuf.nano.WireFormatNano;
import java.io.IOException;
import nano.GetPortfolioRankRequest;

/* compiled from: TbsSdkJava */
public interface GetPortfolioRankResponse {

    /* compiled from: TbsSdkJava */
    public static final class GetPortfolioRank_Response extends MessageNano {

        private static volatile GetPortfolioRank_Response[] _emptyArray;

        private int bitField0_;

        public RankInfo[] rankList;

        public GetPortfolioRankRequest.GetPortfolioRank_Request requestParams;

        private int totalnum_;

        /* compiled from: TbsSdkJava */
        public static final class RankInfo extends MessageNano {

            private static volatile RankInfo[] _emptyArray;

            private int authorid_;

            private String authorname_;

            private int bitField0_;

            private long createtime_;

            private int dyield_;

            private boolean follows_;

            private int followscount_;

            private int glyield_;

            private int idx_;

            private int idxyield_;

            private boolean likes_;

            private int likescount_;

            private int mktlevel_;

            private int myield_;

            private int pid_;

            private String pimg_;

            private int ptag_;

            private String ptitle_;

            private int ptype_;

            private String riskpartial_;

            private int wyield_;

            public RankInfo() {
                clear();
            }

            public static RankInfo[] emptyArray() {
                if (_emptyArray == null) {
                    synchronized (InternalNano.LAZY_INIT_LOCK) {
                        try {
                            if (_emptyArray == null) {
                                _emptyArray = new RankInfo[0];
                            }
                        } catch (Throwable th) {
                            throw th;
                        }
                    }
                }
                return _emptyArray;
            }

            public static RankInfo parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException {
                return (RankInfo) MessageNano.mergeFrom(new RankInfo(), bArr);
            }

            public RankInfo clear() {
                this.bitField0_ = 0;
                this.idx_ = 0;
                this.ptype_ = 0;
                this.pid_ = 0;
                this.pimg_ = "";
                this.ptitle_ = "";
                this.riskpartial_ = "";
                this.idxyield_ = 0;
                this.glyield_ = 0;
                this.dyield_ = 0;
                this.wyield_ = 0;
                this.myield_ = 0;
                this.mktlevel_ = 0;
                this.createtime_ = 0;
                this.authorid_ = 0;
                this.authorname_ = "";
                this.ptag_ = 0;
                this.followscount_ = 0;
                this.follows_ = false;
                this.likescount_ = 0;
                this.likes_ = false;
                this.cachedSize = -1;
                return this;
            }

            public RankInfo clearAuthorid() {
                this.authorid_ = 0;
                this.bitField0_ &= -8193;
                return this;
            }

            public RankInfo clearAuthorname() {
                this.authorname_ = "";
                this.bitField0_ &= -16385;
                return this;
            }

            public RankInfo clearCreatetime() {
                this.createtime_ = 0;
                this.bitField0_ &= -4097;
                return this;
            }

            public RankInfo clearDyield() {
                this.dyield_ = 0;
                this.bitField0_ &= -257;
                return this;
            }

            public RankInfo clearFollows() {
                this.follows_ = false;
                this.bitField0_ &= -131073;
                return this;
            }

            public RankInfo clearFollowscount() {
                this.followscount_ = 0;
                this.bitField0_ &= -65537;
                return this;
            }

            public RankInfo clearGlyield() {
                this.glyield_ = 0;
                this.bitField0_ &= -129;
                return this;
            }

            public RankInfo clearIdx() {
                this.idx_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public RankInfo clearIdxyield() {
                this.idxyield_ = 0;
                this.bitField0_ &= -65;
                return this;
            }

            public RankInfo clearLikes() {
                this.likes_ = false;
                this.bitField0_ &= -524289;
                return this;
            }

            public RankInfo clearLikescount() {
                this.likescount_ = 0;
                this.bitField0_ &= -262145;
                return this;
            }

            public RankInfo clearMktlevel() {
                this.mktlevel_ = 0;
                this.bitField0_ &= -2049;
                return this;
            }

            public RankInfo clearMyield() {
                this.myield_ = 0;
                this.bitField0_ &= -1025;
                return this;
            }

            public RankInfo clearPid() {
                this.pid_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public RankInfo clearPimg() {
                this.pimg_ = "";
                this.bitField0_ &= -9;
                return this;
            }

            public RankInfo clearPtag() {
                this.ptag_ = 0;
                this.bitField0_ &= -32769;
                return this;
            }

            public RankInfo clearPtitle() {
                this.ptitle_ = "";
                this.bitField0_ &= -17;
                return this;
            }

            public RankInfo clearPtype() {
                this.ptype_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public RankInfo clearRiskpartial() {
                this.riskpartial_ = "";
                this.bitField0_ &= -33;
                return this;
            }

            public RankInfo clearWyield() {
                this.wyield_ = 0;
                this.bitField0_ &= -513;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.idx_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(2, this.ptype_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeFixed32Size(3, this.pid_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(4, this.pimg_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(5, this.ptitle_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(6, this.riskpartial_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(7, this.idxyield_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(8, this.glyield_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(9, this.dyield_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(10, this.wyield_);
                }
                if ((this.bitField0_ & 1024) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(11, this.myield_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(12, this.mktlevel_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(13, this.createtime_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(14, this.authorid_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(15, this.authorname_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(16, this.ptag_);
                }
                if ((this.bitField0_ & 65536) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(17, this.followscount_);
                }
                if ((this.bitField0_ & 131072) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeBoolSize(18, this.follows_);
                }
                if ((this.bitField0_ & 262144) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(19, this.likescount_);
                }
                if ((this.bitField0_ & 524288) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeBoolSize(20, this.likes_);
                }
                return computeSerializedSize;
            }

            public int getAuthorid() {
                return this.authorid_;
            }

            public String getAuthorname() {
                return this.authorname_;
            }

            public long getCreatetime() {
                return this.createtime_;
            }

            public int getDyield() {
                return this.dyield_;
            }

            public boolean getFollows() {
                return this.follows_;
            }

            public int getFollowscount() {
                return this.followscount_;
            }

            public int getGlyield() {
                return this.glyield_;
            }

            public int getIdx() {
                return this.idx_;
            }

            public int getIdxyield() {
                return this.idxyield_;
            }

            public boolean getLikes() {
                return this.likes_;
            }

            public int getLikescount() {
                return this.likescount_;
            }

            public int getMktlevel() {
                return this.mktlevel_;
            }

            public int getMyield() {
                return this.myield_;
            }

            public int getPid() {
                return this.pid_;
            }

            public String getPimg() {
                return this.pimg_;
            }

            public int getPtag() {
                return this.ptag_;
            }

            public String getPtitle() {
                return this.ptitle_;
            }

            public int getPtype() {
                return this.ptype_;
            }

            public String getRiskpartial() {
                return this.riskpartial_;
            }

            public int getWyield() {
                return this.wyield_;
            }

            public boolean hasAuthorid() {
                if ((this.bitField0_ & 8192) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasAuthorname() {
                if ((this.bitField0_ & 16384) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasCreatetime() {
                if ((this.bitField0_ & 4096) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasDyield() {
                if ((this.bitField0_ & 256) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasFollows() {
                if ((this.bitField0_ & 131072) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasFollowscount() {
                if ((this.bitField0_ & 65536) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasGlyield() {
                if ((this.bitField0_ & 128) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasIdx() {
                if ((this.bitField0_ & 1) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasIdxyield() {
                if ((this.bitField0_ & 64) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasLikes() {
                if ((this.bitField0_ & 524288) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasLikescount() {
                if ((this.bitField0_ & 262144) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasMktlevel() {
                if ((this.bitField0_ & 2048) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasMyield() {
                if ((this.bitField0_ & 1024) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasPid() {
                if ((this.bitField0_ & 4) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasPimg() {
                if ((this.bitField0_ & 8) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasPtag() {
                if ((this.bitField0_ & 32768) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasPtitle() {
                if ((this.bitField0_ & 16) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasPtype() {
                if ((this.bitField0_ & 2) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasRiskpartial() {
                if ((this.bitField0_ & 32) != 0) {
                    return true;
                }
                return false;
            }

            public boolean hasWyield() {
                if ((this.bitField0_ & 512) != 0) {
                    return true;
                }
                return false;
            }

            public RankInfo setAuthorid(int i10) {
                this.authorid_ = i10;
                this.bitField0_ |= 8192;
                return this;
            }

            public RankInfo setAuthorname(String str) {
                str.getClass();
                this.authorname_ = str;
                this.bitField0_ |= 16384;
                return this;
            }

            public RankInfo setCreatetime(long j10) {
                this.createtime_ = j10;
                this.bitField0_ |= 4096;
                return this;
            }

            public RankInfo setDyield(int i10) {
                this.dyield_ = i10;
                this.bitField0_ |= 256;
                return this;
            }

            public RankInfo setFollows(boolean z9) {
                this.follows_ = z9;
                this.bitField0_ |= 131072;
                return this;
            }

            public RankInfo setFollowscount(int i10) {
                this.followscount_ = i10;
                this.bitField0_ |= 65536;
                return this;
            }

            public RankInfo setGlyield(int i10) {
                this.glyield_ = i10;
                this.bitField0_ |= 128;
                return this;
            }

            public RankInfo setIdx(int i10) {
                this.idx_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public RankInfo setIdxyield(int i10) {
                this.idxyield_ = i10;
                this.bitField0_ |= 64;
                return this;
            }

            public RankInfo setLikes(boolean z9) {
                this.likes_ = z9;
                this.bitField0_ |= 524288;
                return this;
            }

            public RankInfo setLikescount(int i10) {
                this.likescount_ = i10;
                this.bitField0_ |= 262144;
                return this;
            }

            public RankInfo setMktlevel(int i10) {
                this.mktlevel_ = i10;
                this.bitField0_ |= 2048;
                return this;
            }

            public RankInfo setMyield(int i10) {
                this.myield_ = i10;
                this.bitField0_ |= 1024;
                return this;
            }

            public RankInfo setPid(int i10) {
                this.pid_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public RankInfo setPimg(String str) {
                str.getClass();
                this.pimg_ = str;
                this.bitField0_ |= 8;
                return this;
            }

            public RankInfo setPtag(int i10) {
                this.ptag_ = i10;
                this.bitField0_ |= 32768;
                return this;
            }

            public RankInfo setPtitle(String str) {
                str.getClass();
                this.ptitle_ = str;
                this.bitField0_ |= 16;
                return this;
            }

            public RankInfo setPtype(int i10) {
                this.ptype_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public RankInfo setRiskpartial(String str) {
                str.getClass();
                this.riskpartial_ = str;
                this.bitField0_ |= 32;
                return this;
            }

            public RankInfo setWyield(int i10) {
                this.wyield_ = i10;
                this.bitField0_ |= 512;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.idx_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeInt32(2, this.ptype_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeFixed32(3, this.pid_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeString(4, this.pimg_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeString(5, this.ptitle_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeString(6, this.riskpartial_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeInt32(7, this.idxyield_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    codedOutputByteBufferNano.writeInt32(8, this.glyield_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    codedOutputByteBufferNano.writeInt32(9, this.dyield_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    codedOutputByteBufferNano.writeInt32(10, this.wyield_);
                }
                if ((this.bitField0_ & 1024) != 0) {
                    codedOutputByteBufferNano.writeInt32(11, this.myield_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    codedOutputByteBufferNano.writeUInt32(12, this.mktlevel_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    codedOutputByteBufferNano.writeUInt64(13, this.createtime_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    codedOutputByteBufferNano.writeUInt32(14, this.authorid_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    codedOutputByteBufferNano.writeString(15, this.authorname_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    codedOutputByteBufferNano.writeUInt32(16, this.ptag_);
                }
                if ((this.bitField0_ & 65536) != 0) {
                    codedOutputByteBufferNano.writeUInt32(17, this.followscount_);
                }
                if ((this.bitField0_ & 131072) != 0) {
                    codedOutputByteBufferNano.writeBool(18, this.follows_);
                }
                if ((this.bitField0_ & 262144) != 0) {
                    codedOutputByteBufferNano.writeUInt32(19, this.likescount_);
                }
                if ((this.bitField0_ & 524288) != 0) {
                    codedOutputByteBufferNano.writeBool(20, this.likes_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

            public static RankInfo parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                return new RankInfo().mergeFrom(codedInputByteBufferNano);
            }

            public RankInfo mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    switch(readTag) {
                        case 0:
                            return this;
                        case 8:
                            this.idx_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                            break;
                        case 16:
                            this.ptype_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 2;
                            break;
                        case 29:
                            this.pid_ = codedInputByteBufferNano.readFixed32();
                            this.bitField0_ |= 4;
                            break;
                        case 34:
                            this.pimg_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 8;
                            break;
                        case 42:
                            this.ptitle_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 16;
                            break;
                        case 50:
                            this.riskpartial_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 32;
                            break;
                        case 56:
                            this.idxyield_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 64;
                            break;
                        case 64:
                            this.glyield_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 128;
                            break;
                        case 72:
                            this.dyield_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 256;
                            break;
                        case 80:
                            this.wyield_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 512;
                            break;
                        case 88:
                            this.myield_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 1024;
                            break;
                        case 96:
                            this.mktlevel_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 2048;
                            break;
                        case 104:
                            this.createtime_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 4096;
                            break;
                        case 112:
                            this.authorid_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 8192;
                            break;
                        case 122:
                            this.authorname_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 16384;
                            break;
                        case 128:
                            this.ptag_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 32768;
                            break;
                        case 136:
                            this.followscount_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 65536;
                            break;
                        case 144:
                            this.follows_ = codedInputByteBufferNano.readBool();
                            this.bitField0_ |= 131072;
                            break;
                        case 152:
                            this.likescount_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 262144;
                            break;
                        case 160:
                            this.likes_ = codedInputByteBufferNano.readBool();
                            this.bitField0_ |= 524288;
                            break;
                        default:
                            if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                break;
                            } else {
                                return this;
                            }
                    }
                }
            }
        }

        public GetPortfolioRank_Response() {
            clear();
        }

        public static GetPortfolioRank_Response[] emptyArray() {
            if (_emptyArray == null) {
                synchronized (InternalNano.LAZY_INIT_LOCK) {
                    try {
                        if (_emptyArray == null) {
                            _emptyArray = new GetPortfolioRank_Response[0];
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                }
            }
            return _emptyArray;
        }

        public static GetPortfolioRank_Response parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException {
            return (GetPortfolioRank_Response) MessageNano.mergeFrom(new GetPortfolioRank_Response(), bArr);
        }

        public GetPortfolioRank_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.rankList = RankInfo.emptyArray();
            this.totalnum_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public GetPortfolioRank_Response clearTotalnum() {
            this.totalnum_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            GetPortfolioRankRequest.GetPortfolioRank_Request getPortfolioRank_Request = this.requestParams;
            if (getPortfolioRank_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, getPortfolioRank_Request);
            }
            RankInfo[] rankInfoArr = this.rankList;
            if (rankInfoArr != null && rankInfoArr.length > 0) {
                int i10 = 0;
                while (true) {
                    RankInfo[] rankInfoArr2 = this.rankList;
                    if (i10 >= rankInfoArr2.length) {
                        break;
                    }
                    RankInfo rankInfo = rankInfoArr2[i10];
                    if (rankInfo != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, rankInfo);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.totalnum_);
            }
            return computeSerializedSize;
        }

        public int getTotalnum() {
            return this.totalnum_;
        }

        public boolean hasTotalnum() {
            if ((this.bitField0_ & 1) != 0) {
                return true;
            }
            return false;
        }

        public GetPortfolioRank_Response setTotalnum(int i10) {
            this.totalnum_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            GetPortfolioRankRequest.GetPortfolioRank_Request getPortfolioRank_Request = this.requestParams;
            if (getPortfolioRank_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, getPortfolioRank_Request);
            }
            RankInfo[] rankInfoArr = this.rankList;
            if (rankInfoArr != null && rankInfoArr.length > 0) {
                int i10 = 0;
                while (true) {
                    RankInfo[] rankInfoArr2 = this.rankList;
                    if (i10 >= rankInfoArr2.length) {
                        break;
                    }
                    RankInfo rankInfo = rankInfoArr2[i10];
                    if (rankInfo != null) {
                        codedOutputByteBufferNano.writeMessage(2, rankInfo);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.totalnum_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

        public static GetPortfolioRank_Response parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            return new GetPortfolioRank_Response().mergeFrom(codedInputByteBufferNano);
        }

        public GetPortfolioRank_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParams == null) {
                        this.requestParams = new GetPortfolioRankRequest.GetPortfolioRank_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    RankInfo[] rankInfoArr = this.rankList;
                    int length = rankInfoArr == null ? 0 : rankInfoArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    RankInfo[] rankInfoArr2 = new RankInfo[i10];
                    if (length != 0) {
                        System.arraycopy(rankInfoArr, 0, rankInfoArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        RankInfo rankInfo = new RankInfo();
                        rankInfoArr2[length] = rankInfo;
                        codedInputByteBufferNano.readMessage(rankInfo);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    RankInfo rankInfo2 = new RankInfo();
                    rankInfoArr2[length] = rankInfo2;
                    codedInputByteBufferNano.readMessage(rankInfo2);
                    this.rankList = rankInfoArr2;
                } else if (readTag == 24) {
                    this.totalnum_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
