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;

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

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

        private static volatile NorthSeatTrend_Request[] _emptyArray;

        private int bitField0_;

        private boolean getCalDate_;

        private int limit_;

        private boolean sortAsc_;

        private int tradeDate_;

        public NorthSeatTrend_Request() {
            clear();
        }

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

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

        public NorthSeatTrend_Request clear() {
            this.bitField0_ = 0;
            this.tradeDate_ = 0;
            this.limit_ = 0;
            this.getCalDate_ = false;
            this.sortAsc_ = false;
            this.cachedSize = -1;
            return this;
        }

        public NorthSeatTrend_Request clearGetCalDate() {
            this.getCalDate_ = false;
            this.bitField0_ &= -5;
            return this;
        }

        public NorthSeatTrend_Request clearLimit() {
            this.limit_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public NorthSeatTrend_Request clearSortAsc() {
            this.sortAsc_ = false;
            this.bitField0_ &= -9;
            return this;
        }

        public NorthSeatTrend_Request clearTradeDate() {
            this.tradeDate_ = 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.tradeDate_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.limit_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeBoolSize(3, this.getCalDate_);
            }
            if ((this.bitField0_ & 8) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeBoolSize(4, this.sortAsc_);
            }
            return computeSerializedSize;
        }

        public boolean getGetCalDate() {
            return this.getCalDate_;
        }

        public int getLimit() {
            return this.limit_;
        }

        public boolean getSortAsc() {
            return this.sortAsc_;
        }

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

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

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

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

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

        public NorthSeatTrend_Request setGetCalDate(boolean z9) {
            this.getCalDate_ = z9;
            this.bitField0_ |= 4;
            return this;
        }

        public NorthSeatTrend_Request setLimit(int i10) {
            this.limit_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public NorthSeatTrend_Request setSortAsc(boolean z9) {
            this.sortAsc_ = z9;
            this.bitField0_ |= 8;
            return this;
        }

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

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(1, this.tradeDate_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.limit_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeBool(3, this.getCalDate_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeBool(4, this.sortAsc_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public NorthSeatTrend_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 8) {
                    this.tradeDate_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 16) {
                    this.limit_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.getCalDate_ = codedInputByteBufferNano.readBool();
                    this.bitField0_ |= 4;
                } else if (readTag == 32) {
                    this.sortAsc_ = codedInputByteBufferNano.readBool();
                    this.bitField0_ |= 8;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
