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.NorthCommon;
import nano.NorthSeatTrendRequest;

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

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

        private static volatile NorthSeatTrend_Response[] _emptyArray;

        private int bitField0_;

        public NorthCommon.TradeDate[] calendarDate;

        public Data[] dataList;

        public NorthSeatTrendRequest.NorthSeatTrend_Request request;

        private int tradeDate_;

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

            private static volatile Data[] _emptyArray;

            private int bitField0_;

            private long holdMarketValue_;

            private long marketValueChange_;

            private String orgId_;

            private String orgName_;

            public Data() {
                clear();
            }

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

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

            public Data clear() {
                this.bitField0_ = 0;
                this.orgId_ = "";
                this.orgName_ = "";
                this.holdMarketValue_ = 0;
                this.marketValueChange_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public Data clearHoldMarketValue() {
                this.holdMarketValue_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public Data clearMarketValueChange() {
                this.marketValueChange_ = 0;
                this.bitField0_ &= -9;
                return this;
            }

            public Data clearOrgId() {
                this.orgId_ = "";
                this.bitField0_ &= -2;
                return this;
            }

            public Data clearOrgName() {
                this.orgName_ = "";
                this.bitField0_ &= -3;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(1, this.orgId_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.orgName_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt64Size(3, this.holdMarketValue_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(4, this.marketValueChange_);
                }
                return computeSerializedSize;
            }

            public long getHoldMarketValue() {
                return this.holdMarketValue_;
            }

            public long getMarketValueChange() {
                return this.marketValueChange_;
            }

            public String getOrgId() {
                return this.orgId_;
            }

            public String getOrgName() {
                return this.orgName_;
            }

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

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

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

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

            public Data setHoldMarketValue(long j10) {
                this.holdMarketValue_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

            public Data setMarketValueChange(long j10) {
                this.marketValueChange_ = j10;
                this.bitField0_ |= 8;
                return this;
            }

            public Data setOrgId(String str) {
                str.getClass();
                this.orgId_ = str;
                this.bitField0_ |= 1;
                return this;
            }

            public Data setOrgName(String str) {
                str.getClass();
                this.orgName_ = str;
                this.bitField0_ |= 2;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeString(1, this.orgId_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(2, this.orgName_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.holdMarketValue_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeInt64(4, this.marketValueChange_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public Data mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        this.orgId_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        this.orgName_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.holdMarketValue_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 4;
                    } else if (readTag == 32) {
                        this.marketValueChange_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 8;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public NorthSeatTrend_Response() {
            clear();
        }

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

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

        public NorthSeatTrend_Response clear() {
            this.bitField0_ = 0;
            this.request = null;
            this.dataList = Data.emptyArray();
            this.tradeDate_ = 0;
            this.calendarDate = NorthCommon.TradeDate.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        public NorthSeatTrend_Response clearTradeDate() {
            this.tradeDate_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            NorthSeatTrendRequest.NorthSeatTrend_Request northSeatTrend_Request = this.request;
            if (northSeatTrend_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, northSeatTrend_Request);
            }
            Data[] dataArr = this.dataList;
            int i10 = 0;
            if (dataArr != null && dataArr.length > 0) {
                int i11 = 0;
                while (true) {
                    Data[] dataArr2 = this.dataList;
                    if (i11 >= dataArr2.length) {
                        break;
                    }
                    Data data = dataArr2[i11];
                    if (data != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, data);
                    }
                    i11++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.tradeDate_);
            }
            NorthCommon.TradeDate[] tradeDateArr = this.calendarDate;
            if (tradeDateArr != null && tradeDateArr.length > 0) {
                while (true) {
                    NorthCommon.TradeDate[] tradeDateArr2 = this.calendarDate;
                    if (i10 >= tradeDateArr2.length) {
                        break;
                    }
                    NorthCommon.TradeDate tradeDate = tradeDateArr2[i10];
                    if (tradeDate != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, tradeDate);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public int getTradeDate() {
            return this.tradeDate_;
        }

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

        public NorthSeatTrend_Response setTradeDate(int i10) {
            this.tradeDate_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            NorthSeatTrendRequest.NorthSeatTrend_Request northSeatTrend_Request = this.request;
            if (northSeatTrend_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, northSeatTrend_Request);
            }
            Data[] dataArr = this.dataList;
            int i10 = 0;
            if (dataArr != null && dataArr.length > 0) {
                int i11 = 0;
                while (true) {
                    Data[] dataArr2 = this.dataList;
                    if (i11 >= dataArr2.length) {
                        break;
                    }
                    Data data = dataArr2[i11];
                    if (data != null) {
                        codedOutputByteBufferNano.writeMessage(2, data);
                    }
                    i11++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.tradeDate_);
            }
            NorthCommon.TradeDate[] tradeDateArr = this.calendarDate;
            if (tradeDateArr != null && tradeDateArr.length > 0) {
                while (true) {
                    NorthCommon.TradeDate[] tradeDateArr2 = this.calendarDate;
                    if (i10 >= tradeDateArr2.length) {
                        break;
                    }
                    NorthCommon.TradeDate tradeDate = tradeDateArr2[i10];
                    if (tradeDate != null) {
                        codedOutputByteBufferNano.writeMessage(4, tradeDate);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public NorthSeatTrend_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 NorthSeatTrendRequest.NorthSeatTrend_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.request);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    Data[] dataArr = this.dataList;
                    int length = dataArr == null ? 0 : dataArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    Data[] dataArr2 = new Data[i10];
                    if (length != 0) {
                        System.arraycopy(dataArr, 0, dataArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        Data data = new Data();
                        dataArr2[length] = data;
                        codedInputByteBufferNano.readMessage(data);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    Data data2 = new Data();
                    dataArr2[length] = data2;
                    codedInputByteBufferNano.readMessage(data2);
                    this.dataList = dataArr2;
                } else if (readTag == 24) {
                    this.tradeDate_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 34) {
                    int repeatedFieldArrayLength2 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 34);
                    NorthCommon.TradeDate[] tradeDateArr = this.calendarDate;
                    int length2 = tradeDateArr == null ? 0 : tradeDateArr.length;
                    int i11 = repeatedFieldArrayLength2 + length2;
                    NorthCommon.TradeDate[] tradeDateArr2 = new NorthCommon.TradeDate[i11];
                    if (length2 != 0) {
                        System.arraycopy(tradeDateArr, 0, tradeDateArr2, 0, length2);
                    }
                    while (length2 < i11 - 1) {
                        NorthCommon.TradeDate tradeDate = new NorthCommon.TradeDate();
                        tradeDateArr2[length2] = tradeDate;
                        codedInputByteBufferNano.readMessage(tradeDate);
                        codedInputByteBufferNano.readTag();
                        length2++;
                    }
                    NorthCommon.TradeDate tradeDate2 = new NorthCommon.TradeDate();
                    tradeDateArr2[length2] = tradeDate2;
                    codedInputByteBufferNano.readMessage(tradeDate2);
                    this.calendarDate = tradeDateArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
