I have been trying to determine the correct way to set the Name Prefix, Middle Name, and Name Suffix values for accounts so that these values appear in the contact entry. I tried setting these values from the Name() object returned from the ContactEntry and ProfileEntry objects, neither of these approaches worked. When I posted to the Contacts API forum, someone from Google told me that those values are part of the provisioned account and should be set with the provisioning API. However, when I get the Name() object from the UserEntry object, it is a different class than Name returned from ContactEntry and ProfileEntry.
UserEntry.getName() returns an object of the class
com.google.gdata.data.appsforyourdomain.Name, which does not support AdditionalName, NamePrefix, or NameSuffix.
ProfileEntry.getName() and ContactEntry.getName() return an object of the class
com.google.gdata.data.extensions.Name, which does support AdditionalName, NamePrefix, and NameSuffix but these values do not register with the contact entry and are not set when the ProfileEntry or ContactEntry object is updated. I have tried adding this class as an extension point to UserEntry but that does not work either.
My question is actually pretty simple. How do I set the NamePrefix, AdditionaName, and NameSuffix for a user so that they appear in the contacts entry?