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

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

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

        private static volatile FROverviewList_Request[] _emptyArray;

        public DateRange dateRange;

        public SortedListRequest.SortedList_Request request;

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

            private static volatile DateRange[] _emptyArray;

            private int bitField0_;

            private int endDate_;

            private int startDate_;

            public DateRange() {
                clear();
            }

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

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

            public DateRange clear() {
                this.bitField0_ = 0;
                this.startDate_ = 0;
                this.endDate_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public DateRange clearEndDate() {
                this.endDate_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public DateRange clearStartDate() {
                this.startDate_ = 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.startDate_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(2, this.endDate_);
                }
                return computeSerializedSize;
            }

            public int getEndDate() {
                return this.endDate_;
            }

            public int getStartDate() {
                return this.startDate_;
            }

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

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

            public DateRange setEndDate(int i10) {
                this.endDate_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public DateRange setStartDate(int i10) {
                this.startDate_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

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

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

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

        public FROverviewList_Request() {
            clear();
        }

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

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

        public FROverviewList_Request clear() {
            this.request = null;
            this.dateRange = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            SortedListRequest.SortedList_Request sortedList_Request = this.request;
            if (sortedList_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, sortedList_Request);
            }
            DateRange dateRange2 = this.dateRange;
            if (dateRange2 != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(2, dateRange2);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            SortedListRequest.SortedList_Request sortedList_Request = this.request;
            if (sortedList_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, sortedList_Request);
            }
            DateRange dateRange2 = this.dateRange;
            if (dateRange2 != null) {
                codedOutputByteBufferNano.writeMessage(2, dateRange2);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public FROverviewList_Request 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 SortedListRequest.SortedList_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.request);
                } else if (readTag == 18) {
                    if (this.dateRange == null) {
                        this.dateRange = new DateRange();
                    }
                    codedInputByteBufferNano.readMessage(this.dateRange);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
