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

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

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

        private static volatile StrategyMark_Response[] _emptyArray;

        public StrategyMarkRequest.StrategyMark_Request input;

        public DataMark[] output;

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

            private static volatile DataMark[] _emptyArray;

            public MarkDetail[] band;

            private int bitField0_;

            private int date_;

            public MarkDetail[] tech;

            public MarkDetail[] val;

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

                private static volatile MarkDetail[] _emptyArray;

                private int bitField0_;

                private int poolId_;

                private String poolName_;

                private int strategyId_;

                private String strategyName_;

                public MarkDetail() {
                    clear();
                }

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

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

                public MarkDetail clear() {
                    this.bitField0_ = 0;
                    this.poolId_ = 0;
                    this.poolName_ = "";
                    this.strategyId_ = 0;
                    this.strategyName_ = "";
                    this.cachedSize = -1;
                    return this;
                }

                public MarkDetail clearPoolId() {
                    this.poolId_ = 0;
                    this.bitField0_ &= -2;
                    return this;
                }

                public MarkDetail clearPoolName() {
                    this.poolName_ = "";
                    this.bitField0_ &= -3;
                    return this;
                }

                public MarkDetail clearStrategyId() {
                    this.strategyId_ = 0;
                    this.bitField0_ &= -5;
                    return this;
                }

                public MarkDetail clearStrategyName() {
                    this.strategyName_ = "";
                    this.bitField0_ &= -9;
                    return this;
                }

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.poolId_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.poolName_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.strategyId_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(4, this.strategyName_);
                    }
                    return computeSerializedSize;
                }

                public int getPoolId() {
                    return this.poolId_;
                }

                public String getPoolName() {
                    return this.poolName_;
                }

                public int getStrategyId() {
                    return this.strategyId_;
                }

                public String getStrategyName() {
                    return this.strategyName_;
                }

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

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

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

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

                public MarkDetail setPoolId(int i10) {
                    this.poolId_ = i10;
                    this.bitField0_ |= 1;
                    return this;
                }

                public MarkDetail setPoolName(String str) {
                    str.getClass();
                    this.poolName_ = str;
                    this.bitField0_ |= 2;
                    return this;
                }

                public MarkDetail setStrategyId(int i10) {
                    this.strategyId_ = i10;
                    this.bitField0_ |= 4;
                    return this;
                }

                public MarkDetail setStrategyName(String str) {
                    str.getClass();
                    this.strategyName_ = str;
                    this.bitField0_ |= 8;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeUInt32(1, this.poolId_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeString(2, this.poolName_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeUInt32(3, this.strategyId_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        codedOutputByteBufferNano.writeString(4, this.strategyName_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public MarkDetail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 8) {
                            this.poolId_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                        } else if (readTag == 18) {
                            this.poolName_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 2;
                        } else if (readTag == 24) {
                            this.strategyId_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 4;
                        } else if (readTag == 34) {
                            this.strategyName_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 8;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public DataMark() {
                clear();
            }

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

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

            public DataMark clear() {
                this.bitField0_ = 0;
                this.date_ = 0;
                this.tech = MarkDetail.emptyArray();
                this.val = MarkDetail.emptyArray();
                this.band = MarkDetail.emptyArray();
                this.cachedSize = -1;
                return this;
            }

            public DataMark clearDate() {
                this.date_ = 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.date_);
                }
                MarkDetail[] markDetailArr = this.tech;
                int i10 = 0;
                if (markDetailArr != null && markDetailArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        MarkDetail[] markDetailArr2 = this.tech;
                        if (i11 >= markDetailArr2.length) {
                            break;
                        }
                        MarkDetail markDetail = markDetailArr2[i11];
                        if (markDetail != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, markDetail);
                        }
                        i11++;
                    }
                }
                MarkDetail[] markDetailArr3 = this.val;
                if (markDetailArr3 != null && markDetailArr3.length > 0) {
                    int i12 = 0;
                    while (true) {
                        MarkDetail[] markDetailArr4 = this.val;
                        if (i12 >= markDetailArr4.length) {
                            break;
                        }
                        MarkDetail markDetail2 = markDetailArr4[i12];
                        if (markDetail2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, markDetail2);
                        }
                        i12++;
                    }
                }
                MarkDetail[] markDetailArr5 = this.band;
                if (markDetailArr5 != null && markDetailArr5.length > 0) {
                    while (true) {
                        MarkDetail[] markDetailArr6 = this.band;
                        if (i10 >= markDetailArr6.length) {
                            break;
                        }
                        MarkDetail markDetail3 = markDetailArr6[i10];
                        if (markDetail3 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, markDetail3);
                        }
                        i10++;
                    }
                }
                return computeSerializedSize;
            }

            public int getDate() {
                return this.date_;
            }

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

            public DataMark setDate(int i10) {
                this.date_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.date_);
                }
                MarkDetail[] markDetailArr = this.tech;
                int i10 = 0;
                if (markDetailArr != null && markDetailArr.length > 0) {
                    int i11 = 0;
                    while (true) {
                        MarkDetail[] markDetailArr2 = this.tech;
                        if (i11 >= markDetailArr2.length) {
                            break;
                        }
                        MarkDetail markDetail = markDetailArr2[i11];
                        if (markDetail != null) {
                            codedOutputByteBufferNano.writeMessage(2, markDetail);
                        }
                        i11++;
                    }
                }
                MarkDetail[] markDetailArr3 = this.val;
                if (markDetailArr3 != null && markDetailArr3.length > 0) {
                    int i12 = 0;
                    while (true) {
                        MarkDetail[] markDetailArr4 = this.val;
                        if (i12 >= markDetailArr4.length) {
                            break;
                        }
                        MarkDetail markDetail2 = markDetailArr4[i12];
                        if (markDetail2 != null) {
                            codedOutputByteBufferNano.writeMessage(3, markDetail2);
                        }
                        i12++;
                    }
                }
                MarkDetail[] markDetailArr5 = this.band;
                if (markDetailArr5 != null && markDetailArr5.length > 0) {
                    while (true) {
                        MarkDetail[] markDetailArr6 = this.band;
                        if (i10 >= markDetailArr6.length) {
                            break;
                        }
                        MarkDetail markDetail3 = markDetailArr6[i10];
                        if (markDetail3 != null) {
                            codedOutputByteBufferNano.writeMessage(4, markDetail3);
                        }
                        i10++;
                    }
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public DataMark mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.date_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        MarkDetail[] markDetailArr = this.tech;
                        int length = markDetailArr == null ? 0 : markDetailArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        MarkDetail[] markDetailArr2 = new MarkDetail[i10];
                        if (length != 0) {
                            System.arraycopy(markDetailArr, 0, markDetailArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            MarkDetail markDetail = new MarkDetail();
                            markDetailArr2[length] = markDetail;
                            codedInputByteBufferNano.readMessage(markDetail);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        MarkDetail markDetail2 = new MarkDetail();
                        markDetailArr2[length] = markDetail2;
                        codedInputByteBufferNano.readMessage(markDetail2);
                        this.tech = markDetailArr2;
                    } else if (readTag == 26) {
                        int repeatedFieldArrayLength2 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 26);
                        MarkDetail[] markDetailArr3 = this.val;
                        int length2 = markDetailArr3 == null ? 0 : markDetailArr3.length;
                        int i11 = repeatedFieldArrayLength2 + length2;
                        MarkDetail[] markDetailArr4 = new MarkDetail[i11];
                        if (length2 != 0) {
                            System.arraycopy(markDetailArr3, 0, markDetailArr4, 0, length2);
                        }
                        while (length2 < i11 - 1) {
                            MarkDetail markDetail3 = new MarkDetail();
                            markDetailArr4[length2] = markDetail3;
                            codedInputByteBufferNano.readMessage(markDetail3);
                            codedInputByteBufferNano.readTag();
                            length2++;
                        }
                        MarkDetail markDetail4 = new MarkDetail();
                        markDetailArr4[length2] = markDetail4;
                        codedInputByteBufferNano.readMessage(markDetail4);
                        this.val = markDetailArr4;
                    } else if (readTag == 34) {
                        int repeatedFieldArrayLength3 = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 34);
                        MarkDetail[] markDetailArr5 = this.band;
                        int length3 = markDetailArr5 == null ? 0 : markDetailArr5.length;
                        int i12 = repeatedFieldArrayLength3 + length3;
                        MarkDetail[] markDetailArr6 = new MarkDetail[i12];
                        if (length3 != 0) {
                            System.arraycopy(markDetailArr5, 0, markDetailArr6, 0, length3);
                        }
                        while (length3 < i12 - 1) {
                            MarkDetail markDetail5 = new MarkDetail();
                            markDetailArr6[length3] = markDetail5;
                            codedInputByteBufferNano.readMessage(markDetail5);
                            codedInputByteBufferNano.readTag();
                            length3++;
                        }
                        MarkDetail markDetail6 = new MarkDetail();
                        markDetailArr6[length3] = markDetail6;
                        codedInputByteBufferNano.readMessage(markDetail6);
                        this.band = markDetailArr6;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public StrategyMark_Response() {
            clear();
        }

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

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

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

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            StrategyMarkRequest.StrategyMark_Request strategyMark_Request = this.input;
            if (strategyMark_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, strategyMark_Request);
            }
            DataMark[] dataMarkArr = this.output;
            if (dataMarkArr != null && dataMarkArr.length > 0) {
                int i10 = 0;
                while (true) {
                    DataMark[] dataMarkArr2 = this.output;
                    if (i10 >= dataMarkArr2.length) {
                        break;
                    }
                    DataMark dataMark = dataMarkArr2[i10];
                    if (dataMark != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, dataMark);
                    }
                    i10++;
                }
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            StrategyMarkRequest.StrategyMark_Request strategyMark_Request = this.input;
            if (strategyMark_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, strategyMark_Request);
            }
            DataMark[] dataMarkArr = this.output;
            if (dataMarkArr != null && dataMarkArr.length > 0) {
                int i10 = 0;
                while (true) {
                    DataMark[] dataMarkArr2 = this.output;
                    if (i10 >= dataMarkArr2.length) {
                        break;
                    }
                    DataMark dataMark = dataMarkArr2[i10];
                    if (dataMark != null) {
                        codedOutputByteBufferNano.writeMessage(2, dataMark);
                    }
                    i10++;
                }
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public StrategyMark_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 StrategyMarkRequest.StrategyMark_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    DataMark[] dataMarkArr = this.output;
                    int length = dataMarkArr == null ? 0 : dataMarkArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    DataMark[] dataMarkArr2 = new DataMark[i10];
                    if (length != 0) {
                        System.arraycopy(dataMarkArr, 0, dataMarkArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        DataMark dataMark = new DataMark();
                        dataMarkArr2[length] = dataMark;
                        codedInputByteBufferNano.readMessage(dataMark);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    DataMark dataMark2 = new DataMark();
                    dataMarkArr2[length] = dataMark2;
                    codedInputByteBufferNano.readMessage(dataMark2);
                    this.output = dataMarkArr2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
