def METHOD_NAME(self, builder):
    if self.name is not None:
        name = builder.CreateString(self.name)
    if self.data is not None:
        data = self.data.METHOD_NAME(builder)
    NestedUnionTestStart(builder)
    if self.name is not None:
        NestedUnionTestAddName(builder, name)
    NestedUnionTestAddDataType(builder, self.dataType)
    if self.data is not None:
        NestedUnionTestAddData(builder, data)
    NestedUnionTestAddId(builder, self.id)
    nestedUnionTest = NestedUnionTestEnd(builder)
    return nestedUnionTest