public final class Drive
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 API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
Drive.BackgroundImageFile
An image file and cropping parameters from which a background image for this shared drive is set.
|
static class |
Drive.Capabilities
Capabilities the current user has on this shared drive.
|
static class |
Drive.Restrictions
A set of restrictions that apply to this shared drive or items inside this shared drive.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Drive() |
Modifier and Type | Method and Description |
---|---|
Drive |
clone() |
Drive.BackgroundImageFile |
getBackgroundImageFile()
An image file and cropping parameters from which a background image for this shared drive is
set.
|
java.lang.String |
getBackgroundImageLink()
A short-lived link to this shared drive's background image.
|
Drive.Capabilities |
getCapabilities()
Capabilities the current user has on this shared drive.
|
java.lang.String |
getColorRgb()
The color of this shared drive as an RGB hex string.
|
com.google.api.client.util.DateTime |
getCreatedDate()
The time at which the shared drive was created (RFC 3339 date-time).
|
java.lang.Boolean |
getHidden()
Whether the shared drive is hidden from default view.
|
java.lang.String |
getId()
The ID of this shared drive which is also the ID of the top level folder of this shared drive.
|
java.lang.String |
getKind()
This is always drive#drive
|
java.lang.String |
getName()
The name of this shared drive.
|
Drive.Restrictions |
getRestrictions()
A set of restrictions that apply to this shared drive or items inside this shared drive.
|
java.lang.String |
getThemeId()
The ID of the theme from which the background image and color will be set.
|
Drive |
set(java.lang.String fieldName,
java.lang.Object value) |
Drive |
setBackgroundImageFile(Drive.BackgroundImageFile backgroundImageFile)
An image file and cropping parameters from which a background image for this shared drive is
set.
|
Drive |
setBackgroundImageLink(java.lang.String backgroundImageLink)
A short-lived link to this shared drive's background image.
|
Drive |
setCapabilities(Drive.Capabilities capabilities)
Capabilities the current user has on this shared drive.
|
Drive |
setColorRgb(java.lang.String colorRgb)
The color of this shared drive as an RGB hex string.
|
Drive |
setCreatedDate(com.google.api.client.util.DateTime createdDate)
The time at which the shared drive was created (RFC 3339 date-time).
|
Drive |
setHidden(java.lang.Boolean hidden)
Whether the shared drive is hidden from default view.
|
Drive |
setId(java.lang.String id)
The ID of this shared drive which is also the ID of the top level folder of this shared drive.
|
Drive |
setKind(java.lang.String kind)
This is always drive#drive
|
Drive |
setName(java.lang.String name)
The name of this shared drive.
|
Drive |
setRestrictions(Drive.Restrictions restrictions)
A set of restrictions that apply to this shared drive or items inside this shared drive.
|
Drive |
setThemeId(java.lang.String themeId)
The ID of the theme from which the background image and color will be set.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Drive.BackgroundImageFile getBackgroundImageFile()
null
for nonepublic Drive setBackgroundImageFile(Drive.BackgroundImageFile backgroundImageFile)
backgroundImageFile
- backgroundImageFile or null
for nonepublic java.lang.String getBackgroundImageLink()
null
for nonepublic Drive setBackgroundImageLink(java.lang.String backgroundImageLink)
backgroundImageLink
- backgroundImageLink or null
for nonepublic Drive.Capabilities getCapabilities()
null
for nonepublic Drive setCapabilities(Drive.Capabilities capabilities)
capabilities
- capabilities or null
for nonepublic java.lang.String getColorRgb()
null
for nonepublic Drive setColorRgb(java.lang.String colorRgb)
colorRgb
- colorRgb or null
for nonepublic com.google.api.client.util.DateTime getCreatedDate()
null
for nonepublic Drive setCreatedDate(com.google.api.client.util.DateTime createdDate)
createdDate
- createdDate or null
for nonepublic java.lang.Boolean getHidden()
null
for nonepublic Drive setHidden(java.lang.Boolean hidden)
hidden
- hidden or null
for nonepublic java.lang.String getId()
null
for nonepublic Drive setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic Drive setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getName()
null
for nonepublic Drive setName(java.lang.String name)
name
- name or null
for nonepublic Drive.Restrictions getRestrictions()
null
for nonepublic Drive setRestrictions(Drive.Restrictions restrictions)
restrictions
- restrictions or null
for nonepublic java.lang.String getThemeId()
null
for nonepublic Drive setThemeId(java.lang.String themeId)
themeId
- themeId or null
for nonepublic Drive set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Drive clone()
clone
in class com.google.api.client.json.GenericJson