target.apidocs.com.google.api.services.drive.model.ParentReference.html Maven / Gradle / Ivy
ParentReference (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive.model
Class ParentReference
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.ParentReference
-
public final class ParentReference
extends com.google.api.client.json.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:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ParentReference()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ParentReference
clone()
String
getId()
The ID of the parent.
Boolean
getIsRoot()
Whether or not the parent is the root folder.
String
getKind()
This is always drive#parentReference.
String
getParentLink()
A link to the parent.
String
getSelfLink()
A link back to this reference.
ParentReference
set(String fieldName,
Object value)
ParentReference
setId(String id)
The ID of the parent.
ParentReference
setIsRoot(Boolean isRoot)
Whether or not the parent is the root folder.
ParentReference
setKind(String kind)
This is always drive#parentReference.
ParentReference
setParentLink(String parentLink)
A link to the parent.
ParentReference
setSelfLink(String selfLink)
A link back to this reference.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, 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
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getId
public String getId()
The ID of the parent.
- Returns:
- value or
null
for none
-
setId
public ParentReference setId(String id)
The ID of the parent.
- Parameters:
id
- id or null
for none
-
getIsRoot
public Boolean getIsRoot()
Whether or not the parent is the root folder.
- Returns:
- value or
null
for none
-
setIsRoot
public ParentReference setIsRoot(Boolean isRoot)
Whether or not the parent is the root folder.
- Parameters:
isRoot
- isRoot or null
for none
-
getKind
public String getKind()
This is always drive#parentReference.
- Returns:
- value or
null
for none
-
setKind
public ParentReference setKind(String kind)
This is always drive#parentReference.
- Parameters:
kind
- kind or null
for none
-
getParentLink
public String getParentLink()
A link to the parent.
- Returns:
- value or
null
for none
-
setParentLink
public ParentReference setParentLink(String parentLink)
A link to the parent.
- Parameters:
parentLink
- parentLink or null
for none
-
getSelfLink
public String getSelfLink()
A link back to this reference.
- Returns:
- value or
null
for none
-
setSelfLink
public ParentReference setSelfLink(String selfLink)
A link back to this reference.
- Parameters:
selfLink
- selfLink or null
for none
-
set
public ParentReference set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ParentReference clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2018 Google. All rights reserved.