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

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

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

        private static volatile MixHome_Response[] _emptyArray;

        public NetCapitalFlow aMT;

        public ValueData[] groups;

        public MixHomeRequest.MixHome_Request input;

        public NetCapitalFlow main;

        public NetCapitalFlow nB;

        public NetCapitalFlow north;

        public NetCapitalFlow sB;

        public NetCapitalFlow south;

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

            private static volatile NetCapitalFlow[] _emptyArray;

            private int bitField0_;

            private String msg_;

            private long val_;

            public NetCapitalFlow() {
                clear();
            }

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

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

            public NetCapitalFlow clear() {
                this.bitField0_ = 0;
                this.val_ = 0;
                this.msg_ = "";
                this.cachedSize = -1;
                return this;
            }

            public NetCapitalFlow clearMsg() {
                this.msg_ = "";
                this.bitField0_ &= -3;
                return this;
            }

            public NetCapitalFlow clearVal() {
                this.val_ = 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.computeInt64Size(1, this.val_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(3, this.msg_);
                }
                return computeSerializedSize;
            }

            public String getMsg() {
                return this.msg_;
            }

            public long getVal() {
                return this.val_;
            }

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

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

            public NetCapitalFlow setMsg(String str) {
                str.getClass();
                this.msg_ = str;
                this.bitField0_ |= 2;
                return this;
            }

            public NetCapitalFlow setVal(long j10) {
                this.val_ = j10;
                this.bitField0_ |= 1;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeInt64(1, this.val_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeString(3, this.msg_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public NetCapitalFlow mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.val_ = codedInputByteBufferNano.readInt64();
                        this.bitField0_ |= 1;
                    } else if (readTag == 26) {
                        this.msg_ = codedInputByteBufferNano.readString();
                        this.bitField0_ |= 2;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

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

            private static volatile ValueData[] _emptyArray;

            private int bitField0_;

            private long category_;

            private int exchange_;

            public id_val[] fieldValue;

            private int goodsId_;

            private int tradeSession_;

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

                private static volatile id_val[] _emptyArray;

                private int bitField0_;

                private int id_;

                private String val_;

                public id_val() {
                    clear();
                }

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

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

                public id_val clear() {
                    this.bitField0_ = 0;
                    this.id_ = 0;
                    this.val_ = "";
                    this.cachedSize = -1;
                    return this;
                }

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

                public id_val clearVal() {
                    this.val_ = "";
                    this.bitField0_ &= -3;
                    return this;
                }

                /* access modifiers changed from: protected */
                public int computeSerializedSize() {
                    int computeSerializedSize = super.computeSerializedSize();
                    if ((this.bitField0_ & 1) != 0) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(1, this.id_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(2, this.val_);
                    }
                    return computeSerializedSize;
                }

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

                public String getVal() {
                    return this.val_;
                }

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

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

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

                public id_val setVal(String str) {
                    str.getClass();
                    this.val_ = str;
                    this.bitField0_ |= 2;
                    return this;
                }

                public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                    if ((this.bitField0_ & 1) != 0) {
                        codedOutputByteBufferNano.writeInt32(1, this.id_);
                    }
                    if ((this.bitField0_ & 2) != 0) {
                        codedOutputByteBufferNano.writeString(2, this.val_);
                    }
                    super.writeTo(codedOutputByteBufferNano);
                }

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

                public id_val mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                    while (true) {
                        int readTag = codedInputByteBufferNano.readTag();
                        if (readTag == 0) {
                            return this;
                        }
                        if (readTag == 8) {
                            this.id_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 1;
                        } else if (readTag == 18) {
                            this.val_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 2;
                        } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                            return this;
                        }
                    }
                }
            }

            public ValueData() {
                clear();
            }

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

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

            public ValueData clear() {
                this.bitField0_ = 0;
                this.goodsId_ = 0;
                this.fieldValue = id_val.emptyArray();
                this.exchange_ = 0;
                this.category_ = 0;
                this.tradeSession_ = 0;
                this.cachedSize = -1;
                return this;
            }

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

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

            public ValueData clearGoodsId() {
                this.goodsId_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public ValueData clearTradeSession() {
                this.tradeSession_ = 0;
                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.goodsId_);
                }
                id_val[] id_valArr = this.fieldValue;
                if (id_valArr != null && id_valArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        id_val[] id_valArr2 = this.fieldValue;
                        if (i10 >= id_valArr2.length) {
                            break;
                        }
                        id_val id_val2 = id_valArr2[i10];
                        if (id_val2 != null) {
                            computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, id_val2);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(3, this.exchange_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(4, this.category_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(5, this.tradeSession_);
                }
                return computeSerializedSize;
            }

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

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

            public int getGoodsId() {
                return this.goodsId_;
            }

            public int getTradeSession() {
                return this.tradeSession_;
            }

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

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

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

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

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

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

            public ValueData setGoodsId(int i10) {
                this.goodsId_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public ValueData setTradeSession(int i10) {
                this.tradeSession_ = i10;
                this.bitField0_ |= 8;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.goodsId_);
                }
                id_val[] id_valArr = this.fieldValue;
                if (id_valArr != null && id_valArr.length > 0) {
                    int i10 = 0;
                    while (true) {
                        id_val[] id_valArr2 = this.fieldValue;
                        if (i10 >= id_valArr2.length) {
                            break;
                        }
                        id_val id_val2 = id_valArr2[i10];
                        if (id_val2 != null) {
                            codedOutputByteBufferNano.writeMessage(2, id_val2);
                        }
                        i10++;
                    }
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt32(3, this.exchange_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt64(4, this.category_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeUInt32(5, this.tradeSession_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public ValueData mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    if (readTag == 0) {
                        return this;
                    }
                    if (readTag == 8) {
                        this.goodsId_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 1;
                    } else if (readTag == 18) {
                        int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                        id_val[] id_valArr = this.fieldValue;
                        int length = id_valArr == null ? 0 : id_valArr.length;
                        int i10 = repeatedFieldArrayLength + length;
                        id_val[] id_valArr2 = new id_val[i10];
                        if (length != 0) {
                            System.arraycopy(id_valArr, 0, id_valArr2, 0, length);
                        }
                        while (length < i10 - 1) {
                            id_val id_val2 = new id_val();
                            id_valArr2[length] = id_val2;
                            codedInputByteBufferNano.readMessage(id_val2);
                            codedInputByteBufferNano.readTag();
                            length++;
                        }
                        id_val id_val3 = new id_val();
                        id_valArr2[length] = id_val3;
                        codedInputByteBufferNano.readMessage(id_val3);
                        this.fieldValue = id_valArr2;
                    } else if (readTag == 24) {
                        this.exchange_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 2;
                    } else if (readTag == 32) {
                        this.category_ = codedInputByteBufferNano.readUInt64();
                        this.bitField0_ |= 4;
                    } else if (readTag == 40) {
                        this.tradeSession_ = codedInputByteBufferNano.readUInt32();
                        this.bitField0_ |= 8;
                    } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                        return this;
                    }
                }
            }
        }

        public MixHome_Response() {
            clear();
        }

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

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

        public MixHome_Response clear() {
            this.input = null;
            this.groups = ValueData.emptyArray();
            this.main = null;
            this.north = null;
            this.south = null;
            this.nB = null;
            this.sB = null;
            this.aMT = null;
            this.cachedSize = -1;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            MixHomeRequest.MixHome_Request mixHome_Request = this.input;
            if (mixHome_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, mixHome_Request);
            }
            ValueData[] valueDataArr = this.groups;
            if (valueDataArr != null && valueDataArr.length > 0) {
                int i10 = 0;
                while (true) {
                    ValueData[] valueDataArr2 = this.groups;
                    if (i10 >= valueDataArr2.length) {
                        break;
                    }
                    ValueData valueData = valueDataArr2[i10];
                    if (valueData != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, valueData);
                    }
                    i10++;
                }
            }
            NetCapitalFlow netCapitalFlow = this.main;
            if (netCapitalFlow != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(3, netCapitalFlow);
            }
            NetCapitalFlow netCapitalFlow2 = this.north;
            if (netCapitalFlow2 != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(4, netCapitalFlow2);
            }
            NetCapitalFlow netCapitalFlow3 = this.south;
            if (netCapitalFlow3 != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(5, netCapitalFlow3);
            }
            NetCapitalFlow netCapitalFlow4 = this.nB;
            if (netCapitalFlow4 != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(6, netCapitalFlow4);
            }
            NetCapitalFlow netCapitalFlow5 = this.sB;
            if (netCapitalFlow5 != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(7, netCapitalFlow5);
            }
            NetCapitalFlow netCapitalFlow6 = this.aMT;
            if (netCapitalFlow6 != null) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeMessageSize(8, netCapitalFlow6);
            }
            return computeSerializedSize;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            MixHomeRequest.MixHome_Request mixHome_Request = this.input;
            if (mixHome_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, mixHome_Request);
            }
            ValueData[] valueDataArr = this.groups;
            if (valueDataArr != null && valueDataArr.length > 0) {
                int i10 = 0;
                while (true) {
                    ValueData[] valueDataArr2 = this.groups;
                    if (i10 >= valueDataArr2.length) {
                        break;
                    }
                    ValueData valueData = valueDataArr2[i10];
                    if (valueData != null) {
                        codedOutputByteBufferNano.writeMessage(2, valueData);
                    }
                    i10++;
                }
            }
            NetCapitalFlow netCapitalFlow = this.main;
            if (netCapitalFlow != null) {
                codedOutputByteBufferNano.writeMessage(3, netCapitalFlow);
            }
            NetCapitalFlow netCapitalFlow2 = this.north;
            if (netCapitalFlow2 != null) {
                codedOutputByteBufferNano.writeMessage(4, netCapitalFlow2);
            }
            NetCapitalFlow netCapitalFlow3 = this.south;
            if (netCapitalFlow3 != null) {
                codedOutputByteBufferNano.writeMessage(5, netCapitalFlow3);
            }
            NetCapitalFlow netCapitalFlow4 = this.nB;
            if (netCapitalFlow4 != null) {
                codedOutputByteBufferNano.writeMessage(6, netCapitalFlow4);
            }
            NetCapitalFlow netCapitalFlow5 = this.sB;
            if (netCapitalFlow5 != null) {
                codedOutputByteBufferNano.writeMessage(7, netCapitalFlow5);
            }
            NetCapitalFlow netCapitalFlow6 = this.aMT;
            if (netCapitalFlow6 != null) {
                codedOutputByteBufferNano.writeMessage(8, netCapitalFlow6);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public MixHome_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 MixHomeRequest.MixHome_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.input);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    ValueData[] valueDataArr = this.groups;
                    int length = valueDataArr == null ? 0 : valueDataArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    ValueData[] valueDataArr2 = new ValueData[i10];
                    if (length != 0) {
                        System.arraycopy(valueDataArr, 0, valueDataArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        ValueData valueData = new ValueData();
                        valueDataArr2[length] = valueData;
                        codedInputByteBufferNano.readMessage(valueData);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    ValueData valueData2 = new ValueData();
                    valueDataArr2[length] = valueData2;
                    codedInputByteBufferNano.readMessage(valueData2);
                    this.groups = valueDataArr2;
                } else if (readTag == 26) {
                    if (this.main == null) {
                        this.main = new NetCapitalFlow();
                    }
                    codedInputByteBufferNano.readMessage(this.main);
                } else if (readTag == 34) {
                    if (this.north == null) {
                        this.north = new NetCapitalFlow();
                    }
                    codedInputByteBufferNano.readMessage(this.north);
                } else if (readTag == 42) {
                    if (this.south == null) {
                        this.south = new NetCapitalFlow();
                    }
                    codedInputByteBufferNano.readMessage(this.south);
                } else if (readTag == 50) {
                    if (this.nB == null) {
                        this.nB = new NetCapitalFlow();
                    }
                    codedInputByteBufferNano.readMessage(this.nB);
                } else if (readTag == 58) {
                    if (this.sB == null) {
                        this.sB = new NetCapitalFlow();
                    }
                    codedInputByteBufferNano.readMessage(this.sB);
                } else if (readTag == 66) {
                    if (this.aMT == null) {
                        this.aMT = new NetCapitalFlow();
                    }
                    codedInputByteBufferNano.readMessage(this.aMT);
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
