public void MergeFrom(PriceOverrideNight other) { if (other == null) { return; } if (other.date_ != null) { if (date_ == null) { date_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } Date.MergeFrom(other.Date); } if (other.price_ != null) { if (price_ == null) { price_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Price.MergeFrom(other.Price); } if (other.Action != 0) { Action = other.Action; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (date_ == null) { date_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } input.ReadMessage(date_); break; } case 18: { if (price_ == null) { price_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(price_); break; } case 24: { action_ = (global::HOLMS.Types.Booking.Pricing.PriceOverrideAction)input.ReadEnum(); break; } } } }