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

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

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

        private static volatile QueryStatus_Response[] _emptyArray;

        public QueryStatusRequest.QueryStatus_Request input;

        public UserStatus[] output;

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

            private static volatile UserStatus[] _emptyArray;

            private int bitField0_;

            private long id_;

            private long miss_;

            private int status_;

            public UserStatus() {
                clear();
            }

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

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

            public UserStatus clear() {
                this.bitField0_ = 0;
                this.id_ = 0;
                this.status_ = 0;
                this.miss_ = 0;
                this.cachedSize = -1;
                return this;
            }

            public UserStatus clearId() {
                this.id_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public UserStatus clearMiss() {
                this.miss_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public UserStatus clearStatus() {
                this.status_ = 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.computeInt64Size(1, this.id_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.status_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeInt64Size(3, this.miss_);
                }
                return computeSerializedSize;
            }

            public long getId() {
                return this.id_;
            }

            public long getMiss() {
                return this.miss_;
            }

            public int getStatus() {
                return this.status_;
            }

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

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

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

            public UserStatus setId(long j10) {
                this.id_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public UserStatus setMiss(long j10) {
                this.miss_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

            public UserStatus setStatus(int i10) {
                this.status_ = i10;
                this.bitField0_ |= 2;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(1, this.id_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.status_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeInt64(3, this.miss_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public UserStatus mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.id_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.status_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.miss_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 4;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public QueryStatus_Response() {
            clear();
        }

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

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

        public QueryStatus_Response clear() {
            this.input = null;
            this.output = UserStatus.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            QueryStatusRequest.QueryStatus_Request queryStatus_Request = this.input;
            if (queryStatus_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, queryStatus_Request);
            }
            UserStatus[] userStatusArr = this.output;
            if (userStatusArr != null && userStatusArr.length > 0) {
                int i10 = 0;
                while (true) {
                    UserStatus[] userStatusArr2 = this.output;
                    if (i10 >= userStatusArr2.length) {
                        break;
                    }
                    UserStatus userStatus = userStatusArr2[i10];
                    if (userStatus != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, userStatus);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            QueryStatusRequest.QueryStatus_Request queryStatus_Request = this.input;
            if (queryStatus_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, queryStatus_Request);
            }
            UserStatus[] userStatusArr = this.output;
            if (userStatusArr != null && userStatusArr.length > 0) {
                int i10 = 0;
                while (true) {
                    UserStatus[] userStatusArr2 = this.output;
                    if (i10 >= userStatusArr2.length) {
                        break;
                    }
                    UserStatus userStatus = userStatusArr2[i10];
                    if (userStatus != null) {
                        codedOutputByteBufferNano.writeMessage(2, userStatus);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public QueryStatus_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.input == null) {
                        this.input = new QueryStatusRequest.QueryStatus_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    UserStatus[] userStatusArr = this.output;
                    int length = userStatusArr == null ? 0 : userStatusArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    UserStatus[] userStatusArr2 = new UserStatus[i10];
                    if (length != 0) {
                        System.arraycopy(userStatusArr, 0, userStatusArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        UserStatus userStatus = new UserStatus();
                        userStatusArr2[length] = userStatus;
                        codedInputByteBufferNano.readMessage(userStatus);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    UserStatus userStatus2 = new UserStatus();
                    userStatusArr2[length] = userStatus2;
                    codedInputByteBufferNano.readMessage(userStatus2);
                    this.output = userStatusArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
