public void MergeFrom(AccountingTransactionLine other) { if (other == null) { return; } if (other.debitAmount_ != null) { if (debitAmount_ == null) { debitAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } DebitAmount.MergeFrom(other.DebitAmount); } if (other.creditAmount_ != null) { if (creditAmount_ == null) { creditAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } CreditAmount.MergeFrom(other.CreditAmount); } if (other.Narration.Length != 0) { Narration = other.Narration; } if (other.account_ != null) { if (account_ == null) { account_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator(); } Account.MergeFrom(other.Account); } if (other.AccountName.Length != 0) { AccountName = other.AccountName; } if (other.AccountType != 0) { AccountType = other.AccountType; } if (other.Designation != 0) { Designation = other.Designation; } if (other.TransferIndication != 0) { TransferIndication = other.TransferIndication; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Accounting.AccountingTransactionLineIndicator(); } EntityId.MergeFrom(other.EntityId); } }
public void MergeFrom(PostedChargeCredit other) { if (other == null) { return; } if (other.Description.Length != 0) { Description = other.Description; } if (other.preTaxFeeSubtotal_ != null) { if (preTaxFeeSubtotal_ == null) { preTaxFeeSubtotal_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } PreTaxFeeSubtotal.MergeFrom(other.PreTaxFeeSubtotal); } taxesFees_.Add(other.taxesFees_); if (other.postedTime_ != null) { if (postedTime_ == null) { postedTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedTime.MergeFrom(other.PostedTime); } taxes_.Add(other.taxes_); fees_.Add(other.fees_); if (other.parentLine_ != null) { if (parentLine_ == null) { parentLine_ = new global::HOLMS.Types.Money.Accounting.AccountingTransactionLineIndicator(); } ParentLine.MergeFrom(other.ParentLine); } folioSwaps_.Add(other.folioSwaps_); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (debitAmount_ == null) { debitAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(debitAmount_); break; } case 18: { if (creditAmount_ == null) { creditAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(creditAmount_); break; } case 26: { Narration = input.ReadString(); break; } case 34: { if (account_ == null) { account_ = new global::HOLMS.Types.Money.Accounting.AccountIndicator(); } input.ReadMessage(account_); break; } case 42: { AccountName = input.ReadString(); break; } case 48: { accountType_ = (global::HOLMS.Types.Money.Accounting.LedgerAccountCategory)input.ReadEnum(); break; } case 58: { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Accounting.AccountingTransactionLineIndicator(); } input.ReadMessage(entityId_); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { Description = input.ReadString(); break; } case 18: { if (preTaxFeeSubtotal_ == null) { preTaxFeeSubtotal_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(preTaxFeeSubtotal_); break; } case 34: { taxesFees_.AddEntriesFrom(input, _repeated_taxesFees_codec); break; } case 42: { if (postedTime_ == null) { postedTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(postedTime_); break; } case 50: { taxes_.AddEntriesFrom(input, _repeated_taxes_codec); break; } case 58: { fees_.AddEntriesFrom(input, _repeated_fees_codec); break; } case 66: { if (parentLine_ == null) { parentLine_ = new global::HOLMS.Types.Money.Accounting.AccountingTransactionLineIndicator(); } input.ReadMessage(parentLine_); break; } case 74: { folioSwaps_.AddEntriesFrom(input, _repeated_folioSwaps_codec); break; } } } }