public void MergeFrom(AmendmentHeldLodgingPackage other) { if (other == null) { return; } if (other.holdIndicator_ != null) { if (holdIndicator_ == null) { holdIndicator_ = new global::HOLMS.Types.Supply.ReservationAmendmentHoldIndicator(); } HoldIndicator.MergeFrom(other.HoldIndicator); } if (other.expiresAt_ != null) { if (expiresAt_ == null) { expiresAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ExpiresAt.MergeFrom(other.ExpiresAt); } if (other.package_ != null) { if (package_ == null) { package_ = new global::HOLMS.Types.Supply.Packages.LodgingPackage(); } Package.MergeFrom(other.Package); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (holdIndicator_ == null) { holdIndicator_ = new global::HOLMS.Types.Supply.ReservationAmendmentHoldIndicator(); } input.ReadMessage(holdIndicator_); break; } case 18: { if (expiresAt_ == null) { expiresAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(expiresAt_); break; } case 26: { if (package_ == null) { package_ = new global::HOLMS.Types.Supply.Packages.LodgingPackage(); } input.ReadMessage(package_); break; } } } }