public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (transaction_ == null) { transaction_ = new global::Budget.Data.Data.Transaction(); } input.ReadMessage(transaction_); break; } case 26: { categories_.AddEntriesFrom(input, _repeated_categories_codec); break; } } } }
public void MergeFrom(UnsortedTransaction other) { if (other == null) { return; } if (other.transaction_ != null) { if (transaction_ == null) { transaction_ = new global::Budget.Data.Data.Transaction(); } Transaction.MergeFrom(other.Transaction); } categories_.Add(other.categories_); }
public void MergeFrom(SortTransactionEvent other) { if (other == null) { return; } if (other.transaction_ != null) { if (transaction_ == null) { transaction_ = new global::Budget.Data.Data.Transaction(); } Transaction.MergeFrom(other.Transaction); } if (other.category_ != null) { if (category_ == null) { category_ = new global::Budget.Data.Data.TransactionCategory(); } Category.MergeFrom(other.Category); } }