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

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

        private static volatile GetPortfolioRank_Request[] _emptyArray;

        private int aid_;

        private boolean asc_;

        private int bitField0_;

        private int pos_;

        private int req_;

        private int sort_;

        private String token_;

        private int type_;

        private int uid_;

        public GetPortfolioRank_Request() {
            clear();
        }

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

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

        public GetPortfolioRank_Request clear() {
            this.bitField0_ = 0;
            this.token_ = "";
            this.uid_ = 0;
            this.type_ = 0;
            this.aid_ = 0;
            this.sort_ = 0;
            this.asc_ = false;
            this.pos_ = 0;
            this.req_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public GetPortfolioRank_Request clearAid() {
            this.aid_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public GetPortfolioRank_Request clearAsc() {
            this.asc_ = false;
            this.bitField0_ &= -33;
            return this;
        }

        public GetPortfolioRank_Request clearPos() {
            this.pos_ = 0;
            this.bitField0_ &= -65;
            return this;
        }

        public GetPortfolioRank_Request clearReq() {
            this.req_ = 0;
            this.bitField0_ &= -129;
            return this;
        }

        public GetPortfolioRank_Request clearSort() {
            this.sort_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

        public GetPortfolioRank_Request clearToken() {
            this.token_ = "";
            this.bitField0_ &= -2;
            return this;
        }

        public GetPortfolioRank_Request clearType() {
            this.type_ = 0;
            this.bitField0_ &= -5;
            return this;
        }

        public GetPortfolioRank_Request clearUid() {
            this.uid_ = 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.computeStringSize(1, this.token_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.uid_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.type_);
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.aid_);
            }
            if ((this.bitField0_ & 16) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(5, this.sort_);
            }
            if ((this.bitField0_ & 32) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeBoolSize(6, this.asc_);
            }
            if ((this.bitField0_ & 64) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(7, this.pos_);
            }
            if ((this.bitField0_ & 128) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(8, this.req_);
            }
            return computeSerializedSize;
        }

        public int getAid() {
            return this.aid_;
        }

        public boolean getAsc() {
            return this.asc_;
        }

        public int getPos() {
            return this.pos_;
        }

        public int getReq() {
            return this.req_;
        }

        public int getSort() {
            return this.sort_;
        }

        public String getToken() {
            return this.token_;
        }

        public int getType() {
            return this.type_;
        }

        public int getUid() {
            return this.uid_;
        }

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

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

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

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

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

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

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

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

        public GetPortfolioRank_Request setAid(int i10) {
            this.aid_ = i10;
            this.bitField0_ |= 8;
            return this;
        }

        public GetPortfolioRank_Request setAsc(boolean z9) {
            this.asc_ = z9;
            this.bitField0_ |= 32;
            return this;
        }

        public GetPortfolioRank_Request setPos(int i10) {
            this.pos_ = i10;
            this.bitField0_ |= 64;
            return this;
        }

        public GetPortfolioRank_Request setReq(int i10) {
            this.req_ = i10;
            this.bitField0_ |= 128;
            return this;
        }

        public GetPortfolioRank_Request setSort(int i10) {
            this.sort_ = i10;
            this.bitField0_ |= 16;
            return this;
        }

        public GetPortfolioRank_Request setToken(String str) {
            str.getClass();
            this.token_ = str;
            this.bitField0_ |= 1;
            return this;
        }

        public GetPortfolioRank_Request setType(int i10) {
            this.type_ = i10;
            this.bitField0_ |= 4;
            return this;
        }

        public GetPortfolioRank_Request setUid(int i10) {
            this.uid_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeString(1, this.token_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(2, this.uid_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.type_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.aid_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeInt32(5, this.sort_);
            }
            if ((this.bitField0_ & 32) != 0) {
                codedOutputByteBufferNano.writeBool(6, this.asc_);
            }
            if ((this.bitField0_ & 64) != 0) {
                codedOutputByteBufferNano.writeUInt32(7, this.pos_);
            }
            if ((this.bitField0_ & 128) != 0) {
                codedOutputByteBufferNano.writeUInt32(8, this.req_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public GetPortfolioRank_Request mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    this.token_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 1;
                } else if (readTag == 16) {
                    this.uid_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (readTag == 24) {
                    this.type_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 4;
                } else if (readTag == 32) {
                    this.aid_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 8;
                } else if (readTag == 40) {
                    this.sort_ = codedInputByteBufferNano.readInt32();
                    this.bitField0_ |= 16;
                } else if (readTag == 48) {
                    this.asc_ = codedInputByteBufferNano.readBool();
                    this.bitField0_ |= 32;
                } else if (readTag == 56) {
                    this.pos_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 64;
                } else if (readTag == 64) {
                    this.req_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 128;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
