public final class Contact extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Mirror API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Contact() |
| Modifier and Type | Method and Description |
|---|---|
Contact |
clone() |
List<Command> |
getAcceptCommands()
A list of voice menu commands that a contact can handle.
|
List<String> |
getAcceptTypes()
A list of MIME types that a contact supports.
|
String |
getDisplayName()
The name to display for this contact.
|
String |
getId()
An ID for this contact.
|
List<String> |
getImageUrls()
Set of image URLs to display for a contact.
|
String |
getKind()
The type of resource.
|
String |
getPhoneNumber()
Primary phone number for the contact.
|
Long |
getPriority()
Priority for the contact to determine ordering in a list of contacts.
|
List<String> |
getSharingFeatures()
A list of sharing features that a contact can handle.
|
String |
getSource()
The ID of the application that created this contact.
|
String |
getSpeakableName()
Name of this contact as it should be pronounced.
|
String |
getType()
The type for this contact.
|
Contact |
set(String fieldName,
Object value) |
Contact |
setAcceptCommands(List<Command> acceptCommands)
A list of voice menu commands that a contact can handle.
|
Contact |
setAcceptTypes(List<String> acceptTypes)
A list of MIME types that a contact supports.
|
Contact |
setDisplayName(String displayName)
The name to display for this contact.
|
Contact |
setId(String id)
An ID for this contact.
|
Contact |
setImageUrls(List<String> imageUrls)
Set of image URLs to display for a contact.
|
Contact |
setKind(String kind)
The type of resource.
|
Contact |
setPhoneNumber(String phoneNumber)
Primary phone number for the contact.
|
Contact |
setPriority(Long priority)
Priority for the contact to determine ordering in a list of contacts.
|
Contact |
setSharingFeatures(List<String> sharingFeatures)
A list of sharing features that a contact can handle.
|
Contact |
setSource(String source)
The ID of the application that created this contact.
|
Contact |
setSpeakableName(String speakableName)
Name of this contact as it should be pronounced.
|
Contact |
setType(String type)
The type for this contact.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic List<Command> getAcceptCommands()
null for nonepublic Contact setAcceptCommands(List<Command> acceptCommands)
acceptCommands - acceptCommands or null for nonepublic List<String> getAcceptTypes()
null for nonepublic Contact setAcceptTypes(List<String> acceptTypes)
acceptTypes - acceptTypes or null for nonepublic String getDisplayName()
null for nonepublic Contact setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getId()
null for nonepublic Contact setId(String id)
id - id or null for nonepublic List<String> getImageUrls()
null for nonepublic Contact setImageUrls(List<String> imageUrls)
imageUrls - imageUrls or null for nonepublic String getKind()
null for nonepublic Contact setKind(String kind)
kind - kind or null for nonepublic String getPhoneNumber()
null for nonepublic Contact setPhoneNumber(String phoneNumber)
phoneNumber - phoneNumber or null for nonepublic Long getPriority()
null for nonepublic Contact setPriority(Long priority)
priority - priority or null for nonepublic List<String> getSharingFeatures()
null for nonepublic Contact setSharingFeatures(List<String> sharingFeatures)
sharingFeatures - sharingFeatures or null for nonepublic String getSource()
null for nonepublic Contact setSource(String source)
source - source or null for nonepublic String getSpeakableName()
null for nonepublic Contact setSpeakableName(String speakableName)
speakableName - speakableName or null for nonepublic String getType()
null for nonepublic Contact setType(String type)
type - type or null for nonepublic Contact set(String fieldName, Object value)
set in class GenericJsonpublic Contact clone()
clone in class GenericJson