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

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

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

        private static volatile StrategySelection_Response[] _emptyArray;

        public StrategySelectionRequest.StrategySelection_Request inputParam;

        public Result_Detail[] outputParam;

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

            private static volatile Result_Detail[] _emptyArray;

            private int bitField0_;

            private long category_;

            private String code_;

            private int current_;

            private int exchange_;

            private int id_;

            private String name_;

            private int session_;

            public int[] sid;

            public Result_Detail() {
                clear();
            }

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

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

            public Result_Detail clear() {
                this.bitField0_ = 0;
                this.id_ = 0;
                this.exchange_ = 0;
                this.session_ = 0;
                this.name_ = "";
                this.code_ = "";
                this.category_ = 0;
                this.sid = WireFormatNano.EMPTY_INT_ARRAY;
                this.current_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

            public Result_Detail clearCode() {
                this.code_ = "";
                this.bitField0_ &= -17;
                return this;
            }

            public Result_Detail clearCurrent() {
                this.current_ = 0;
                this.bitField0_ &= -65;
                return this;
            }

            public Result_Detail clearExchange() {
                this.exchange_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

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

            public Result_Detail clearName() {
                this.name_ = "";
                this.bitField0_ &= -9;
                return this;
            }

            public Result_Detail clearSession() {
                this.session_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int[] iArr;
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.id_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(2, this.exchange_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.session_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(4, this.name_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(5, this.code_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(6, this.category_);
                }
                int[] iArr2 = this.sid;
                if (iArr2 != null && iArr2.length > 0) {
                    int i10 = 0;
                    int i11 = 0;
                    while (true) {
                        iArr = this.sid;
                        if (i10 >= iArr.length) {
                            break;
                        }
                        i11 += CodedOutputByteBufferNano.computeUInt32SizeNoTag(iArr[i10]);
                        i10++;
                    }
                    computeSerializedSize = computeSerializedSize + i11 + iArr.length;
                }
                if ((this.bitField0_ & 64) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(8, this.current_);
                }
                return computeSerializedSize;
            }

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

            public String getCode() {
                return this.code_;
            }

            public int getCurrent() {
                return this.current_;
            }

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

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

            public String getName() {
                return this.name_;
            }

            public int getSession() {
                return this.session_;
            }

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

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

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

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

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

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

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

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

            public Result_Detail setCode(String str) {
                str.getClass();
                this.code_ = str;
                this.bitField0_ |= 16;
                return this;
            }

            public Result_Detail setCurrent(int i10) {
                this.current_ = i10;
                this.bitField0_ |= 64;
                return this;
            }

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

            public Result_Detail setId(int i10) {
                this.id_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public Result_Detail setName(String str) {
                str.getClass();
                this.name_ = str;
                this.bitField0_ |= 8;
                return this;
            }

            public Result_Detail setSession(int i10) {
                this.session_ = i10;
                this.bitField0_ |= 4;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.id_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(2, this.exchange_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.session_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeString(4, this.name_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeString(5, this.code_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeUInt64(6, this.category_);
                }
                int[] iArr = this.sid;
                if (iArr != null && iArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        int[] iArr2 = this.sid;
                        if (i10 >= iArr2.length) {
                            break;
                        }
                        codedOutputByteBufferNano.writeUInt32(7, iArr2[i10]);
                        i10++;
                    }
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeUInt32(8, this.current_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public Result_Detail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.id_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 16) {
                        this.exchange_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 24) {
                        this.session_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 4;
                    } else if (readTag == 34) {
                        this.name_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 8;
                    } else if (readTag == 42) {
                        this.code_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 16;
                    } else if (readTag == 48) {
                        this.category_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 32;
                    } else if (readTag == 56) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 56);
                        int[] iArr = this.sid;
                        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.sid = iArr2;
                    } else if (readTag == 58) {
                        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.sid;
                        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.sid = iArr4;
                        codedInputByteBufferNano.popLimit(pushLimit);
                    } else if (readTag == 64) {
                        this.current_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 64;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public StrategySelection_Response() {
            clear();
        }

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

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

        public StrategySelection_Response clear() {
            this.inputParam = null;
            this.outputParam = Result_Detail.emptyArray();
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            StrategySelectionRequest.StrategySelection_Request strategySelection_Request = this.inputParam;
            if (strategySelection_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, strategySelection_Request);
            }
            Result_Detail[] result_DetailArr = this.outputParam;
            if (result_DetailArr != null && result_DetailArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Result_Detail[] result_DetailArr2 = this.outputParam;
                    if (i10 >= result_DetailArr2.length) {
                        break;
                    }
                    Result_Detail result_Detail = result_DetailArr2[i10];
                    if (result_Detail != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, result_Detail);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            StrategySelectionRequest.StrategySelection_Request strategySelection_Request = this.inputParam;
            if (strategySelection_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, strategySelection_Request);
            }
            Result_Detail[] result_DetailArr = this.outputParam;
            if (result_DetailArr != null && result_DetailArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Result_Detail[] result_DetailArr2 = this.outputParam;
                    if (i10 >= result_DetailArr2.length) {
                        break;
                    }
                    Result_Detail result_Detail = result_DetailArr2[i10];
                    if (result_Detail != null) {
                        codedOutputByteBufferNano.writeMessage(2, result_Detail);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public StrategySelection_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.inputParam == null) {
                        this.inputParam = new StrategySelectionRequest.StrategySelection_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.inputParam);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    Result_Detail[] result_DetailArr = this.outputParam;
                    int length = result_DetailArr == null ? 0 : result_DetailArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    Result_Detail[] result_DetailArr2 = new Result_Detail[i10];
                    if (length != 0) {
                        System.arraycopy(result_DetailArr, 0, result_DetailArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        Result_Detail result_Detail = new Result_Detail();
                        result_DetailArr2[length] = result_Detail;
                        codedInputByteBufferNano.readMessage(result_Detail);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    Result_Detail result_Detail2 = new Result_Detail();
                    result_DetailArr2[length] = result_Detail2;
                    codedInputByteBufferNano.readMessage(result_Detail2);
                    this.outputParam = result_DetailArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
