public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (guestId_ == null) { guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator(); } input.ReadMessage(guestId_); break; } case 18: { cancellations_.AddEntriesFrom(input, _repeated_cancellations_codec); break; } case 26: { if (lastCheckin_ == null) { lastCheckin_ = new global::HOLMS.Types.CRM.Guests.GuestCheckedIn(); } input.ReadMessage(lastCheckin_); break; } case 32: { TotalNightsStayed = input.ReadInt32(); break; } case 42: { if (totalInvoiced_ == null) { totalInvoiced_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(totalInvoiced_); break; } } } }
public void MergeFrom(GuestHistorySummary other) { if (other == null) { return; } if (other.guestId_ != null) { if (guestId_ == null) { guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator(); } GuestId.MergeFrom(other.GuestId); } cancellations_.Add(other.cancellations_); if (other.lastCheckin_ != null) { if (lastCheckin_ == null) { lastCheckin_ = new global::HOLMS.Types.CRM.Guests.GuestCheckedIn(); } LastCheckin.MergeFrom(other.LastCheckin); } if (other.TotalNightsStayed != 0) { TotalNightsStayed = other.TotalNightsStayed; } if (other.totalInvoiced_ != null) { if (totalInvoiced_ == null) { totalInvoiced_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } TotalInvoiced.MergeFrom(other.TotalInvoiced); } }