target.apidocs.com.google.api.services.drive.model.About.html Maven / Gradle / Ivy
About (Google Drive API v3-rev20240123-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
Information about the user, the user's Drive, and system capabilities.
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.DriveThemes
Model definition for AboutDriveThemes.
static class
About.StorageQuota
The user's storage quota limits and usage.
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()
Boolean
getAppInstalled()
Whether the user has installed the requesting app.
Boolean
getCanCreateDrives()
Whether the user can create shared drives.
Boolean
getCanCreateTeamDrives()
Deprecated: Use `canCreateDrives` instead.
List<About.DriveThemes>
getDriveThemes()
A list of themes that are supported for shared drives.
Map<String,List<String>>
getExportFormats()
A map of source MIME type to possible targets for all supported exports.
List<String>
getFolderColorPalette()
The currently supported folder colors as RGB hex strings.
Map<String,List<String>>
getImportFormats()
A map of source MIME type to possible targets for all supported imports.
String
getKind()
Identifies what kind of resource this is.
Map<String,Long>
getMaxImportSizes()
A map of maximum import sizes by MIME type, in bytes.
Long
getMaxUploadSize()
The maximum upload size in bytes.
About.StorageQuota
getStorageQuota()
The user's storage quota limits and usage.
List<About.TeamDriveThemes>
getTeamDriveThemes()
Deprecated: Use `driveThemes` instead.
User
getUser()
The authenticated user.
About
set(String fieldName,
Object value)
About
setAppInstalled(Boolean appInstalled)
Whether the user has installed the requesting app.
About
setCanCreateDrives(Boolean canCreateDrives)
Whether the user can create shared drives.
About
setCanCreateTeamDrives(Boolean canCreateTeamDrives)
Deprecated: Use `canCreateDrives` instead.
About
setDriveThemes(List<About.DriveThemes> driveThemes)
A list of themes that are supported for shared drives.
About
setExportFormats(Map<String,List<String>> exportFormats)
A map of source MIME type to possible targets for all supported exports.
About
setFolderColorPalette(List<String> folderColorPalette)
The currently supported folder colors as RGB hex strings.
About
setImportFormats(Map<String,List<String>> importFormats)
A map of source MIME type to possible targets for all supported imports.
About
setKind(String kind)
Identifies what kind of resource this is.
About
setMaxImportSizes(Map<String,Long> maxImportSizes)
A map of maximum import sizes by MIME type, in bytes.
About
setMaxUploadSize(Long maxUploadSize)
The maximum upload size in bytes.
About
setStorageQuota(About.StorageQuota storageQuota)
The user's storage quota limits and usage.
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
-
getAppInstalled
public Boolean getAppInstalled()
Whether the user has installed the requesting app.
- Returns:
- value or
null
for none
-
setAppInstalled
public About setAppInstalled(Boolean appInstalled)
Whether the user has installed the requesting app.
- Parameters:
appInstalled
- appInstalled 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
-
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
-
getExportFormats
public Map<String,List<String>> getExportFormats()
A map of source MIME type to possible targets for all supported exports.
- Returns:
- value or
null
for none
-
setExportFormats
public About setExportFormats(Map<String,List<String>> exportFormats)
A map of source MIME type to possible targets for all supported exports.
- Parameters:
exportFormats
- exportFormats or null
for none
-
getFolderColorPalette
public List<String> getFolderColorPalette()
The currently supported folder colors as RGB hex strings.
- Returns:
- value or
null
for none
-
setFolderColorPalette
public About setFolderColorPalette(List<String> folderColorPalette)
The currently supported folder colors as RGB hex strings.
- Parameters:
folderColorPalette
- folderColorPalette or null
for none
-
getImportFormats
public Map<String,List<String>> getImportFormats()
A map of source MIME type to possible targets for all supported imports.
- Returns:
- value or
null
for none
-
setImportFormats
public About setImportFormats(Map<String,List<String>> importFormats)
A map of source MIME type to possible targets for all supported imports.
- Parameters:
importFormats
- importFormats or null
for none
-
getKind
public String getKind()
Identifies what kind of resource this is. Value: the fixed string `"drive#about"`.
- Returns:
- value or
null
for none
-
setKind
public About setKind(String kind)
Identifies what kind of resource this is. Value: the fixed string `"drive#about"`.
- Parameters:
kind
- kind or null
for none
-
getMaxImportSizes
public Map<String,Long> getMaxImportSizes()
A map of maximum import sizes by MIME type, in bytes.
- Returns:
- value or
null
for none
-
setMaxImportSizes
public About setMaxImportSizes(Map<String,Long> maxImportSizes)
A map of maximum import sizes by MIME type, in bytes.
- Parameters:
maxImportSizes
- maxImportSizes or null
for none
-
getMaxUploadSize
public Long getMaxUploadSize()
The maximum upload size in bytes.
- Returns:
- value or
null
for none
-
setMaxUploadSize
public About setMaxUploadSize(Long maxUploadSize)
The maximum upload size in bytes.
- Parameters:
maxUploadSize
- maxUploadSize or null
for none
-
getStorageQuota
public About.StorageQuota getStorageQuota()
The user's storage quota limits and usage. All fields are measured in bytes.
- Returns:
- value or
null
for none
-
setStorageQuota
public About setStorageQuota(About.StorageQuota storageQuota)
The user's storage quota limits and usage. All fields are measured in bytes.
- Parameters:
storageQuota
- storageQuota 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.