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

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

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

        private static volatile MSBalanceAndIndexTrendChartOverview_Response[] _emptyArray;

        private int bitField0_;

        public DataOverview dataOverview;

        private int lastUpdated_;

        public MarginSecuritiesBalanceTrendChartRequest.MSBalanceAndIndexTrendChartOverview_Request request;

        public MarginSecuritiesCommon.MarginTrendChart[] trendChart;

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

            private static volatile DataOverview[] _emptyArray;

            private long balanceOfMarginSecuritiesDOD_;

            private long balanceOfMarginSecurities_;

            private int bitField0_;

            private long marginTradingNetBuyingDOD_;

            private long marginTradingNetBuying_;

            private long securitiesNetSalesDOD_;

            private long securitiesNetSales_;

            public DataOverview() {
                clear();
            }

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

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

            public DataOverview clear() {
                this.bitField0_ = 0;
                this.balanceOfMarginSecurities_ = 0;
                this.marginTradingNetBuying_ = 0;
                this.securitiesNetSales_ = 0;
                this.balanceOfMarginSecuritiesDOD_ = 0;
                this.marginTradingNetBuyingDOD_ = 0;
                this.securitiesNetSalesDOD_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

            public DataOverview clearBalanceOfMarginSecuritiesDOD() {
                this.balanceOfMarginSecuritiesDOD_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            public DataOverview clearMarginTradingNetBuying() {
                this.marginTradingNetBuying_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public DataOverview clearMarginTradingNetBuyingDOD() {
                this.marginTradingNetBuyingDOD_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public DataOverview clearSecuritiesNetSales() {
                this.securitiesNetSales_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public DataOverview clearSecuritiesNetSalesDOD() {
                this.securitiesNetSalesDOD_ = 0;
                this.bitField0_ &= -33;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(1, this.balanceOfMarginSecurities_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.marginTradingNetBuying_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.securitiesNetSales_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(4, this.balanceOfMarginSecuritiesDOD_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(5, this.marginTradingNetBuyingDOD_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(6, this.securitiesNetSalesDOD_);
                }
                return computeSerializedSize;
            }

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

            public long getBalanceOfMarginSecuritiesDOD() {
                return this.balanceOfMarginSecuritiesDOD_;
            }

            public long getMarginTradingNetBuying() {
                return this.marginTradingNetBuying_;
            }

            public long getMarginTradingNetBuyingDOD() {
                return this.marginTradingNetBuyingDOD_;
            }

            public long getSecuritiesNetSales() {
                return this.securitiesNetSales_;
            }

            public long getSecuritiesNetSalesDOD() {
                return this.securitiesNetSalesDOD_;
            }

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

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

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

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

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

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

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

            public DataOverview setBalanceOfMarginSecuritiesDOD(long j10) {
                this.balanceOfMarginSecuritiesDOD_ = j10;
                this.bitField0_ |= 8;
                return this;
            }

            public DataOverview setMarginTradingNetBuying(long j10) {
                this.marginTradingNetBuying_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public DataOverview setMarginTradingNetBuyingDOD(long j10) {
                this.marginTradingNetBuyingDOD_ = j10;
                this.bitField0_ |= 16;
                return this;
            }

            public DataOverview setSecuritiesNetSales(long j10) {
                this.securitiesNetSales_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

            public DataOverview setSecuritiesNetSalesDOD(long j10) {
                this.securitiesNetSalesDOD_ = j10;
                this.bitField0_ |= 32;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(1, this.balanceOfMarginSecurities_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeInt64(2, this.marginTradingNetBuying_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.securitiesNetSales_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeInt64(4, this.balanceOfMarginSecuritiesDOD_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeInt64(5, this.marginTradingNetBuyingDOD_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeInt64(6, this.securitiesNetSalesDOD_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public DataOverview mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.balanceOfMarginSecurities_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.marginTradingNetBuying_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.securitiesNetSales_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.balanceOfMarginSecuritiesDOD_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 8;
                    } else if (readTag == 40) {
                        this.marginTradingNetBuyingDOD_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 16;
                    } else if (readTag == 48) {
                        this.securitiesNetSalesDOD_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 32;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public MSBalanceAndIndexTrendChartOverview_Response() {
            clear();
        }

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

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

        public MSBalanceAndIndexTrendChartOverview_Response clear() {
            this.bitField0_ = 0;
            this.request = null;
            this.trendChart = MarginSecuritiesCommon.MarginTrendChart.emptyArray();
            this.dataOverview = null;
            this.lastUpdated_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public MSBalanceAndIndexTrendChartOverview_Response clearLastUpdated() {
            this.lastUpdated_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            MarginSecuritiesBalanceTrendChartRequest.MSBalanceAndIndexTrendChartOverview_Request mSBalanceAndIndexTrendChartOverview_Request = this.request;
            if (mSBalanceAndIndexTrendChartOverview_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, mSBalanceAndIndexTrendChartOverview_Request);
            }
            MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr = this.trendChart;
            if (marginTrendChartArr != null && marginTrendChartArr.length > 0) {
                int i10 = 0;
                while (true) {
                    MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr2 = this.trendChart;
                    if (i10 >= marginTrendChartArr2.length) {
                        break;
                    }
                    MarginSecuritiesCommon.MarginTrendChart marginTrendChart = marginTrendChartArr2[i10];
                    if (marginTrendChart != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, marginTrendChart);
                    }
                    i10++;
                }
            }
            DataOverview dataOverview2 = this.dataOverview;
            if (dataOverview2 != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, dataOverview2);
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(4, this.lastUpdated_);
            }
            return computeSerializedSize;
        }

        public int getLastUpdated() {
            return this.lastUpdated_;
        }

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

        public MSBalanceAndIndexTrendChartOverview_Response setLastUpdated(int i10) {
            this.lastUpdated_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            MarginSecuritiesBalanceTrendChartRequest.MSBalanceAndIndexTrendChartOverview_Request mSBalanceAndIndexTrendChartOverview_Request = this.request;
            if (mSBalanceAndIndexTrendChartOverview_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, mSBalanceAndIndexTrendChartOverview_Request);
            }
            MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr = this.trendChart;
            if (marginTrendChartArr != null && marginTrendChartArr.length > 0) {
                int i10 = 0;
                while (true) {
                    MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr2 = this.trendChart;
                    if (i10 >= marginTrendChartArr2.length) {
                        break;
                    }
                    MarginSecuritiesCommon.MarginTrendChart marginTrendChart = marginTrendChartArr2[i10];
                    if (marginTrendChart != null) {
                        codedOutputByteBufferNano.writeMessage(2, marginTrendChart);
                    }
                    i10++;
                }
            }
            DataOverview dataOverview2 = this.dataOverview;
            if (dataOverview2 != null) {
                codedOutputByteBufferNano.writeMessage(3, dataOverview2);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.lastUpdated_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public MSBalanceAndIndexTrendChartOverview_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 MarginSecuritiesBalanceTrendChartRequest.MSBalanceAndIndexTrendChartOverview_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.request);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr = this.trendChart;
                    int length = marginTrendChartArr == null ? 0 : marginTrendChartArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr2 = new MarginSecuritiesCommon.MarginTrendChart[i10];
                    if (length != 0) {
                        System.arraycopy(marginTrendChartArr, 0, marginTrendChartArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        MarginSecuritiesCommon.MarginTrendChart marginTrendChart = new MarginSecuritiesCommon.MarginTrendChart();
                        marginTrendChartArr2[length] = marginTrendChart;
                        codedInputByteBufferNano.readMessage(marginTrendChart);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    MarginSecuritiesCommon.MarginTrendChart marginTrendChart2 = new MarginSecuritiesCommon.MarginTrendChart();
                    marginTrendChartArr2[length] = marginTrendChart2;
                    codedInputByteBufferNano.readMessage(marginTrendChart2);
                    this.trendChart = marginTrendChartArr2;
                } else if (readTag == 26) {
                    if (this.dataOverview == null) {
                        this.dataOverview = new DataOverview();
                    }
                    codedInputByteBufferNano.readMessage(this.dataOverview);
                } else if (readTag == 32) {
                    this.lastUpdated_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }

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

        private static volatile MarginSecuritiesBalanceTrendChart_Response[] _emptyArray;

        public DataOverview dataOverview;

        public MarginSecuritiesBalanceTrendChartRequest.MarginSecuritiesBalanceTrendChart_Request request;

        public MarginSecuritiesCommon.MarginTrendChart[] trendChart;

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

            private static volatile DataOverview[] _emptyArray;

            private int bitField0_;

            private long marginTradingNetBuyingDOD_;

            private long marginTradingNetBuying_;

            private long securitiesNetSalesDOD_;

            private long securitiesNetSales_;

            public DataOverview() {
                clear();
            }

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

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

            public DataOverview clear() {
                this.bitField0_ = 0;
                this.marginTradingNetBuying_ = 0;
                this.securitiesNetSales_ = 0;
                this.marginTradingNetBuyingDOD_ = 0;
                this.securitiesNetSalesDOD_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public DataOverview clearMarginTradingNetBuying() {
                this.marginTradingNetBuying_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public DataOverview clearMarginTradingNetBuyingDOD() {
                this.marginTradingNetBuyingDOD_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public DataOverview clearSecuritiesNetSales() {
                this.securitiesNetSales_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public DataOverview clearSecuritiesNetSalesDOD() {
                this.securitiesNetSalesDOD_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(2, this.marginTradingNetBuying_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.securitiesNetSales_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(5, this.marginTradingNetBuyingDOD_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(6, this.securitiesNetSalesDOD_);
                }
                return computeSerializedSize;
            }

            public long getMarginTradingNetBuying() {
                return this.marginTradingNetBuying_;
            }

            public long getMarginTradingNetBuyingDOD() {
                return this.marginTradingNetBuyingDOD_;
            }

            public long getSecuritiesNetSales() {
                return this.securitiesNetSales_;
            }

            public long getSecuritiesNetSalesDOD() {
                return this.securitiesNetSalesDOD_;
            }

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

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

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

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

            public DataOverview setMarginTradingNetBuying(long j10) {
                this.marginTradingNetBuying_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public DataOverview setMarginTradingNetBuyingDOD(long j10) {
                this.marginTradingNetBuyingDOD_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

            public DataOverview setSecuritiesNetSales(long j10) {
                this.securitiesNetSales_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public DataOverview setSecuritiesNetSalesDOD(long j10) {
                this.securitiesNetSalesDOD_ = j10;
                this.bitField0_ |= 8;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(2, this.marginTradingNetBuying_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.securitiesNetSales_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeInt64(5, this.marginTradingNetBuyingDOD_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeInt64(6, this.securitiesNetSalesDOD_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public DataOverview mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 16) {
                        this.marginTradingNetBuying_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 24) {
                        this.securitiesNetSales_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 2;
                    } else if (readTag == 40) {
                        this.marginTradingNetBuyingDOD_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 4;
                    } else if (readTag == 48) {
                        this.securitiesNetSalesDOD_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 8;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public MarginSecuritiesBalanceTrendChart_Response() {
            clear();
        }

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

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

        public MarginSecuritiesBalanceTrendChart_Response clear() {
            this.request = null;
            this.trendChart = MarginSecuritiesCommon.MarginTrendChart.emptyArray();
            this.dataOverview = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            MarginSecuritiesBalanceTrendChartRequest.MarginSecuritiesBalanceTrendChart_Request marginSecuritiesBalanceTrendChart_Request = this.request;
            if (marginSecuritiesBalanceTrendChart_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, marginSecuritiesBalanceTrendChart_Request);
            }
            MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr = this.trendChart;
            if (marginTrendChartArr != null && marginTrendChartArr.length > 0) {
                int i10 = 0;
                while (true) {
                    MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr2 = this.trendChart;
                    if (i10 >= marginTrendChartArr2.length) {
                        break;
                    }
                    MarginSecuritiesCommon.MarginTrendChart marginTrendChart = marginTrendChartArr2[i10];
                    if (marginTrendChart != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, marginTrendChart);
                    }
                    i10++;
                }
            }
            DataOverview dataOverview2 = this.dataOverview;
            if (dataOverview2 != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(3, dataOverview2);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            MarginSecuritiesBalanceTrendChartRequest.MarginSecuritiesBalanceTrendChart_Request marginSecuritiesBalanceTrendChart_Request = this.request;
            if (marginSecuritiesBalanceTrendChart_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, marginSecuritiesBalanceTrendChart_Request);
            }
            MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr = this.trendChart;
            if (marginTrendChartArr != null && marginTrendChartArr.length > 0) {
                int i10 = 0;
                while (true) {
                    MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr2 = this.trendChart;
                    if (i10 >= marginTrendChartArr2.length) {
                        break;
                    }
                    MarginSecuritiesCommon.MarginTrendChart marginTrendChart = marginTrendChartArr2[i10];
                    if (marginTrendChart != null) {
                        codedOutputByteBufferNano.writeMessage(2, marginTrendChart);
                    }
                    i10++;
                }
            }
            DataOverview dataOverview2 = this.dataOverview;
            if (dataOverview2 != null) {
                codedOutputByteBufferNano.writeMessage(3, dataOverview2);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public MarginSecuritiesBalanceTrendChart_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 MarginSecuritiesBalanceTrendChartRequest.MarginSecuritiesBalanceTrendChart_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.request);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr = this.trendChart;
                    int length = marginTrendChartArr == null ? 0 : marginTrendChartArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    MarginSecuritiesCommon.MarginTrendChart[] marginTrendChartArr2 = new MarginSecuritiesCommon.MarginTrendChart[i10];
                    if (length != 0) {
                        System.arraycopy(marginTrendChartArr, 0, marginTrendChartArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        MarginSecuritiesCommon.MarginTrendChart marginTrendChart = new MarginSecuritiesCommon.MarginTrendChart();
                        marginTrendChartArr2[length] = marginTrendChart;
                        codedInputByteBufferNano.readMessage(marginTrendChart);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    MarginSecuritiesCommon.MarginTrendChart marginTrendChart2 = new MarginSecuritiesCommon.MarginTrendChart();
                    marginTrendChartArr2[length] = marginTrendChart2;
                    codedInputByteBufferNano.readMessage(marginTrendChart2);
                    this.trendChart = marginTrendChartArr2;
                } else if (readTag == 26) {
                    if (this.dataOverview == null) {
                        this.dataOverview = new DataOverview();
                    }
                    codedInputByteBufferNano.readMessage(this.dataOverview);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
