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

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

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

        private static volatile Transaction_Response[] _emptyArray;

        private int bitField0_;

        public TransactionRequest.Transaction_Request requestParams;

        private int totalnum_;

        public Transaction[] transaction;

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

            private static volatile Transaction[] _emptyArray;

            private int bitField0_;

            private long dealmoney_;

            private long dealtime_;

            private long entrusttime_;

            private long fundbalances_;

            private int idx_;

            private String moneyname_;

            private int moneytype_;

            private long payeeid_;

            private String payeename_;

            private long payerid_;

            private String payername_;

            private String remark_;

            private long transactionNo_;

            private String transflag_;

            private String transname_;

            private int transresult_;

            public Transaction() {
                clear();
            }

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

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

            public Transaction clear() {
                this.bitField0_ = 0;
                this.idx_ = 0;
                this.entrusttime_ = 0;
                this.dealtime_ = 0;
                this.payername_ = "";
                this.payerid_ = 0;
                this.payeename_ = "";
                this.payeeid_ = 0;
                this.moneytype_ = 0;
                this.moneyname_ = "";
                this.dealmoney_ = 0;
                this.fundbalances_ = 0;
                this.transactionNo_ = 0;
                this.transflag_ = "";
                this.transname_ = "";
                this.transresult_ = 0;
                this.remark_ = "";
                this.cachedSize = -1;
                return this;
            }

            public Transaction clearDealmoney() {
                this.dealmoney_ = 0;
                this.bitField0_ &= -513;
                return this;
            }

            public Transaction clearDealtime() {
                this.dealtime_ = 0;
                this.bitField0_ &= -5;
                return this;
            }

            public Transaction clearEntrusttime() {
                this.entrusttime_ = 0;
                this.bitField0_ &= -3;
                return this;
            }

            public Transaction clearFundbalances() {
                this.fundbalances_ = 0;
                this.bitField0_ &= -1025;
                return this;
            }

            public Transaction clearIdx() {
                this.idx_ = 0;
                this.bitField0_ &= -2;
                return this;
            }

            public Transaction clearMoneyname() {
                this.moneyname_ = "";
                this.bitField0_ &= -257;
                return this;
            }

            public Transaction clearMoneytype() {
                this.moneytype_ = 0;
                this.bitField0_ &= -129;
                return this;
            }

            public Transaction clearPayeeid() {
                this.payeeid_ = 0;
                this.bitField0_ &= -65;
                return this;
            }

            public Transaction clearPayeename() {
                this.payeename_ = "";
                this.bitField0_ &= -33;
                return this;
            }

            public Transaction clearPayerid() {
                this.payerid_ = 0;
                this.bitField0_ &= -17;
                return this;
            }

            public Transaction clearPayername() {
                this.payername_ = "";
                this.bitField0_ &= -9;
                return this;
            }

            public Transaction clearRemark() {
                this.remark_ = "";
                this.bitField0_ &= -32769;
                return this;
            }

            public Transaction clearTransactionNo() {
                this.transactionNo_ = 0;
                this.bitField0_ &= -2049;
                return this;
            }

            public Transaction clearTransflag() {
                this.transflag_ = "";
                this.bitField0_ &= -4097;
                return this;
            }

            public Transaction clearTransname() {
                this.transname_ = "";
                this.bitField0_ &= -8193;
                return this;
            }

            public Transaction clearTransresult() {
                this.transresult_ = 0;
                this.bitField0_ &= -16385;
                return this;
            }

            /* access modifiers changed from: protected */
            public int computeSerializedSize() {
                int computeSerializedSize = super.computeSerializedSize();
                if ((this.bitField0_ & 1) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.idx_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(2, this.entrusttime_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(3, this.dealtime_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(4, this.payername_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.payerid_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(6, this.payeename_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(7, this.payeeid_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(8, this.moneytype_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(9, this.moneyname_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeSInt64Size(10, this.dealmoney_);
                }
                if ((this.bitField0_ & 1024) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(11, this.fundbalances_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(12, this.transactionNo_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(13, this.transflag_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(14, this.transname_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    computeSerializedSize += CodedOutputByteBufferNano.computeInt32Size(15, this.transresult_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(16, this.remark_);
                }
                return computeSerializedSize;
            }

            public long getDealmoney() {
                return this.dealmoney_;
            }

            public long getDealtime() {
                return this.dealtime_;
            }

            public long getEntrusttime() {
                return this.entrusttime_;
            }

            public long getFundbalances() {
                return this.fundbalances_;
            }

            public int getIdx() {
                return this.idx_;
            }

            public String getMoneyname() {
                return this.moneyname_;
            }

            public int getMoneytype() {
                return this.moneytype_;
            }

            public long getPayeeid() {
                return this.payeeid_;
            }

            public String getPayeename() {
                return this.payeename_;
            }

            public long getPayerid() {
                return this.payerid_;
            }

            public String getPayername() {
                return this.payername_;
            }

            public String getRemark() {
                return this.remark_;
            }

            public long getTransactionNo() {
                return this.transactionNo_;
            }

            public String getTransflag() {
                return this.transflag_;
            }

            public String getTransname() {
                return this.transname_;
            }

            public int getTransresult() {
                return this.transresult_;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            public Transaction setDealmoney(long j10) {
                this.dealmoney_ = j10;
                this.bitField0_ |= 512;
                return this;
            }

            public Transaction setDealtime(long j10) {
                this.dealtime_ = j10;
                this.bitField0_ |= 4;
                return this;
            }

            public Transaction setEntrusttime(long j10) {
                this.entrusttime_ = j10;
                this.bitField0_ |= 2;
                return this;
            }

            public Transaction setFundbalances(long j10) {
                this.fundbalances_ = j10;
                this.bitField0_ |= 1024;
                return this;
            }

            public Transaction setIdx(int i10) {
                this.idx_ = i10;
                this.bitField0_ |= 1;
                return this;
            }

            public Transaction setMoneyname(String str) {
                str.getClass();
                this.moneyname_ = str;
                this.bitField0_ |= 256;
                return this;
            }

            public Transaction setMoneytype(int i10) {
                this.moneytype_ = i10;
                this.bitField0_ |= 128;
                return this;
            }

            public Transaction setPayeeid(long j10) {
                this.payeeid_ = j10;
                this.bitField0_ |= 64;
                return this;
            }

            public Transaction setPayeename(String str) {
                str.getClass();
                this.payeename_ = str;
                this.bitField0_ |= 32;
                return this;
            }

            public Transaction setPayerid(long j10) {
                this.payerid_ = j10;
                this.bitField0_ |= 16;
                return this;
            }

            public Transaction setPayername(String str) {
                str.getClass();
                this.payername_ = str;
                this.bitField0_ |= 8;
                return this;
            }

            public Transaction setRemark(String str) {
                str.getClass();
                this.remark_ = str;
                this.bitField0_ |= 32768;
                return this;
            }

            public Transaction setTransactionNo(long j10) {
                this.transactionNo_ = j10;
                this.bitField0_ |= 2048;
                return this;
            }

            public Transaction setTransflag(String str) {
                str.getClass();
                this.transflag_ = str;
                this.bitField0_ |= 4096;
                return this;
            }

            public Transaction setTransname(String str) {
                str.getClass();
                this.transname_ = str;
                this.bitField0_ |= 8192;
                return this;
            }

            public Transaction setTransresult(int i10) {
                this.transresult_ = i10;
                this.bitField0_ |= 16384;
                return this;
            }

            public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
                if ((this.bitField0_ & 1) != 0) {
                    codedOutputByteBufferNano.writeUInt32(1, this.idx_);
                }
                if ((this.bitField0_ & 2) != 0) {
                    codedOutputByteBufferNano.writeUInt64(2, this.entrusttime_);
                }
                if ((this.bitField0_ & 4) != 0) {
                    codedOutputByteBufferNano.writeUInt64(3, this.dealtime_);
                }
                if ((this.bitField0_ & 8) != 0) {
                    codedOutputByteBufferNano.writeString(4, this.payername_);
                }
                if ((this.bitField0_ & 16) != 0) {
                    codedOutputByteBufferNano.writeUInt64(5, this.payerid_);
                }
                if ((this.bitField0_ & 32) != 0) {
                    codedOutputByteBufferNano.writeString(6, this.payeename_);
                }
                if ((this.bitField0_ & 64) != 0) {
                    codedOutputByteBufferNano.writeUInt64(7, this.payeeid_);
                }
                if ((this.bitField0_ & 128) != 0) {
                    codedOutputByteBufferNano.writeUInt32(8, this.moneytype_);
                }
                if ((this.bitField0_ & 256) != 0) {
                    codedOutputByteBufferNano.writeString(9, this.moneyname_);
                }
                if ((this.bitField0_ & 512) != 0) {
                    codedOutputByteBufferNano.writeSInt64(10, this.dealmoney_);
                }
                if ((this.bitField0_ & 1024) != 0) {
                    codedOutputByteBufferNano.writeUInt64(11, this.fundbalances_);
                }
                if ((this.bitField0_ & 2048) != 0) {
                    codedOutputByteBufferNano.writeUInt64(12, this.transactionNo_);
                }
                if ((this.bitField0_ & 4096) != 0) {
                    codedOutputByteBufferNano.writeString(13, this.transflag_);
                }
                if ((this.bitField0_ & 8192) != 0) {
                    codedOutputByteBufferNano.writeString(14, this.transname_);
                }
                if ((this.bitField0_ & 16384) != 0) {
                    codedOutputByteBufferNano.writeInt32(15, this.transresult_);
                }
                if ((this.bitField0_ & 32768) != 0) {
                    codedOutputByteBufferNano.writeString(16, this.remark_);
                }
                super.writeTo(codedOutputByteBufferNano);
            }

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

            public Transaction mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
                while (true) {
                    int readTag = codedInputByteBufferNano.readTag();
                    switch(readTag) {
                        case 0:
                            return this;
                        case 8:
                            this.idx_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 1;
                            break;
                        case 16:
                            this.entrusttime_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 2;
                            break;
                        case 24:
                            this.dealtime_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 4;
                            break;
                        case 34:
                            this.payername_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 8;
                            break;
                        case 40:
                            this.payerid_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 16;
                            break;
                        case 50:
                            this.payeename_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 32;
                            break;
                        case 56:
                            this.payeeid_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 64;
                            break;
                        case 64:
                            this.moneytype_ = codedInputByteBufferNano.readUInt32();
                            this.bitField0_ |= 128;
                            break;
                        case 74:
                            this.moneyname_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 256;
                            break;
                        case 80:
                            this.dealmoney_ = codedInputByteBufferNano.readSInt64();
                            this.bitField0_ |= 512;
                            break;
                        case 88:
                            this.fundbalances_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 1024;
                            break;
                        case 96:
                            this.transactionNo_ = codedInputByteBufferNano.readUInt64();
                            this.bitField0_ |= 2048;
                            break;
                        case 106:
                            this.transflag_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 4096;
                            break;
                        case 114:
                            this.transname_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 8192;
                            break;
                        case 120:
                            this.transresult_ = codedInputByteBufferNano.readInt32();
                            this.bitField0_ |= 16384;
                            break;
                        case 130:
                            this.remark_ = codedInputByteBufferNano.readString();
                            this.bitField0_ |= 32768;
                            break;
                        default:
                            if (WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                                break;
                            } else {
                                return this;
                            }
                    }
                }
            }
        }

        public Transaction_Response() {
            clear();
        }

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

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

        public Transaction_Response clear() {
            this.bitField0_ = 0;
            this.requestParams = null;
            this.transaction = Transaction.emptyArray();
            this.totalnum_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public Transaction_Response clearTotalnum() {
            this.totalnum_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            TransactionRequest.Transaction_Request transaction_Request = this.requestParams;
            if (transaction_Request != null) {
                computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(1, transaction_Request);
            }
            Transaction[] transactionArr = this.transaction;
            if (transactionArr != null && transactionArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Transaction[] transactionArr2 = this.transaction;
                    if (i10 >= transactionArr2.length) {
                        break;
                    }
                    Transaction transaction2 = transactionArr2[i10];
                    if (transaction2 != null) {
                        computeSerializedSize += CodedOutputByteBufferNano.computeMessageSize(2, transaction2);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(3, this.totalnum_);
            }
            return computeSerializedSize;
        }

        public int getTotalnum() {
            return this.totalnum_;
        }

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

        public Transaction_Response setTotalnum(int i10) {
            this.totalnum_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            TransactionRequest.Transaction_Request transaction_Request = this.requestParams;
            if (transaction_Request != null) {
                codedOutputByteBufferNano.writeMessage(1, transaction_Request);
            }
            Transaction[] transactionArr = this.transaction;
            if (transactionArr != null && transactionArr.length > 0) {
                int i10 = 0;
                while (true) {
                    Transaction[] transactionArr2 = this.transaction;
                    if (i10 >= transactionArr2.length) {
                        break;
                    }
                    Transaction transaction2 = transactionArr2[i10];
                    if (transaction2 != null) {
                        codedOutputByteBufferNano.writeMessage(2, transaction2);
                    }
                    i10++;
                }
            }
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(3, this.totalnum_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

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

        public Transaction_Response mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 10) {
                    if (this.requestParams == null) {
                        this.requestParams = new TransactionRequest.Transaction_Request();
                    }
                    codedInputByteBufferNano.readMessage(this.requestParams);
                } else if (readTag == 18) {
                    int repeatedFieldArrayLength = WireFormatNano.getRepeatedFieldArrayLength(codedInputByteBufferNano, 18);
                    Transaction[] transactionArr = this.transaction;
                    int length = transactionArr == null ? 0 : transactionArr.length;
                    int i10 = repeatedFieldArrayLength + length;
                    Transaction[] transactionArr2 = new Transaction[i10];
                    if (length != 0) {
                        System.arraycopy(transactionArr, 0, transactionArr2, 0, length);
                    }
                    while (length < i10 - 1) {
                        Transaction transaction2 = new Transaction();
                        transactionArr2[length] = transaction2;
                        codedInputByteBufferNano.readMessage(transaction2);
                        codedInputByteBufferNano.readTag();
                        length++;
                    }
                    Transaction transaction3 = new Transaction();
                    transactionArr2[length] = transaction3;
                    codedInputByteBufferNano.readMessage(transaction3);
                    this.transaction = transactionArr2;
                } else if (readTag == 24) {
                    this.totalnum_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
