public void MergeFrom(TestProto other) { if (other == null) { return; } if (other.Account.Length != 0) { Account = other.Account; } if (other.Password.Length != 0) { Password = other.Password; } dict_.Add(other.dict_); adresses_.Add(other.adresses_); if (other.testSubProto_ != null) { if (testSubProto_ == null) { testSubProto_ = new global::Com.Test.TestSubProto(); } TestSubProto.MergeFrom(other.TestSubProto); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Account = input.ReadString(); break; } case 18: { Password = input.ReadString(); break; } case 26: { dict_.AddEntriesFrom(input, _map_dict_codec); break; } case 34: { adresses_.AddEntriesFrom(input, _repeated_adresses_codec); break; } case 42: { if (testSubProto_ == null) { testSubProto_ = new global::Com.Test.TestSubProto(); } input.ReadMessage(testSubProto_); break; } } } }