public final class Target
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 Drive Activity 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Target() |
Modifier and Type | Method and Description |
---|---|
Target |
clone() |
Drive |
getDrive()
The target is a shared drive.
|
DriveItem |
getDriveItem()
The target is a Drive item.
|
FileComment |
getFileComment()
The target is a comment on a Drive file.
|
TeamDrive |
getTeamDrive()
This field is deprecated; please use the `drive` field instead.
|
Target |
set(String fieldName,
Object value) |
Target |
setDrive(Drive drive)
The target is a shared drive.
|
Target |
setDriveItem(DriveItem driveItem)
The target is a Drive item.
|
Target |
setFileComment(FileComment fileComment)
The target is a comment on a Drive file.
|
Target |
setTeamDrive(TeamDrive teamDrive)
This field is deprecated; please use the `drive` field instead.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Drive getDrive()
null
for nonepublic Target setDrive(Drive drive)
drive
- drive or null
for nonepublic DriveItem getDriveItem()
null
for nonepublic Target setDriveItem(DriveItem driveItem)
driveItem
- driveItem or null
for nonepublic FileComment getFileComment()
null
for nonepublic Target setFileComment(FileComment fileComment)
fileComment
- fileComment or null
for nonepublic TeamDrive getTeamDrive()
null
for nonepublic Target setTeamDrive(TeamDrive teamDrive)
teamDrive
- teamDrive or null
for nonepublic Target set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Target clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.