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.IndexInflowRequest;

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

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

        private static volatile IndexInflow_Response[] _emptyArray;

        public IndexInflowRequest.IndexInflow_Request inputParam;

        public InflowData outputParam;

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

            private static volatile InflowData[] _emptyArray;

            private int bitField0_;

            private int date_;

            public LineData[] line;

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

                private static volatile LineData[] _emptyArray;

                private int bitField0_;

                private long inflow_;

                private int time_;

                public LineData() {
                    clear();
                }

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

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

                public LineData clear() {
                    this.bitField0_ = 0;
                    this.time_ = 0;
                    this.inflow_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

                public LineData clearInflow() {
                    this.inflow_ = 0;
                    this.bitField0_ &= -3;
                    return this;
                }

                public LineData clearTime() {
                    this.time_ = 0;
                    this.bitField0_ &= -2;
                    return this;
                }

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.time_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(2, this.inflow_);
                    }
                    return computeSerializedSize;
                }

                public long getInflow() {
                    return this.inflow_;
                }

                public int getTime() {
                    return this.time_;
                }

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

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

                public LineData setInflow(long j10) {
                    this.inflow_ = j10;
                    this.bitField0_ |= 2;
                    return this;
                }

                public LineData setTime(int i10) {
                    this.time_ = i10;
                    this.bitField0_ |= 1;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeUInt32(1, this.time_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeInt64(2, this.inflow_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public LineData mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 8) {
                            this.time_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                        } else if (readTag == 16) {
                            this.inflow_ = codedInputByteBufferNano.readInt64();
                            this.bitField0_ |= 2;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public InflowData() {
                clear();
            }

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

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

            public InflowData clear() {
                this.bitField0_ = 0;
                this.line = LineData.emptyArray();
                this.date_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public InflowData clearDate() {
                this.date_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                LineData[] lineDataArr = this.line;
                if (lineDataArr != null && lineDataArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        LineData[] lineDataArr2 = this.line;
                        if (i10 >= lineDataArr2.length) {
                            break;
                        }
                        LineData lineData = lineDataArr2[i10];
                        if (lineData != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, lineData);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.date_);
                }
                return computeSerializedSize;
            }

            public int getDate() {
                return this.date_;
            }

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

            public InflowData setDate(int i10) {
                this.date_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                LineData[] lineDataArr = this.line;
                if (lineDataArr != null && lineDataArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        LineData[] lineDataArr2 = this.line;
                        if (i10 >= lineDataArr2.length) {
                            break;
                        }
                        LineData lineData = lineDataArr2[i10];
                        if (lineData != null) {
                            codedOutputByteBufferNano.writeMessage(2, lineData);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.date_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public InflowData mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 18) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        LineData[] lineDataArr = this.line;
                        int length = lineDataArr == null ? 0 : lineDataArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        LineData[] lineDataArr2 = new LineData[i10];
                        if (length != 0) {
                            System.arraycopy(lineDataArr, 0, lineDataArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            LineData lineData = new LineData();
                            lineDataArr2[length] = lineData;
                            codedInputByteBufferNano.readMessage(lineData);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        LineData lineData2 = new LineData();
                        lineDataArr2[length] = lineData2;
                        codedInputByteBufferNano.readMessage(lineData2);
                        this.line = lineDataArr2;
                    } else if (readTag == 24) {
                        this.date_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public IndexInflow_Response() {
            clear();
        }

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

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

        public IndexInflow_Response clear() {
            this.inputParam = null;
            this.outputParam = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            IndexInflowRequest.IndexInflow_Request indexInflow_Request = this.inputParam;
            if (indexInflow_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, indexInflow_Request);
            }
            InflowData inflowData = this.outputParam;
            if (inflowData != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, inflowData);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            IndexInflowRequest.IndexInflow_Request indexInflow_Request = this.inputParam;
            if (indexInflow_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, indexInflow_Request);
            }
            InflowData inflowData = this.outputParam;
            if (inflowData != null) {
                codedOutputByteBufferNano.writeMessage(2, inflowData);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public IndexInflow_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.inputParam == null) {
                        this.inputParam = new IndexInflowRequest.IndexInflow_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.inputParam);
                } else if (readTag == 18) {
                    if (this.outputParam == null) {
                        this.outputParam = new InflowData();
                    }
                    codedInputByteBufferNano.readMessage(this.outputParam);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
