target.apidocs.com.google.api.services.drive.model.About.html Maven / Gradle / Ivy
About (Google Drive API v2-rev20240809-2.0.0)
com.google.api.services.drive.model
Class About
- 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.About
-
public final class About
extends com.google.api.client.json.GenericJson
An item with user information and settings.
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
Modifier and Type
Class and Description
static class
About.AdditionalRoleInfo
Model definition for AboutAdditionalRoleInfo.
static class
About.DriveThemes
Model definition for AboutDriveThemes.
static class
About.ExportFormats
Model definition for AboutExportFormats.
static class
About.Features
Model definition for AboutFeatures.
static class
About.ImportFormats
Model definition for AboutImportFormats.
static class
About.MaxUploadSizes
Model definition for AboutMaxUploadSizes.
static class
About.QuotaBytesByService
Model definition for AboutQuotaBytesByService.
static class
About.TeamDriveThemes
Model definition for AboutTeamDriveThemes.
-
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
About()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
About
clone()
List<About.AdditionalRoleInfo>
getAdditionalRoleInfo()
Information about supported additional roles per file type.
Boolean
getCanCreateDrives()
Whether the user can create shared drives.
Boolean
getCanCreateTeamDrives()
Deprecated: Use `canCreateDrives` instead.
String
getDomainSharingPolicy()
The domain sharing policy for the current user.
List<About.DriveThemes>
getDriveThemes()
A list of themes that are supported for shared drives.
String
getEtag()
The ETag of the item.
List<About.ExportFormats>
getExportFormats()
The allowable export formats.
List<About.Features>
getFeatures()
List of additional features enabled on this account.
List<String>
getFolderColorPalette()
The palette of allowable folder colors as RGB hex strings.
List<About.ImportFormats>
getImportFormats()
The allowable import formats.
Boolean
getIsCurrentAppInstalled()
A boolean indicating whether the authenticated app is installed by the authenticated user.
String
getKind()
This is always `drive#about`.
String
getLanguageCode()
The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's
LDML format (http://www.unicode.org/reports/tr35/).
Long
getLargestChangeId()
The largest change id.
List<About.MaxUploadSizes>
getMaxUploadSizes()
List of max upload sizes for each file type.
String
getName()
The name of the current user.
String
getPermissionId()
The current user's ID as visible in the permissions collection.
List<About.QuotaBytesByService>
getQuotaBytesByService()
The amount of storage quota used by different Google services.
Long
getQuotaBytesTotal()
The total number of quota bytes.
Long
getQuotaBytesUsed()
The number of quota bytes used by Google Drive.
Long
getQuotaBytesUsedAggregate()
The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
Long
getQuotaBytesUsedInTrash()
The number of quota bytes used by trashed items.
String
getQuotaType()
The type of the user's storage quota.
Long
getRemainingChangeIds()
The number of remaining change ids, limited to no more than 2500.
String
getRootFolderId()
The id of the root folder.
String
getSelfLink()
A link back to this item.
List<About.TeamDriveThemes>
getTeamDriveThemes()
Deprecated: Use `driveThemes` instead.
User
getUser()
The authenticated user.
About
set(String fieldName,
Object value)
About
setAdditionalRoleInfo(List<About.AdditionalRoleInfo> additionalRoleInfo)
Information about supported additional roles per file type.
About
setCanCreateDrives(Boolean canCreateDrives)
Whether the user can create shared drives.
About
setCanCreateTeamDrives(Boolean canCreateTeamDrives)
Deprecated: Use `canCreateDrives` instead.
About
setDomainSharingPolicy(String domainSharingPolicy)
The domain sharing policy for the current user.
About
setDriveThemes(List<About.DriveThemes> driveThemes)
A list of themes that are supported for shared drives.
About
setEtag(String etag)
The ETag of the item.
About
setExportFormats(List<About.ExportFormats> exportFormats)
The allowable export formats.
About
setFeatures(List<About.Features> features)
List of additional features enabled on this account.
About
setFolderColorPalette(List<String> folderColorPalette)
The palette of allowable folder colors as RGB hex strings.
About
setImportFormats(List<About.ImportFormats> importFormats)
The allowable import formats.
About
setIsCurrentAppInstalled(Boolean isCurrentAppInstalled)
A boolean indicating whether the authenticated app is installed by the authenticated user.
About
setKind(String kind)
This is always `drive#about`.
About
setLanguageCode(String languageCode)
The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's
LDML format (http://www.unicode.org/reports/tr35/).
About
setLargestChangeId(Long largestChangeId)
The largest change id.
About
setMaxUploadSizes(List<About.MaxUploadSizes> maxUploadSizes)
List of max upload sizes for each file type.
About
setName(String name)
The name of the current user.
About
setPermissionId(String permissionId)
The current user's ID as visible in the permissions collection.
About
setQuotaBytesByService(List<About.QuotaBytesByService> quotaBytesByService)
The amount of storage quota used by different Google services.
About
setQuotaBytesTotal(Long quotaBytesTotal)
The total number of quota bytes.
About
setQuotaBytesUsed(Long quotaBytesUsed)
The number of quota bytes used by Google Drive.
About
setQuotaBytesUsedAggregate(Long quotaBytesUsedAggregate)
The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
About
setQuotaBytesUsedInTrash(Long quotaBytesUsedInTrash)
The number of quota bytes used by trashed items.
About
setQuotaType(String quotaType)
The type of the user's storage quota.
About
setRemainingChangeIds(Long remainingChangeIds)
The number of remaining change ids, limited to no more than 2500.
About
setRootFolderId(String rootFolderId)
The id of the root folder.
About
setSelfLink(String selfLink)
A link back to this item.
About
setTeamDriveThemes(List<About.TeamDriveThemes> teamDriveThemes)
Deprecated: Use `driveThemes` instead.
About
setUser(User user)
The authenticated user.
-
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
-
getAdditionalRoleInfo
public List<About.AdditionalRoleInfo> getAdditionalRoleInfo()
Information about supported additional roles per file type. The most specific type takes
precedence.
- Returns:
- value or
null
for none
-
setAdditionalRoleInfo
public About setAdditionalRoleInfo(List<About.AdditionalRoleInfo> additionalRoleInfo)
Information about supported additional roles per file type. The most specific type takes
precedence.
- Parameters:
additionalRoleInfo
- additionalRoleInfo or null
for none
-
getCanCreateDrives
public Boolean getCanCreateDrives()
Whether the user can create shared drives.
- Returns:
- value or
null
for none
-
setCanCreateDrives
public About setCanCreateDrives(Boolean canCreateDrives)
Whether the user can create shared drives.
- Parameters:
canCreateDrives
- canCreateDrives or null
for none
-
getCanCreateTeamDrives
public Boolean getCanCreateTeamDrives()
Deprecated: Use `canCreateDrives` instead.
- Returns:
- value or
null
for none
-
setCanCreateTeamDrives
public About setCanCreateTeamDrives(Boolean canCreateTeamDrives)
Deprecated: Use `canCreateDrives` instead.
- Parameters:
canCreateTeamDrives
- canCreateTeamDrives or null
for none
-
getDomainSharingPolicy
public String getDomainSharingPolicy()
The domain sharing policy for the current user. Possible values are: * `allowed` *
`allowedWithWarning` * `incomingOnly` * `disallowed`
- Returns:
- value or
null
for none
-
setDomainSharingPolicy
public About setDomainSharingPolicy(String domainSharingPolicy)
The domain sharing policy for the current user. Possible values are: * `allowed` *
`allowedWithWarning` * `incomingOnly` * `disallowed`
- Parameters:
domainSharingPolicy
- domainSharingPolicy or null
for none
-
getDriveThemes
public List<About.DriveThemes> getDriveThemes()
A list of themes that are supported for shared drives.
- Returns:
- value or
null
for none
-
setDriveThemes
public About setDriveThemes(List<About.DriveThemes> driveThemes)
A list of themes that are supported for shared drives.
- Parameters:
driveThemes
- driveThemes or null
for none
-
getEtag
public String getEtag()
The ETag of the item.
- Returns:
- value or
null
for none
-
setEtag
public About setEtag(String etag)
The ETag of the item.
- Parameters:
etag
- etag or null
for none
-
getExportFormats
public List<About.ExportFormats> getExportFormats()
The allowable export formats.
- Returns:
- value or
null
for none
-
setExportFormats
public About setExportFormats(List<About.ExportFormats> exportFormats)
The allowable export formats.
- Parameters:
exportFormats
- exportFormats or null
for none
-
getFeatures
public List<About.Features> getFeatures()
List of additional features enabled on this account.
- Returns:
- value or
null
for none
-
setFeatures
public About setFeatures(List<About.Features> features)
List of additional features enabled on this account.
- Parameters:
features
- features or null
for none
-
getFolderColorPalette
public List<String> getFolderColorPalette()
The palette of allowable folder colors as RGB hex strings.
- Returns:
- value or
null
for none
-
setFolderColorPalette
public About setFolderColorPalette(List<String> folderColorPalette)
The palette of allowable folder colors as RGB hex strings.
- Parameters:
folderColorPalette
- folderColorPalette or null
for none
-
getImportFormats
public List<About.ImportFormats> getImportFormats()
The allowable import formats.
- Returns:
- value or
null
for none
-
setImportFormats
public About setImportFormats(List<About.ImportFormats> importFormats)
The allowable import formats.
- Parameters:
importFormats
- importFormats or null
for none
-
getIsCurrentAppInstalled
public Boolean getIsCurrentAppInstalled()
A boolean indicating whether the authenticated app is installed by the authenticated user.
- Returns:
- value or
null
for none
-
setIsCurrentAppInstalled
public About setIsCurrentAppInstalled(Boolean isCurrentAppInstalled)
A boolean indicating whether the authenticated app is installed by the authenticated user.
- Parameters:
isCurrentAppInstalled
- isCurrentAppInstalled or null
for none
-
getKind
public String getKind()
This is always `drive#about`.
- Returns:
- value or
null
for none
-
setKind
public About setKind(String kind)
This is always `drive#about`.
- Parameters:
kind
- kind or null
for none
-
getLanguageCode
public String getLanguageCode()
The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's
LDML format (http://www.unicode.org/reports/tr35/).
- Returns:
- value or
null
for none
-
setLanguageCode
public About setLanguageCode(String languageCode)
The user's language or locale code, as defined by BCP 47, with some extensions from Unicode's
LDML format (http://www.unicode.org/reports/tr35/).
- Parameters:
languageCode
- languageCode or null
for none
-
getLargestChangeId
public Long getLargestChangeId()
The largest change id.
- Returns:
- value or
null
for none
-
setLargestChangeId
public About setLargestChangeId(Long largestChangeId)
The largest change id.
- Parameters:
largestChangeId
- largestChangeId or null
for none
-
getMaxUploadSizes
public List<About.MaxUploadSizes> getMaxUploadSizes()
List of max upload sizes for each file type. The most specific type takes precedence.
- Returns:
- value or
null
for none
-
setMaxUploadSizes
public About setMaxUploadSizes(List<About.MaxUploadSizes> maxUploadSizes)
List of max upload sizes for each file type. The most specific type takes precedence.
- Parameters:
maxUploadSizes
- maxUploadSizes or null
for none
-
getName
public String getName()
The name of the current user.
- Returns:
- value or
null
for none
-
setName
public About setName(String name)
The name of the current user.
- Parameters:
name
- name or null
for none
-
getPermissionId
public String getPermissionId()
The current user's ID as visible in the permissions collection.
- Returns:
- value or
null
for none
-
setPermissionId
public About setPermissionId(String permissionId)
The current user's ID as visible in the permissions collection.
- Parameters:
permissionId
- permissionId or null
for none
-
getQuotaBytesByService
public List<About.QuotaBytesByService> getQuotaBytesByService()
The amount of storage quota used by different Google services.
- Returns:
- value or
null
for none
-
setQuotaBytesByService
public About setQuotaBytesByService(List<About.QuotaBytesByService> quotaBytesByService)
The amount of storage quota used by different Google services.
- Parameters:
quotaBytesByService
- quotaBytesByService or null
for none
-
getQuotaBytesTotal
public Long getQuotaBytesTotal()
The total number of quota bytes. This is only relevant when quotaType is LIMITED.
- Returns:
- value or
null
for none
-
setQuotaBytesTotal
public About setQuotaBytesTotal(Long quotaBytesTotal)
The total number of quota bytes. This is only relevant when quotaType is LIMITED.
- Parameters:
quotaBytesTotal
- quotaBytesTotal or null
for none
-
getQuotaBytesUsed
public Long getQuotaBytesUsed()
The number of quota bytes used by Google Drive.
- Returns:
- value or
null
for none
-
setQuotaBytesUsed
public About setQuotaBytesUsed(Long quotaBytesUsed)
The number of quota bytes used by Google Drive.
- Parameters:
quotaBytesUsed
- quotaBytesUsed or null
for none
-
getQuotaBytesUsedAggregate
public Long getQuotaBytesUsedAggregate()
The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
- Returns:
- value or
null
for none
-
setQuotaBytesUsedAggregate
public About setQuotaBytesUsedAggregate(Long quotaBytesUsedAggregate)
The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
- Parameters:
quotaBytesUsedAggregate
- quotaBytesUsedAggregate or null
for none
-
getQuotaBytesUsedInTrash
public Long getQuotaBytesUsedInTrash()
The number of quota bytes used by trashed items.
- Returns:
- value or
null
for none
-
setQuotaBytesUsedInTrash
public About setQuotaBytesUsedInTrash(Long quotaBytesUsedInTrash)
The number of quota bytes used by trashed items.
- Parameters:
quotaBytesUsedInTrash
- quotaBytesUsedInTrash or null
for none
-
getQuotaType
public String getQuotaType()
The type of the user's storage quota. Possible values are: * `LIMITED` * `UNLIMITED`
- Returns:
- value or
null
for none
-
setQuotaType
public About setQuotaType(String quotaType)
The type of the user's storage quota. Possible values are: * `LIMITED` * `UNLIMITED`
- Parameters:
quotaType
- quotaType or null
for none
-
getRemainingChangeIds
public Long getRemainingChangeIds()
The number of remaining change ids, limited to no more than 2500.
- Returns:
- value or
null
for none
-
setRemainingChangeIds
public About setRemainingChangeIds(Long remainingChangeIds)
The number of remaining change ids, limited to no more than 2500.
- Parameters:
remainingChangeIds
- remainingChangeIds or null
for none
-
getRootFolderId
public String getRootFolderId()
The id of the root folder.
- Returns:
- value or
null
for none
-
setRootFolderId
public About setRootFolderId(String rootFolderId)
The id of the root folder.
- Parameters:
rootFolderId
- rootFolderId or null
for none
-
getSelfLink
public String getSelfLink()
A link back to this item.
- Returns:
- value or
null
for none
-
setSelfLink
public About setSelfLink(String selfLink)
A link back to this item.
- Parameters:
selfLink
- selfLink or null
for none
-
getTeamDriveThemes
public List<About.TeamDriveThemes> getTeamDriveThemes()
Deprecated: Use `driveThemes` instead.
- Returns:
- value or
null
for none
-
setTeamDriveThemes
public About setTeamDriveThemes(List<About.TeamDriveThemes> teamDriveThemes)
Deprecated: Use `driveThemes` instead.
- Parameters:
teamDriveThemes
- teamDriveThemes or null
for none
-
getUser
public User getUser()
The authenticated user.
- Returns:
- value or
null
for none
-
setUser
public About setUser(User user)
The authenticated user.
- Parameters:
user
- user or null
for none
-
set
public About set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public About clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.