public void MergeFrom(ChatAppMsg other) { if (other == null) { return; } if (other.request_ != null) { if (request_ == null) { request_ = new global::VrLifeShared.Core.Applications.DefaultApps.ChatApp.NetworkingModels.ChatRequest(); } Request.MergeFrom(other.Request); } if (other.chat_ != null) { if (chat_ == null) { chat_ = new global::VrLifeShared.Core.Applications.DefaultApps.ChatApp.NetworkingModels.ChatObjectMsg(); } Chat.MergeFrom(other.Chat); } if (other.list_ != null) { if (list_ == null) { list_ = new global::VrLifeShared.Core.Applications.DefaultApps.ChatApp.NetworkingModels.ChatList(); } List.MergeFrom(other.List); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (request_ == null) { request_ = new global::VrLifeShared.Core.Applications.DefaultApps.ChatApp.NetworkingModels.ChatRequest(); } input.ReadMessage(request_); break; } case 18: { if (chat_ == null) { chat_ = new global::VrLifeShared.Core.Applications.DefaultApps.ChatApp.NetworkingModels.ChatObjectMsg(); } input.ReadMessage(chat_); break; } case 26: { if (list_ == null) { list_ = new global::VrLifeShared.Core.Applications.DefaultApps.ChatApp.NetworkingModels.ChatList(); } input.ReadMessage(list_); break; } } } }