public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Id = input.ReadUInt32(); break; } case 18: { if (color_ == null) { color_ = new global::Budget.Data.Data.Color(); } input.ReadMessage(color_); break; } case 26: { Name = input.ReadString(); break; } } } }
public void MergeFrom(TransactionCategory other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.color_ != null) { if (color_ == null) { color_ = new global::Budget.Data.Data.Color(); } Color.MergeFrom(other.Color); } if (other.Name.Length != 0) { Name = other.Name; } }