Drive API v2 (revision 47)



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

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.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.ParentReference
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class ParentReference
extends GenericJson

A reference to a file's parent.

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

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

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
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
ParentReference()
           
 
Method Summary
 java.lang.String getId()
          The ID of the parent.
 java.lang.Boolean getIsRoot()
          Whether or not the parent is the root folder.
 java.lang.String getKind()
          This is always drive#parentReference.
 java.lang.String getParentLink()
          A link to the parent.
 java.lang.String getSelfLink()
          A link back to this reference.
 ParentReference setId(java.lang.String id)
          The ID of the parent.
 ParentReference setIsRoot(java.lang.Boolean isRoot)
          Whether or not the parent is the root folder.
 ParentReference setKind(java.lang.String kind)
          This is always drive#parentReference.
 ParentReference setParentLink(java.lang.String parentLink)
          A link to the parent.
 ParentReference setSelfLink(java.lang.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

ParentReference

public ParentReference()
Method Detail

getId

public java.lang.String getId()
The ID of the parent. The value returned may be null.


setId

public ParentReference setId(java.lang.String id)
The ID of the parent. The value set may be null.


getIsRoot

public java.lang.Boolean getIsRoot()
Whether or not the parent is the root folder. The value returned may be null.


setIsRoot

public ParentReference setIsRoot(java.lang.Boolean isRoot)
Whether or not the parent is the root folder. The value set may be null.


getKind

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


setKind

public ParentReference setKind(java.lang.String kind)
This is always drive#parentReference. The value set may be null.


getParentLink

public java.lang.String getParentLink()
A link to the parent. The value returned may be null.


setParentLink

public ParentReference setParentLink(java.lang.String parentLink)
A link to the parent. The value set may be null.


getSelfLink

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


setSelfLink

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