target.apidocs.com.google.api.services.drive.model.ChildReference.html Maven / Gradle / Ivy
ChildReference (Google Drive API v2-rev20240809-2.0.0)
com.google.api.services.drive.model
Class ChildReference
- 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.ChildReference
-
public final class ChildReference
extends com.google.api.client.json.GenericJson
A reference to a folder's child. Some resource methods (such as `children.get`) require a
`childId`. Use the `children.list` method to retrieve the ID of the 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 Google 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
ChildReference()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ChildReference
clone()
String
getChildLink()
Output only.
String
getId()
The ID of the child.
String
getKind()
Output only.
String
getSelfLink()
Output only.
ChildReference
set(String fieldName,
Object value)
ChildReference
setChildLink(String childLink)
Output only.
ChildReference
setId(String id)
The ID of the child.
ChildReference
setKind(String kind)
Output only.
ChildReference
setSelfLink(String selfLink)
Output only.
-
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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, 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
-
getChildLink
public String getChildLink()
Output only. A link to the child.
- Returns:
- value or
null
for none
-
setChildLink
public ChildReference setChildLink(String childLink)
Output only. A link to the child.
- Parameters:
childLink
- childLink or null
for none
-
getId
public String getId()
The ID of the child.
- Returns:
- value or
null
for none
-
setId
public ChildReference setId(String id)
The ID of the child.
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
Output only. This is always `drive#childReference`.
- Returns:
- value or
null
for none
-
setKind
public ChildReference setKind(String kind)
Output only. This is always `drive#childReference`.
- Parameters:
kind
- kind or null
for none
-
getSelfLink
public String getSelfLink()
Output only. A link back to this reference.
- Returns:
- value or
null
for none
-
setSelfLink
public ChildReference setSelfLink(String selfLink)
Output only. A link back to this reference.
- Parameters:
selfLink
- selfLink or null
for none
-
set
public ChildReference set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ChildReference clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.