Drive API v2 (revision 1)



com.google.api.services.drive.model
Class ChildReference

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.drive.model.ChildReference
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class ChildReference
extends GenericJson

A reference to a file's child.

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 Drive API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ChildReference()
           
 
Method Summary
 String getChildLink()
          A link to the child.
 String getId()
          The ID of the child.
 String getKind()
          This is always drive#childReference.
 HttpHeaders getResponseHeaders()
          Returns the HTTP headers that were returned with the server response, or null.
 String getSelfLink()
          A link back to this reference.
 ChildReference setChildLink(String childLink)
          A link to the child.
 ChildReference setId(String id)
          The ID of the child.
 ChildReference setKind(String kind)
          This is always drive#childReference.
 void setResponseHeaders(HttpHeaders responseHeaders)
          Sets the HTTP headers returned with the server response, or null.
 ChildReference setSelfLink(String selfLink)
          A link back to this reference.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChildReference

public ChildReference()
Method Detail

getKind

public String getKind()
This is always drive#childReference. The value returned may be null.


setKind

public ChildReference setKind(String kind)
This is always drive#childReference. The value set may be null.


getChildLink

public String getChildLink()
A link to the child. The value returned may be null.


setChildLink

public ChildReference setChildLink(String childLink)
A link to the child. The value set may be null.


getId

public String getId()
The ID of the child. The value returned may be null.


setId

public ChildReference setId(String id)
The ID of the child. The value set may be null.


getSelfLink

public String getSelfLink()
A link back to this reference. The value returned may be null.


setSelfLink

public ChildReference setSelfLink(String selfLink)
A link back to this reference. The value set may be null.


setResponseHeaders

public void setResponseHeaders(HttpHeaders responseHeaders)
Sets the HTTP headers returned with the server response, or null. This member should only be non-null if this object was the top level element of a response. For example, a request that returns a single ChildReference would include the response headers, while a request which returns an array of ChildReference, would have a non- null response header in the enclosing object only.


getResponseHeaders

public HttpHeaders getResponseHeaders()
Returns the HTTP headers that were returned with the server response, or null.