public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { Name = input.ReadString(); break; } case 18: { if (person_ == null) { person_ = new global::cmlu.examples.pbs.Person(); } input.ReadMessage(person_); break; } } } }
public void MergeFrom(Jack other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.person_ != null) { if (person_ == null) { person_ = new global::cmlu.examples.pbs.Person(); } Person.MergeFrom(other.Person); } }