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

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

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

        private static volatile BlockAttack_Response[] _emptyArray;

        private int bitField0_;

        public detail[] blocks;

        private int date_;

        public BlockAttackRequest.BlockAttack_Request inputParam;

        private int limit_;

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

            private static volatile detail[] _emptyArray;

            public groups block;

            public goods[] stocks;

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

                private static volatile goods[] _emptyArray;

                private int bitField0_;

                private long category_;

                private int change_;

                private String code_;

                private int exchange_;

                private int id_;

                private String name_;

                private int ratio_;

                private int session_;

                private int type_;

                public goods() {
                    clear();
                }

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

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

                public goods clear() {
                    this.bitField0_ = 0;
                    this.id_ = 0;
                    this.name_ = "";
                    this.code_ = "";
                    this.exchange_ = 0;
                    this.category_ = 0;
                    this.session_ = 0;
                    this.change_ = 0;
                    this.ratio_ = 0;
                    this.type_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

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

                public goods clearChange() {
                    this.change_ = 0;
                    this.bitField0_ &= -65;
                    return this;
                }

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

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

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

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

                public goods clearRatio() {
                    this.ratio_ = 0;
                    this.bitField0_ &= -129;
                    return this;
                }

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

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

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.id_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.name_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.code_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.exchange_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.category_);
                    }
                    if ((this.bitField0_ & 32) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(6, this.session_);
                    }
                    if ((this.bitField0_ & 64) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(7, this.change_);
                    }
                    if ((this.bitField0_ & 128) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(8, this.ratio_);
                    }
                    if ((this.bitField0_ & 256) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeInt32Size(9, this.type_);
                    }
                    return computeSerializedSize;
                }

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

                public int getChange() {
                    return this.change_;
                }

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

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

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

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

                public int getRatio() {
                    return this.ratio_;
                }

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

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

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

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

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

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

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

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

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

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

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

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

                public goods setChange(int i10) {
                    this.change_ = i10;
                    this.bitField0_ |= 64;
                    return this;
                }

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

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

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

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

                public goods setRatio(int i10) {
                    this.ratio_ = i10;
                    this.bitField0_ |= 128;
                    return this;
                }

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

                public goods setType(int i10) {
                    this.type_ = i10;
                    this.bitField0_ |= 256;
                    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.writeString(2, this.name_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeString(3, this.code_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        codedOutputByteBufferNano.writeUInt32(4, this.exchange_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        codedOutputByteBufferNano.writeUInt64(5, this.category_);
                    }
                    if ((this.bitField0_ & 32) != 0) {
                        codedOutputByteBufferNano.writeUInt32(6, this.session_);
                    }
                    if ((this.bitField0_ & 64) != 0) {
                        codedOutputByteBufferNano.writeSInt32(7, this.change_);
                    }
                    if ((this.bitField0_ & 128) != 0) {
                        codedOutputByteBufferNano.writeSInt32(8, this.ratio_);
                    }
                    if ((this.bitField0_ & 256) != 0) {
                        codedOutputByteBufferNano.writeInt32(9, this.type_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public goods 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 == 18) {
                            this.name_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 2;
                        } else if (readTag == 26) {
                            this.code_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 4;
                        } else if (readTag == 32) {
                            this.exchange_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 8;
                        } else if (readTag == 40) {
                            this.category_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 16;
                        } else if (readTag == 48) {
                            this.session_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 32;
                        } else if (readTag == 56) {
                            this.change_ = codedInputByteBufferNano.readSInt32();
                            this.bitField0_ |= 64;
                        } else if (readTag == 64) {
                            this.ratio_ = codedInputByteBufferNano.readSInt32();
                            this.bitField0_ |= 128;
                        } else if (readTag == 72) {
                            this.type_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 256;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

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

                private static volatile groups[] _emptyArray;

                private int bitField0_;

                private long category_;

                private int change_;

                private String code_;

                private int exchange_;

                private int id_;

                private String name_;

                private int ratio_;

                private String reason_;

                private int session_;

                private int time_;

                private int type_;

                public groups() {
                    clear();
                }

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

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

                public groups clear() {
                    this.bitField0_ = 0;
                    this.id_ = 0;
                    this.name_ = "";
                    this.code_ = "";
                    this.exchange_ = 0;
                    this.category_ = 0;
                    this.session_ = 0;
                    this.change_ = 0;
                    this.ratio_ = 0;
                    this.time_ = 0;
                    this.reason_ = "";
                    this.type_ = 0;
                    this.cachedSize = -1;
                    return this;
                }

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

                public groups clearChange() {
                    this.change_ = 0;
                    this.bitField0_ &= -65;
                    return this;
                }

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

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

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

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

                public groups clearRatio() {
                    this.ratio_ = 0;
                    this.bitField0_ &= -129;
                    return this;
                }

                public groups clearReason() {
                    this.reason_ = "";
                    this.bitField0_ &= -513;
                    return this;
                }

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

                public groups clearTime() {
                    this.time_ = 0;
                    this.bitField0_ &= -257;
                    return this;
                }

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

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.id_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.name_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.code_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.exchange_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.category_);
                    }
                    if ((this.bitField0_ & 32) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(6, this.session_);
                    }
                    if ((this.bitField0_ & 64) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(7, this.change_);
                    }
                    if ((this.bitField0_ & 128) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeSInt32Size(8, this.ratio_);
                    }
                    if ((this.bitField0_ & 256) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(9, this.time_);
                    }
                    if ((this.bitField0_ & 512) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(10, this.reason_);
                    }
                    if ((this.bitField0_ & 1024) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeSInt32Size(11, this.type_);
                    }
                    return computeSerializedSize;
                }

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

                public int getChange() {
                    return this.change_;
                }

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

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

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

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

                public int getRatio() {
                    return this.ratio_;
                }

                public String getReason() {
                    return this.reason_;
                }

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

                public int getTime() {
                    return this.time_;
                }

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

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

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

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

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

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

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

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

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

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

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

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

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

                public groups setChange(int i10) {
                    this.change_ = i10;
                    this.bitField0_ |= 64;
                    return this;
                }

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

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

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

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

                public groups setRatio(int i10) {
                    this.ratio_ = i10;
                    this.bitField0_ |= 128;
                    return this;
                }

                public groups setReason(String str) {
                    str.getClass();
                    this.reason_ = str;
                    this.bitField0_ |= 512;
                    return this;
                }

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

                public groups setTime(int i10) {
                    this.time_ = i10;
                    this.bitField0_ |= 256;
                    return this;
                }

                public groups setType(int i10) {
                    this.type_ = i10;
                    this.bitField0_ |= 1024;
                    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.writeString(2, this.name_);
                    }
                    if ((this.bitField0_ & 4) != 0) {
                        codedOutputByteBufferNano.writeString(3, this.code_);
                    }
                    if ((this.bitField0_ & 8) != 0) {
                        codedOutputByteBufferNano.writeUInt32(4, this.exchange_);
                    }
                    if ((this.bitField0_ & 16) != 0) {
                        codedOutputByteBufferNano.writeUInt64(5, this.category_);
                    }
                    if ((this.bitField0_ & 32) != 0) {
                        codedOutputByteBufferNano.writeUInt32(6, this.session_);
                    }
                    if ((this.bitField0_ & 64) != 0) {
                        codedOutputByteBufferNano.writeSInt32(7, this.change_);
                    }
                    if ((this.bitField0_ & 128) != 0) {
                        codedOutputByteBufferNano.writeSInt32(8, this.ratio_);
                    }
                    if ((this.bitField0_ & 256) != 0) {
                        codedOutputByteBufferNano.writeUInt32(9, this.time_);
                    }
                    if ((this.bitField0_ & 512) != 0) {
                        codedOutputByteBufferNano.writeString(10, this.reason_);
                    }
                    if ((this.bitField0_ & 1024) != 0) {
                        codedOutputByteBufferNano.writeSInt32(11, this.type_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public groups mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        switch(readTag) {
                            case 0:
                                return this;
                            case 8:
                                this.id_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 1;
                                break;
                            case 18:
                                this.name_ = codedInputByteBufferNano.readString();
                                this.bitField0_ |= 2;
                                break;
                            case 26:
                                this.code_ = codedInputByteBufferNano.readString();
                                this.bitField0_ |= 4;
                                break;
                            case 32:
                                this.exchange_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 8;
                                break;
                            case 40:
                                this.category_ = codedInputByteBufferNano.readUInt64();
                                this.bitField0_ |= 16;
                                break;
                            case 48:
                                this.session_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 32;
                                break;
                            case 56:
                                this.change_ = codedInputByteBufferNano.readSInt32();
                                this.bitField0_ |= 64;
                                break;
                            case 64:
                                this.ratio_ = codedInputByteBufferNano.readSInt32();
                                this.bitField0_ |= 128;
                                break;
                            case 72:
                                this.time_ = codedInputByteBufferNano.readUInt32();
                                this.bitField0_ |= 256;
                                break;
                            case 82:
                                this.reason_ = codedInputByteBufferNano.readString();
                                this.bitField0_ |= 512;
                                break;
                            case 88:
                                this.type_ = codedInputByteBufferNano.readSInt32();
                                this.bitField0_ |= 1024;
                                break;
                            default:
                                if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                    break;
                                } else {
                                    return this;
                                }
                        }
                    }
                }
            }

            public detail() {
                clear();
            }

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

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

            public detail clear() {
                this.block = null;
                this.stocks = goods.emptyArray();
                this.cachedSize = -1;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                groups groups2 = this.block;
                if (groups2 != null) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, groups2);
                }
                goods[] goodsArr = this.stocks;
                if (goodsArr != null && goodsArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        goods[] goodsArr2 = this.stocks;
                        if (i10 >= goodsArr2.length) {
                            break;
                        }
                        goods goods2 = goodsArr2[i10];
                        if (goods2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, goods2);
                        }
                        i10++;
                    }
                }
                return computeSerializedSize;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                groups groups2 = this.block;
                if (groups2 != null) {
                    codedOutputByteBufferNano.writeMessage(1, groups2);
                }
                goods[] goodsArr = this.stocks;
                if (goodsArr != null && goodsArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        goods[] goodsArr2 = this.stocks;
                        if (i10 >= goodsArr2.length) {
                            break;
                        }
                        goods goods2 = goodsArr2[i10];
                        if (goods2 != null) {
                            codedOutputByteBufferNano.writeMessage(2, goods2);
                        }
                        i10++;
                    }
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public detail mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 10) {
                        if (this.block == null) {
                            this.block = new groups();
                        }
                        codedInputByteBufferNano.readMessage(this.block);
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        goods[] goodsArr = this.stocks;
                        int length = goodsArr == null ? 0 : goodsArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        goods[] goodsArr2 = new goods[i10];
                        if (length != 0) {
                            System.arraycopy(goodsArr, 0, goodsArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            goods goods2 = new goods();
                            goodsArr2[length] = goods2;
                            codedInputByteBufferNano.readMessage(goods2);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        goods goods3 = new goods();
                        goodsArr2[length] = goods3;
                        codedInputByteBufferNano.readMessage(goods3);
                        this.stocks = goodsArr2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public BlockAttack_Response() {
            clear();
        }

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

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

        public BlockAttack_Response clear() {
            this.bitField0_ = 0;
            this.inputParam = null;
            this.blocks = detail.emptyArray();
            this.date_ = 0;
            this.limit_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public BlockAttack_Response clearDate() {
            this.date_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public BlockAttack_Response clearLimit() {
            this.limit_ = 0;
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            BlockAttackRequest.BlockAttack_Request blockAttack_Request = this.inputParam;
            if (blockAttack_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, blockAttack_Request);
            }
            detail[] detailArr = this.blocks;
            if (detailArr != null && detailArr.length > 0) {
                int i10 = 0;
                while (true) {
                    detail[] detailArr2 = this.blocks;
                    if (i10 >= detailArr2.length) {
                        break;
                    }
                    detail detail2 = detailArr2[i10];
                    if (detail2 != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, detail2);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.date_);
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(4, this.limit_);
            }
            return computeSerializedSize;
        }

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

        public int getLimit() {
            return this.limit_;
        }

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

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

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

        public BlockAttack_Response setLimit(int i10) {
            this.limit_ = i10;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            BlockAttackRequest.BlockAttack_Request blockAttack_Request = this.inputParam;
            if (blockAttack_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, blockAttack_Request);
            }
            detail[] detailArr = this.blocks;
            if (detailArr != null && detailArr.length > 0) {
                int i10 = 0;
                while (true) {
                    detail[] detailArr2 = this.blocks;
                    if (i10 >= detailArr2.length) {
                        break;
                    }
                    detail detail2 = detailArr2[i10];
                    if (detail2 != null) {
                        codedOutputByteBufferNano.writeMessage(2, detail2);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.date_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.limit_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public BlockAttack_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 BlockAttackRequest.BlockAttack_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.inputParam);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    detail[] detailArr = this.blocks;
                    int length = detailArr == null ? 0 : detailArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    detail[] detailArr2 = new detail[i10];
                    if (length != 0) {
                        System.arraycopy(detailArr, 0, detailArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        detail detail2 = new detail();
                        detailArr2[length] = detail2;
                        codedInputByteBufferNano.readMessage(detail2);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    detail detail3 = new detail();
                    detailArr2[length] = detail3;
                    codedInputByteBufferNano.readMessage(detail3);
                    this.blocks = detailArr2;
                } else if (readTag == 24) {
                    this.date_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 32) {
                    this.limit_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
