public final class Relation
extends com.google.api.client.json.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 People API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Relation() |
Modifier and Type | Method and Description |
---|---|
Relation |
clone() |
java.lang.String |
getFormattedType()
Output only.
|
FieldMetadata |
getMetadata()
Metadata about the relation.
|
java.lang.String |
getPerson()
The name of the other person this relation refers to.
|
java.lang.String |
getType()
The person's relation to the other person.
|
Relation |
set(java.lang.String fieldName,
java.lang.Object value) |
Relation |
setFormattedType(java.lang.String formattedType)
Output only.
|
Relation |
setMetadata(FieldMetadata metadata)
Metadata about the relation.
|
Relation |
setPerson(java.lang.String person)
The name of the other person this relation refers to.
|
Relation |
setType(java.lang.String type)
The person's relation to the other person.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getFormattedType()
null
for nonepublic Relation setFormattedType(java.lang.String formattedType)
formattedType
- formattedType or null
for nonepublic FieldMetadata getMetadata()
null
for nonepublic Relation setMetadata(FieldMetadata metadata)
metadata
- metadata or null
for nonepublic java.lang.String getPerson()
null
for nonepublic Relation setPerson(java.lang.String person)
person
- person or null
for nonepublic java.lang.String getType()
null
for nonepublic Relation setType(java.lang.String type)
type
- type or null
for nonepublic Relation set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Relation clone()
clone
in class com.google.api.client.json.GenericJson