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 SortedListRequest {

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

        public static final int CUSTOM_FIELD_NUMBER = 2;

        public static final int GOODS_FIELD_NUMBER = 3;

        public static final int GROUP_FIELD_NUMBER = 4;

        public static final int SYSTEM_FIELD_NUMBER = 1;

        private static volatile SortedList_Request[] _emptyArray;

        private int beginPosition_;

        private int bitField0_;

        public int[] fieldsId;

        private int limitSize_;

        private int requestTypeCase_ = 0;

        private Object requestType_;

        public SortOptions sortOption;

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

            private static volatile ClassTypeList[] _emptyArray;

            public ClassType[] exchangeCategory;

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

                private static volatile ClassType[] _emptyArray;

                private int bitField0_;

                private long category_;

                private int exchange_;

                public ClassType() {
                    clear();
                }

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

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

                public ClassType clear() {
                    this.bitField0_ = 0;
                    this.exchange_ = 0;
                    this.category_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

                public ClassType clearCategory() {
                    this.category_ = 0;
                    this.bitField0_ &= -3;
                    return this;
                }

                public ClassType clearExchange() {
                    this.exchange_ = 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(5, this.exchange_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeUInt64Size(6, this.category_);
                    }
                    return computeSerializedSize;
                }

                public long getCategory() {
                    return this.category_;
                }

                public int getExchange() {
                    return this.exchange_;
                }

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

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

                public ClassType setCategory(long j10) {
                    this.category_ = j10;
                    this.bitField0_ |= 2;
                    return this;
                }

                public ClassType setExchange(int i10) {
                    this.exchange_ = i10;
                    this.bitField0_ |= 1;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeUInt32(5, this.exchange_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeUInt64(6, this.category_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public ClassType mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 40) {
                            this.exchange_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                        } else if (readTag == 48) {
                            this.category_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 2;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public ClassTypeList() {
                clear();
            }

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

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

            public ClassTypeList clear() {
                this.exchangeCategory = ClassType.emptyArray();
                this.cachedSize = -1;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                ClassType[] classTypeArr = this.exchangeCategory;
                if (classTypeArr != null && classTypeArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        ClassType[] classTypeArr2 = this.exchangeCategory;
                        if (i10 >= classTypeArr2.length) {
                            break;
                        }
                        ClassType classType = classTypeArr2[i10];
                        if (classType != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, classType);
                        }
                        i10++;
                    }
                }
                return computeSerializedSize;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                ClassType[] classTypeArr = this.exchangeCategory;
                if (classTypeArr != null && classTypeArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        ClassType[] classTypeArr2 = this.exchangeCategory;
                        if (i10 >= classTypeArr2.length) {
                            break;
                        }
                        ClassType classType = classTypeArr2[i10];
                        if (classType != null) {
                            codedOutputByteBufferNano.writeMessage(1, classType);
                        }
                        i10++;
                    }
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public ClassTypeList mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 10);
                        ClassType[] classTypeArr = this.exchangeCategory;
                        int length = classTypeArr == null ? 0 : classTypeArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        ClassType[] classTypeArr2 = new ClassType[i10];
                        if (length != 0) {
                            System.arraycopy(classTypeArr, 0, classTypeArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            ClassType classType = new ClassType();
                            classTypeArr2[length] = classType;
                            codedInputByteBufferNano.readMessage(classType);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        ClassType classType2 = new ClassType();
                        classTypeArr2[length] = classType2;
                        codedInputByteBufferNano.readMessage(classType2);
                        this.exchangeCategory = classTypeArr2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile GoodsList[] _emptyArray;

            public int[] goodsId;

            public GoodsList() {
                clear();
            }

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

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

            public GoodsList clear() {
                this.goodsId = WireFormatNano.EMPTY_INT_ARRAY;
                this.cachedSize = -1;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                int[] iArr = this.goodsId;
                if (iArr == null || iArr.length <= 0) {
                    return computeSerializedSize;
                }
                int i10 = 0;
                int i11 = 0;
                while (true) {
                    int[] iArr2 = this.goodsId;
                    if (i10 >= iArr2.length) {
                        return computeSerializedSize + i11 + iArr2.length;
                    }
                    i11 += CodedOutputByteBufferNano.computeUInt32SizeNoTag(iArr2[i10]);
                    i10++;
                }
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                int[] iArr = this.goodsId;
                if (iArr != null && iArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        int[] iArr2 = this.goodsId;
                        if (i10 >= iArr2.length) {
                            break;
                        }
                        codedOutputByteBufferNano.writeUInt32(1, iArr2[i10]);
                        i10++;
                    }
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public GoodsList mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 8);
                        int[] iArr = this.goodsId;
                        int length = iArr == null ? 0 : iArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        int[] iArr2 = new int[i10];
                        if (length != 0) {
                            System.arraycopy(iArr, 0, iArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            iArr2[length] = codedInputByteBufferNano.readUInt32();
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        iArr2[length] = codedInputByteBufferNano.readUInt32();
                        this.goodsId = iArr2;
                    } else if (readTag == 10) {
                        int pushLimit = codedInputByteBufferNano.pushLimit(codedInputByteBufferNano.readRawVarint32());
                        int position = codedInputByteBufferNano.getPosition();
                        int i11 = 0;
                        while (codedInputByteBufferNano.getBytesUntilLimit() > 0) {
                            codedInputByteBufferNano.readUInt32();
                            i11++;
                        }
                        codedInputByteBufferNano.rewindToPosition(position);
                        int[] iArr3 = this.goodsId;
                        int length2 = iArr3 == null ? 0 : iArr3.length;
                        int i12 = i11 + length2;
                        int[] iArr4 = new int[i12];
                        if (length2 != 0) {
                            System.arraycopy(iArr3, 0, iArr4, 0, length2);
                        }
                        while (length2 < i12) {
                            iArr4[length2] = codedInputByteBufferNano.readUInt32();
                            length2++;
                        }
                        this.goodsId = iArr4;
                        codedInputByteBufferNano.popLimit(pushLimit);
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile GroupInfo[] _emptyArray;

            private int bitField0_;

            private int goodsId_;

            private int groupType_;

            public GroupInfo() {
                clear();
            }

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

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

            public GroupInfo clear() {
                this.bitField0_ = 0;
                this.goodsId_ = 0;
                this.groupType_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public GroupInfo clearGoodsId() {
                this.goodsId_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public GroupInfo clearGroupType() {
                this.groupType_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

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

            public int getGoodsId() {
                return this.goodsId_;
            }

            public int getGroupType() {
                return this.groupType_;
            }

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

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

            public GroupInfo setGoodsId(int i10) {
                this.goodsId_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public GroupInfo setGroupType(int i10) {
                this.groupType_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

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

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

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

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

            private static volatile SortOptions[] _emptyArray;

            private int bitField0_;

            private boolean sortAsce_;

            private int sortField_;

            public SortOptions() {
                clear();
            }

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

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

            public SortOptions clear() {
                this.bitField0_ = 0;
                this.sortField_ = 0;
                this.sortAsce_ = false;
                this.cachedSize = -1;
                return this;
            }

            public SortOptions clearSortAsce() {
                this.sortAsce_ = false;
                this.bitField0_ &= -3;
                return this;
            }

            public SortOptions clearSortField() {
                this.sortField_ = 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.computeInt32Size(1, this.sortField_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeBoolSize(2, this.sortAsce_);
                }
                return computeSerializedSize;
            }

            public boolean getSortAsce() {
                return this.sortAsce_;
            }

            public int getSortField() {
                return this.sortField_;
            }

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

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

            public SortOptions setSortAsce(boolean z9) {
                this.sortAsce_ = z9;
                this.bitField0_ |= 2;
                return this;
            }

            public SortOptions setSortField(int i10) {
                this.sortField_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt32(1, this.sortField_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeBool(2, this.sortAsce_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public SortOptions mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.sortField_ = codedInputByteBufferNano.readInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.sortAsce_ = codedInputByteBufferNano.readBool();
                        this.bitField0_ |= 2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public SortedList_Request() {
            clear();
        }

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

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

        public SortedList_Request clear() {
            this.bitField0_ = 0;
            this.fieldsId = WireFormatNano.EMPTY_INT_ARRAY;
            this.sortOption = null;
            this.beginPosition_ = 0;
            this.limitSize_ = 0;
            clearRequestType();
            this.cachedSize = -1;
            return this;
        }

        public SortedList_Request clearBeginPosition() {
            this.beginPosition_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public SortedList_Request clearLimitSize() {
            this.limitSize_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        public SortedList_Request clearRequestType() {
            this.requestTypeCase_ = 0;
            this.requestType_ = null;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int[] iArr;
            int computeSerializedSize = super.computeSerializedSize();
            if (this.requestTypeCase_ == 1) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, (MessageNano) this.requestType_);
            }
            if (this.requestTypeCase_ == 2) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, (MessageNano) this.requestType_);
            }
            if (this.requestTypeCase_ == 3) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, ((Integer) this.requestType_).intValue());
            }
            if (this.requestTypeCase_ == 4) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, (MessageNano) this.requestType_);
            }
            int[] iArr2 = this.fieldsId;
            if (iArr2 != null && iArr2.length > 0) {
                int i10 = 0;
                int i11 = 0;
                while (true) {
                    iArr = this.fieldsId;
                    if (i10 >= iArr.length) {
                        break;
                    }
                    i11 += CodedOutputByteBufferNano.computeInt32SizeNoTag(iArr[i10]);
                    i10++;
                }
                computeSerializedSize = computeSerializedSize + i11 + iArr.length;
            }
            SortOptions sortOptions = this.sortOption;
            if (sortOptions != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(6, sortOptions);
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(7, this.beginPosition_);
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(8, this.limitSize_);
            }
            return computeSerializedSize;
        }

        public int getBeginPosition() {
            return this.beginPosition_;
        }

        public GoodsList getCustom() {
            if (this.requestTypeCase_ == 2) {
                return (GoodsList) this.requestType_;
            }
            return null;
        }

        public int getGoods() {
            if (this.requestTypeCase_ == 3) {
                return ((Integer) this.requestType_).intValue();
            }
            return 0;
        }

        public GroupInfo getGroup() {
            if (this.requestTypeCase_ == 4) {
                return (GroupInfo) this.requestType_;
            }
            return null;
        }

        public int getLimitSize() {
            return this.limitSize_;
        }

        public int getRequestTypeCase() {
            return this.requestTypeCase_;
        }

        public ClassTypeList getSystem() {
            if (this.requestTypeCase_ == 1) {
                return (ClassTypeList) this.requestType_;
            }
            return null;
        }

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

        public boolean hasCustom() {
            if (this.requestTypeCase_ == 2) {
                return true;
            }
            return false;
        }

        public boolean hasGoods() {
            if (this.requestTypeCase_ == 3) {
                return true;
            }
            return false;
        }

        public boolean hasGroup() {
            if (this.requestTypeCase_ == 4) {
                return true;
            }
            return false;
        }

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

        public boolean hasSystem() {
            if (this.requestTypeCase_ == 1) {
                return true;
            }
            return false;
        }

        public SortedList_Request setBeginPosition(int i10) {
            this.beginPosition_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public SortedList_Request setCustom(GoodsList goodsList) {
            goodsList.getClass();
            this.requestTypeCase_ = 2;
            this.requestType_ = goodsList;
            return this;
        }

        public SortedList_Request setGoods(int i10) {
            this.requestTypeCase_ = 3;
            this.requestType_ = Integer.valueOf(i10);
            return this;
        }

        public SortedList_Request setGroup(GroupInfo groupInfo) {
            groupInfo.getClass();
            this.requestTypeCase_ = 4;
            this.requestType_ = groupInfo;
            return this;
        }

        public SortedList_Request setLimitSize(int i10) {
            this.limitSize_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public SortedList_Request setSystem(ClassTypeList classTypeList) {
            classTypeList.getClass();
            this.requestTypeCase_ = 1;
            this.requestType_ = classTypeList;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if (this.requestTypeCase_ == 1) {
                codedOutputByteBufferNano.writeMessage(1, (MessageNano) this.requestType_);
            }
            if (this.requestTypeCase_ == 2) {
                codedOutputByteBufferNano.writeMessage(2, (MessageNano) this.requestType_);
            }
            if (this.requestTypeCase_ == 3) {
                codedOutputByteBufferNano.writeUInt32(3, ((Integer) this.requestType_).intValue());
            }
            if (this.requestTypeCase_ == 4) {
                codedOutputByteBufferNano.writeMessage(4, (MessageNano) this.requestType_);
            }
            int[] iArr = this.fieldsId;
            if (iArr != null && iArr.length > 0) {
                int i10 = 0;
                while (true) {
                    int[] iArr2 = this.fieldsId;
                    if (i10 >= iArr2.length) {
                        break;
                    }
                    codedOutputByteBufferNano.writeInt32(5, iArr2[i10]);
                    i10++;
                }
            }
            SortOptions sortOptions = this.sortOption;
            if (sortOptions != null) {
                codedOutputByteBufferNano.writeMessage(6, sortOptions);
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(7, this.beginPosition_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(8, this.limitSize_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public SortedList_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestTypeCase_ != 1) {
                        this.requestType_ = new ClassTypeList();
                    }
                    codedInputByteBufferNano.readMessage((MessageNano) this.requestType_);
                    this.requestTypeCase_ = 1;
                } else if (readTag == 18) {
                    if (this.requestTypeCase_ != 2) {
                        this.requestType_ = new GoodsList();
                    }
                    codedInputByteBufferNano.readMessage((MessageNano) this.requestType_);
                    this.requestTypeCase_ = 2;
                } else if (readTag == 24) {
                    this.requestType_ = Integer.valueOf(codedInputByteBufferNano.readUInt32());
                    this.requestTypeCase_ = 3;
                } else if (readTag == 34) {
                    if (this.requestTypeCase_ != 4) {
                        this.requestType_ = new GroupInfo();
                    }
                    codedInputByteBufferNano.readMessage((MessageNano) this.requestType_);
                    this.requestTypeCase_ = 4;
                } else if (readTag == 40) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 40);
                    int[] iArr = this.fieldsId;
                    int length = iArr == null ? 0 : iArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    int[] iArr2 = new int[i10];
                    if (length != 0) {
                        System.arraycopy(iArr, 0, iArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        iArr2[length] = codedInputByteBufferNano.readInt32();
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    iArr2[length] = codedInputByteBufferNano.readInt32();
                    this.fieldsId = iArr2;
                } else if (readTag == 42) {
                    int pushLimit = codedInputByteBufferNano.pushLimit(codedInputByteBufferNano.readRawVarint32());
                    int position = codedInputByteBufferNano.getPosition();
                    int i11 = 0;
                    while (codedInputByteBufferNano.getBytesUntilLimit() > 0) {
                        codedInputByteBufferNano.readInt32();
                        i11++;
                    }
                    codedInputByteBufferNano.rewindToPosition(position);
                    int[] iArr3 = this.fieldsId;
                    int length2 = iArr3 == null ? 0 : iArr3.length;
                    int i12 = i11 + length2;
                    int[] iArr4 = new int[i12];
                    if (length2 != 0) {
                        System.arraycopy(iArr3, 0, iArr4, 0, length2);
                    }
                    while (length2 < i12) {
                        iArr4[length2] = codedInputByteBufferNano.readInt32();
                        length2++;
                    }
                    this.fieldsId = iArr4;
                    codedInputByteBufferNano.popLimit(pushLimit);
                } else if (readTag == 50) {
                    if (this.sortOption == null) {
                        this.sortOption = new SortOptions();
                    }
                    codedInputByteBufferNano.readMessage(this.sortOption);
                } else if (readTag == 56) {
                    this.beginPosition_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 64) {
                    this.limitSize_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
