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.MarginSecuritiesCommon;
import nano.MarginSecuritiesRankRequest;

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

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

        private static volatile MarginSecuritiesRank_Response[] _emptyArray;

        public DataResponse[] data;

        public MarginSecuritiesRankRequest.MarginSecuritiesRank_Request request;

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

            private static volatile BalanceGrowth[] _emptyArray;

            private long balanceOfGrowth_;

            private long balanceOfMarginSecurities_;

            private int bitField0_;

            public MarginSecuritiesCommon.StockInfo stockInfo;

            public BalanceGrowth() {
                clear();
            }

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

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

            public BalanceGrowth clear() {
                this.bitField0_ = 0;
                this.stockInfo = null;
                this.balanceOfMarginSecurities_ = 0;
                this.balanceOfGrowth_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public BalanceGrowth clearBalanceOfGrowth() {
                this.balanceOfGrowth_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public BalanceGrowth clearBalanceOfMarginSecurities() {
                this.balanceOfMarginSecurities_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                MarginSecuritiesCommon.StockInfo stockInfo2 = this.stockInfo;
                if (stockInfo2 != null) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, stockInfo2);
                }
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.balanceOfMarginSecurities_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(3, this.balanceOfGrowth_);
                }
                return computeSerializedSize;
            }

            public long getBalanceOfGrowth() {
                return this.balanceOfGrowth_;
            }

            public long getBalanceOfMarginSecurities() {
                return this.balanceOfMarginSecurities_;
            }

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

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

            public BalanceGrowth setBalanceOfGrowth(long j10) {
                this.balanceOfGrowth_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public BalanceGrowth setBalanceOfMarginSecurities(long j10) {
                this.balanceOfMarginSecurities_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                MarginSecuritiesCommon.StockInfo stockInfo2 = this.stockInfo;
                if (stockInfo2 != null) {
                    codedOutputByteBufferNano.writeMessage(1, stockInfo2);
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(2, this.balanceOfMarginSecurities_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.balanceOfGrowth_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public BalanceGrowth mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        if (this.stockInfo == null) {
                            this.stockInfo = new MarginSecuritiesCommon.StockInfo();
                        }
                        codedInputByteBufferNano.readMessage(this.stockInfo);
                    } else if (readTag == 16) {
                        this.balanceOfMarginSecurities_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 24) {
                        this.balanceOfGrowth_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile DataResponse[] _emptyArray;

            public BalanceGrowth[] balanceGrowth;

            public MarginSecuritiesRankRequest.MarginSecuritiesRank_Request.BusinessType businessType;

            public MarginSecuritiesBalance[] marginSecuritiesBalance;

            public MarginTradingNetBuying[] marginTradingNetBuying;

            public DataResponse() {
                clear();
            }

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

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

            public DataResponse clear() {
                this.businessType = null;
                this.marginTradingNetBuying = MarginTradingNetBuying.emptyArray();
                this.balanceGrowth = BalanceGrowth.emptyArray();
                this.marginSecuritiesBalance = MarginSecuritiesBalance.emptyArray();
                this.cachedSize = -1;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                MarginSecuritiesRankRequest.MarginSecuritiesRank_Request.BusinessType businessType2 = this.businessType;
                if (businessType2 != null) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, businessType2);
                }
                MarginTradingNetBuying[] marginTradingNetBuyingArr = this.marginTradingNetBuying;
                int i10 = 0;
                if (marginTradingNetBuyingArr != null && marginTradingNetBuyingArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        MarginTradingNetBuying[] marginTradingNetBuyingArr2 = this.marginTradingNetBuying;
                        if (i11 >= marginTradingNetBuyingArr2.length) {
                            break;
                        }
                        MarginTradingNetBuying marginTradingNetBuying2 = marginTradingNetBuyingArr2[i11];
                        if (marginTradingNetBuying2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, marginTradingNetBuying2);
                        }
                        i11++;
                    }
                }
                BalanceGrowth[] balanceGrowthArr = this.balanceGrowth;
                if (balanceGrowthArr != null && balanceGrowthArr.length > 0) {
                    int i12 = 0;
                    while (true) {
                        BalanceGrowth[] balanceGrowthArr2 = this.balanceGrowth;
                        if (i12 >= balanceGrowthArr2.length) {
                            break;
                        }
                        BalanceGrowth balanceGrowth2 = balanceGrowthArr2[i12];
                        if (balanceGrowth2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, balanceGrowth2);
                        }
                        i12++;
                    }
                }
                MarginSecuritiesBalance[] marginSecuritiesBalanceArr = this.marginSecuritiesBalance;
                if (marginSecuritiesBalanceArr != null && marginSecuritiesBalanceArr.length > 0) {
                    while (true) {
                        MarginSecuritiesBalance[] marginSecuritiesBalanceArr2 = this.marginSecuritiesBalance;
                        if (i10 >= marginSecuritiesBalanceArr2.length) {
                            break;
                        }
                        MarginSecuritiesBalance marginSecuritiesBalance2 = marginSecuritiesBalanceArr2[i10];
                        if (marginSecuritiesBalance2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, marginSecuritiesBalance2);
                        }
                        i10++;
                    }
                }
                return computeSerializedSize;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                MarginSecuritiesRankRequest.MarginSecuritiesRank_Request.BusinessType businessType2 = this.businessType;
                if (businessType2 != null) {
                    codedOutputByteBufferNano.writeMessage(1, businessType2);
                }
                MarginTradingNetBuying[] marginTradingNetBuyingArr = this.marginTradingNetBuying;
                int i10 = 0;
                if (marginTradingNetBuyingArr != null && marginTradingNetBuyingArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        MarginTradingNetBuying[] marginTradingNetBuyingArr2 = this.marginTradingNetBuying;
                        if (i11 >= marginTradingNetBuyingArr2.length) {
                            break;
                        }
                        MarginTradingNetBuying marginTradingNetBuying2 = marginTradingNetBuyingArr2[i11];
                        if (marginTradingNetBuying2 != null) {
                            codedOutputByteBufferNano.writeMessage(2, marginTradingNetBuying2);
                        }
                        i11++;
                    }
                }
                BalanceGrowth[] balanceGrowthArr = this.balanceGrowth;
                if (balanceGrowthArr != null && balanceGrowthArr.length > 0) {
                    int i12 = 0;
                    while (true) {
                        BalanceGrowth[] balanceGrowthArr2 = this.balanceGrowth;
                        if (i12 >= balanceGrowthArr2.length) {
                            break;
                        }
                        BalanceGrowth balanceGrowth2 = balanceGrowthArr2[i12];
                        if (balanceGrowth2 != null) {
                            codedOutputByteBufferNano.writeMessage(3, balanceGrowth2);
                        }
                        i12++;
                    }
                }
                MarginSecuritiesBalance[] marginSecuritiesBalanceArr = this.marginSecuritiesBalance;
                if (marginSecuritiesBalanceArr != null && marginSecuritiesBalanceArr.length > 0) {
                    while (true) {
                        MarginSecuritiesBalance[] marginSecuritiesBalanceArr2 = this.marginSecuritiesBalance;
                        if (i10 >= marginSecuritiesBalanceArr2.length) {
                            break;
                        }
                        MarginSecuritiesBalance marginSecuritiesBalance2 = marginSecuritiesBalanceArr2[i10];
                        if (marginSecuritiesBalance2 != null) {
                            codedOutputByteBufferNano.writeMessage(4, marginSecuritiesBalance2);
                        }
                        i10++;
                    }
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public DataResponse mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        if (this.businessType == null) {
                            this.businessType = new MarginSecuritiesRankRequest.MarginSecuritiesRank_Request.BusinessType();
                        }
                        codedInputByteBufferNano.readMessage(this.businessType);
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        MarginTradingNetBuying[] marginTradingNetBuyingArr = this.marginTradingNetBuying;
                        int length = marginTradingNetBuyingArr == null ? 0 : marginTradingNetBuyingArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        MarginTradingNetBuying[] marginTradingNetBuyingArr2 = new MarginTradingNetBuying[i10];
                        if (length != 0) {
                            System.arraycopy(marginTradingNetBuyingArr, 0, marginTradingNetBuyingArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            MarginTradingNetBuying marginTradingNetBuying2 = new MarginTradingNetBuying();
                            marginTradingNetBuyingArr2[length] = marginTradingNetBuying2;
                            codedInputByteBufferNano.readMessage(marginTradingNetBuying2);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        MarginTradingNetBuying marginTradingNetBuying3 = new MarginTradingNetBuying();
                        marginTradingNetBuyingArr2[length] = marginTradingNetBuying3;
                        codedInputByteBufferNano.readMessage(marginTradingNetBuying3);
                        this.marginTradingNetBuying = marginTradingNetBuyingArr2;
                    } else if (readTag == 26) {
                        int repeatedFieldArrayLength2 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 26);
                        BalanceGrowth[] balanceGrowthArr = this.balanceGrowth;
                        int length2 = balanceGrowthArr == null ? 0 : balanceGrowthArr.length;
                        int i11 = repeatedFieldArrayLength2 + length2;
                        BalanceGrowth[] balanceGrowthArr2 = new BalanceGrowth[i11];
                        if (length2 != 0) {
                            System.arraycopy(balanceGrowthArr, 0, balanceGrowthArr2, 0, length2);
                        }
                        while (length2 < i11 - 1) {
                            BalanceGrowth balanceGrowth2 = new BalanceGrowth();
                            balanceGrowthArr2[length2] = balanceGrowth2;
                            codedInputByteBufferNano.readMessage(balanceGrowth2);
                            codedInputByteBufferNano.readTag();
                            length2++;
                        }
                        BalanceGrowth balanceGrowth3 = new BalanceGrowth();
                        balanceGrowthArr2[length2] = balanceGrowth3;
                        codedInputByteBufferNano.readMessage(balanceGrowth3);
                        this.balanceGrowth = balanceGrowthArr2;
                    } else if (readTag == 34) {
                        int repeatedFieldArrayLength3 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 34);
                        MarginSecuritiesBalance[] marginSecuritiesBalanceArr = this.marginSecuritiesBalance;
                        int length3 = marginSecuritiesBalanceArr == null ? 0 : marginSecuritiesBalanceArr.length;
                        int i12 = repeatedFieldArrayLength3 + length3;
                        MarginSecuritiesBalance[] marginSecuritiesBalanceArr2 = new MarginSecuritiesBalance[i12];
                        if (length3 != 0) {
                            System.arraycopy(marginSecuritiesBalanceArr, 0, marginSecuritiesBalanceArr2, 0, length3);
                        }
                        while (length3 < i12 - 1) {
                            MarginSecuritiesBalance marginSecuritiesBalance2 = new MarginSecuritiesBalance();
                            marginSecuritiesBalanceArr2[length3] = marginSecuritiesBalance2;
                            codedInputByteBufferNano.readMessage(marginSecuritiesBalance2);
                            codedInputByteBufferNano.readTag();
                            length3++;
                        }
                        MarginSecuritiesBalance marginSecuritiesBalance3 = new MarginSecuritiesBalance();
                        marginSecuritiesBalanceArr2[length3] = marginSecuritiesBalance3;
                        codedInputByteBufferNano.readMessage(marginSecuritiesBalance3);
                        this.marginSecuritiesBalance = marginSecuritiesBalanceArr2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile MarginSecuritiesBalance[] _emptyArray;

            private long balanceOfMarginSecurities_;

            private long balanceOfTradedMarketValue_;

            private int bitField0_;

            public MarginSecuritiesCommon.StockInfo stockInfo;

            public MarginSecuritiesBalance() {
                clear();
            }

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

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

            public MarginSecuritiesBalance clear() {
                this.bitField0_ = 0;
                this.stockInfo = null;
                this.balanceOfMarginSecurities_ = 0;
                this.balanceOfTradedMarketValue_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public MarginSecuritiesBalance clearBalanceOfMarginSecurities() {
                this.balanceOfMarginSecurities_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public MarginSecuritiesBalance clearBalanceOfTradedMarketValue() {
                this.balanceOfTradedMarketValue_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                MarginSecuritiesCommon.StockInfo stockInfo2 = this.stockInfo;
                if (stockInfo2 != null) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, stockInfo2);
                }
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.balanceOfMarginSecurities_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(3, this.balanceOfTradedMarketValue_);
                }
                return computeSerializedSize;
            }

            public long getBalanceOfMarginSecurities() {
                return this.balanceOfMarginSecurities_;
            }

            public long getBalanceOfTradedMarketValue() {
                return this.balanceOfTradedMarketValue_;
            }

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

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

            public MarginSecuritiesBalance setBalanceOfMarginSecurities(long j10) {
                this.balanceOfMarginSecurities_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public MarginSecuritiesBalance setBalanceOfTradedMarketValue(long j10) {
                this.balanceOfTradedMarketValue_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                MarginSecuritiesCommon.StockInfo stockInfo2 = this.stockInfo;
                if (stockInfo2 != null) {
                    codedOutputByteBufferNano.writeMessage(1, stockInfo2);
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(2, this.balanceOfMarginSecurities_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.balanceOfTradedMarketValue_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public MarginSecuritiesBalance mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        if (this.stockInfo == null) {
                            this.stockInfo = new MarginSecuritiesCommon.StockInfo();
                        }
                        codedInputByteBufferNano.readMessage(this.stockInfo);
                    } else if (readTag == 16) {
                        this.balanceOfMarginSecurities_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 24) {
                        this.balanceOfTradedMarketValue_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile MarginTradingNetBuying[] _emptyArray;

            private int bitField0_;

            private long netBuying_;

            private long percentageOfBuying_;

            public MarginSecuritiesCommon.StockInfo stockInfo;

            public MarginTradingNetBuying() {
                clear();
            }

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

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

            public MarginTradingNetBuying clear() {
                this.bitField0_ = 0;
                this.stockInfo = null;
                this.netBuying_ = 0;
                this.percentageOfBuying_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public MarginTradingNetBuying clearNetBuying() {
                this.netBuying_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public MarginTradingNetBuying clearPercentageOfBuying() {
                this.percentageOfBuying_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                MarginSecuritiesCommon.StockInfo stockInfo2 = this.stockInfo;
                if (stockInfo2 != null) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, stockInfo2);
                }
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.netBuying_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(3, this.percentageOfBuying_);
                }
                return computeSerializedSize;
            }

            public long getNetBuying() {
                return this.netBuying_;
            }

            public long getPercentageOfBuying() {
                return this.percentageOfBuying_;
            }

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

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

            public MarginTradingNetBuying setNetBuying(long j10) {
                this.netBuying_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public MarginTradingNetBuying setPercentageOfBuying(long j10) {
                this.percentageOfBuying_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                MarginSecuritiesCommon.StockInfo stockInfo2 = this.stockInfo;
                if (stockInfo2 != null) {
                    codedOutputByteBufferNano.writeMessage(1, stockInfo2);
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(2, this.netBuying_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.percentageOfBuying_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public MarginTradingNetBuying mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        if (this.stockInfo == null) {
                            this.stockInfo = new MarginSecuritiesCommon.StockInfo();
                        }
                        codedInputByteBufferNano.readMessage(this.stockInfo);
                    } else if (readTag == 16) {
                        this.netBuying_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 24) {
                        this.percentageOfBuying_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public MarginSecuritiesRank_Response() {
            clear();
        }

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

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

        public MarginSecuritiesRank_Response clear() {
            this.request = null;
            this.data = DataResponse.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            MarginSecuritiesRankRequest.MarginSecuritiesRank_Request marginSecuritiesRank_Request = this.request;
            if (marginSecuritiesRank_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, marginSecuritiesRank_Request);
            }
            DataResponse[] dataResponseArr = this.data;
            if (dataResponseArr != null && dataResponseArr.length > 0) {
                int i10 = 0;
                while (true) {
                    DataResponse[] dataResponseArr2 = this.data;
                    if (i10 >= dataResponseArr2.length) {
                        break;
                    }
                    DataResponse dataResponse = dataResponseArr2[i10];
                    if (dataResponse != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, dataResponse);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            MarginSecuritiesRankRequest.MarginSecuritiesRank_Request marginSecuritiesRank_Request = this.request;
            if (marginSecuritiesRank_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, marginSecuritiesRank_Request);
            }
            DataResponse[] dataResponseArr = this.data;
            if (dataResponseArr != null && dataResponseArr.length > 0) {
                int i10 = 0;
                while (true) {
                    DataResponse[] dataResponseArr2 = this.data;
                    if (i10 >= dataResponseArr2.length) {
                        break;
                    }
                    DataResponse dataResponse = dataResponseArr2[i10];
                    if (dataResponse != null) {
                        codedOutputByteBufferNano.writeMessage(2, dataResponse);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public MarginSecuritiesRank_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.request == null) {
                        this.request = new MarginSecuritiesRankRequest.MarginSecuritiesRank_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.request);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    DataResponse[] dataResponseArr = this.data;
                    int length = dataResponseArr == null ? 0 : dataResponseArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    DataResponse[] dataResponseArr2 = new DataResponse[i10];
                    if (length != 0) {
                        System.arraycopy(dataResponseArr, 0, dataResponseArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        DataResponse dataResponse = new DataResponse();
                        dataResponseArr2[length] = dataResponse;
                        codedInputByteBufferNano.readMessage(dataResponse);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    DataResponse dataResponse2 = new DataResponse();
                    dataResponseArr2[length] = dataResponse2;
                    codedInputByteBufferNano.readMessage(dataResponse2);
                    this.data = dataResponseArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
