public void MergeFrom(RealtyAd other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Type != 0) { Type = other.Type; } if (other.Topic.Length != 0) { Topic = other.Topic; } if (other.Message.Length != 0) { Message = other.Message; } if (other.address_ != null) { if (address_ == null) { address_ = new global::DowntownRealty.NullableString(); } Address.MergeFrom(other.Address); } if (other.Photo.Length != 0) { Photo = other.Photo; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Id = input.ReadInt32(); break; } case 16: { type_ = (global::DowntownRealty.RealtyType)input.ReadEnum(); break; } case 26: { Topic = input.ReadString(); break; } case 34: { Message = input.ReadString(); break; } case 42: { if (address_ == null) { address_ = new global::DowntownRealty.NullableString(); } input.ReadMessage(address_); break; } case 50: { Photo = input.ReadString(); break; } } } }