public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

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

                case 18: {
                    TargetBattleTag = input.ReadString();
                    break;
                }

                case 26: {
                    InviterBattleTag = input.ReadString();
                    break;
                }

                case 34: {
                    InviterFullName = input.ReadString();
                    break;
                }

                case 42: {
                    InviteeDisplayName = input.ReadString();
                    break;
                }

                case 50:
                case 48: {
                    role_.AddEntriesFrom(input, _repeated_role_codec);
                    break;
                }

                case 58:
                case 56: {
                    previousRoleDeprecated_.AddEntriesFrom(input, _repeated_previousRoleDeprecated_codec);
                    break;
                }

                case 826: {
                    if (friendParams_ == null)
                    {
                        friendParams_ = new Bgs.Protocol.Friends.V1.FriendInvitationParams();
                    }
                    input.ReadMessage(friendParams_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(FriendInvitationParams other)
 {
     if (other == null)
     {
         return;
     }
     if (other.TargetEmail.Length != 0)
     {
         TargetEmail = other.TargetEmail;
     }
     if (other.TargetBattleTag.Length != 0)
     {
         TargetBattleTag = other.TargetBattleTag;
     }
     if (other.InviterBattleTag.Length != 0)
     {
         InviterBattleTag = other.InviterBattleTag;
     }
     if (other.InviterFullName.Length != 0)
     {
         InviterFullName = other.InviterFullName;
     }
     if (other.InviteeDisplayName.Length != 0)
     {
         InviteeDisplayName = other.InviteeDisplayName;
     }
     role_.Add(other.role_);
     previousRoleDeprecated_.Add(other.previousRoleDeprecated_);
     if (other.friendParams_ != null)
     {
         if (friendParams_ == null)
         {
             friendParams_ = new Bgs.Protocol.Friends.V1.FriendInvitationParams();
         }
         FriendParams.MergeFrom(other.FriendParams);
     }
 }