public void MergeFrom(Person other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Id != 0)
     {
         Id = other.Id;
     }
     emails_.Add(other.emails_);
     if (other.number_ != null)
     {
         if (number_ == null)
         {
             Number = new global::Generic.PhoneNumber();
         }
         Number.MergeFrom(other.Number);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    Name = input.ReadString();
                    break;
                }

                case 16: {
                    Id = input.ReadInt32();
                    break;
                }

                case 26: {
                    emails_.AddEntriesFrom(input, _repeated_emails_codec);
                    break;
                }

                case 34: {
                    if (number_ == null)
                    {
                        Number = new global::Generic.PhoneNumber();
                    }
                    input.ReadMessage(Number);
                    break;
                }
                }
            }
    #endif
        }
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    Name = input.ReadString();
                    break;
                }

                case 16: {
                    Id = input.ReadInt32();
                    break;
                }

                case 26: {
                    emails_.AddEntriesFrom(ref input, _repeated_emails_codec);
                    break;
                }

                case 34: {
                    if (number_ == null)
                    {
                        Number = new global::Generic.PhoneNumber();
                    }
                    input.ReadMessage(Number);
                    break;
                }
                }
            }
        }