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: { Name = input.ReadString(); break; } case 18: { Password = input.ReadString(); break; } case 24: { Roletype = (global::Protobuf.Csharp.Example.Model.User.Types.RoleType)input.ReadEnum(); break; } } } }
public void MergeFrom(User other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Password.Length != 0) { Password = other.Password; } if (other.Roletype != 0) { Roletype = other.Roletype; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }