public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (person_ == null) { person_ = new global::VirtualWallet.Proto.Messages.Person(); } input.ReadMessage(person_); break; } case 16: { genderType_ = (global::VirtualWallet.Proto.Messages.NaturalPerson.Types.GenderType)input.ReadEnum(); break; } } } }
public void MergeFrom(NaturalPerson other) { if (other == null) { return; } if (other.person_ != null) { if (person_ == null) { person_ = new global::VirtualWallet.Proto.Messages.Person(); } Person.MergeFrom(other.Person); } if (other.GenderType != 0) { GenderType = other.GenderType; } }