| Class info |
| public final class About extends GenericJson |
| User information class, including the user name, storage quota limits, maximum size of a file that can be uploaded by the user, and whether the user needs to update the security policy. |
| Type | Name | Desc |
| static final class | About.StorageQuota | Declaration of the About.StorageQuota class, including the storage quota limits and usage. All fields are measured in bytes. |
| Constructor name |
About() Constructor for the About class. |
| Return type | Method name |
| Boolean | isNeedUpdate() Checks whether a user needs to update the security policy. |
| About | setNeedUpdate(boolean needUpdate) Sets whether a user needs to update the security policy. |
| String | getUpdateUrl() Obtains the URL of the web page for updating the security policy. |
| About | setUpdateUrl(String updateUrl) Sets the URL of the web page for updating the security policy. |
| String | getCategory() Obtains the resource type. |
| About | setCategory(String category) Sets the resource type. |
| Long | getMaxFileUploadSize() Obtains the maximum size of a file that can be uploaded, in bytes. |
| About | setMaxFileUploadSize(Long maxFileUploadSize) Sets the maximum size of a file that can be uploaded, in bytes. |
| About.StorageQuota | getStorageQuota() Obtains a user's storage quota limits and usage, in bytes. |
| About | setStorageQuota(StorageQuota storageQuota) Sets a user's storage quota limits and usage, in bytes. |
| User | getUser() Obtains information about the user who has signed in. |
| About | setUser(User user) Sets information about the user who has signed in. |
| About | set(String fieldName, Object value) Sets the given field value for the given field name. |
| About | clone() Clones an About object. |
| Long | getMaxThumbnailSize() Obtains the maximum thumbnail size, in bytes. |
| About | setMaxThumbnailSize(Long maxThumbnailSize) Sets the maximum thumbnail size, in bytes. |
| constructor |
| About() |
| Constructs an About object. |
| Method |
| public Boolean isNeedUpdate () |
| Checks whether a user needs to update the security policy. |
Return
| type | desc |
| Boolean | Whether a user needs to update the security policy.The needUpdate field is optional, and the Drive.About.Get API may not return this field. |
| Method |
public About setNeedUpdate(boolean needUpdate) |
| Sets whether a user needs to update the security policy. |
Parameters
| Parameter name | Parameter desc |
| needUpdate | Indicates whether a user needs to update the security policy. The value true indicates that the user needs to update the security policy and the value false indicates not. |
Return
| type | desc |
| About | An About object. |
| Method |
public String getUpdateUrl() |
| Obtains the URL of the web page for updating the security policy. |
Return
| type | desc |
| String | URL of the web page for updating the security policy. |
| Method |
public About setUpdateUrl(String updateUrl) |
| Sets the URL of the web page for updating the security policy. |
Parameters
| Parameter name | Parameter desc |
| updateUrl | URL of the web page for updating the security policy. When the value of needUpdate is true, a URL is returned to the app. In this case, the app needs to call a browser to open the user authorization page. |
Return
| type | desc |
| About | An About object. |
| Method |
public String getCategory() |
| Obtains the resource type. |
Return
| type | desc |
| String | Resource type. |
| Method |
public About setCategory(String category) |
| Sets the resource type. |
Parameters
| Parameter name | Parameter desc |
| category | Resource type, for example, drive#about. |
Return
| type | desc |
| About | An About object. |
| Method |
public Long getMaxFileUploadSize() |
| Obtains the maximum size of a file that can be uploaded, in bytes. |
Return
| type | desc |
| Long | Maximum size of a file that can be uploaded. |
| Method |
public About setMaxFileUploadSize (Long maxFileUploadSize) |
| Sets the maximum size of a file that can be uploaded, in bytes. |
Parameters
| Parameter name | Parameter desc |
| maxFileUploadSize | Maximum size of a file that can be uploaded. |
Return
| type | desc |
| About | An About object. |
| Method |
public About.StorageQuota getStorageQuota () |
| Obtains a user's storage quota limits and usage, in bytes. |
Return
| type | desc |
| About.StorageQuota | An About.StorageQuota object. |
| Method |
public About setStorageQuota (StorageQuota storageQuota) |
| Sets a user's storage quota limits and usage, in bytes. |
Parameters
| Parameter name | Parameter desc |
| storageQuota | Storage quota limits and usage of a user. |
Return
| type | desc |
| About | An About object. |
| Method |
public User getUser () |
| Obtains information about the user who has signed in. |
Return
| type | desc |
| User | A User object. |
| Method |
public About setUser (User user) |
| Sets information about the user who has signed in. |
Parameters
| Parameter name | Parameter desc |
| user | Information about the user who has signed in. |
Return
| type | desc |
| About | An About object. |
| Method |
public About set(String fieldName,Object value) |
| Sets the given field value for the given field name. |
Parameters
| Parameter name | Parameter desc |
| fieldName | Field name. |
| value | Field value. |
Return
| type | desc |
| About | An About object. |
| Method |
public About clone () |
| Clones an About object. |
Return
| type | desc |
| About | An About object. |
| Method |
public About setMaxThumbnailSize(Long maxThumbnailSize) |
| Sets the maximum thumbnail size. |
Parameters
| Parameter name | Parameter desc |
| maxThumbnailSize | Maximum thumbnail size to be set, in bytes. |
Return
| type | desc |
| About | An About object. |
| Method |
public Long getMaxThumbnailSize() |
| Obtains the maximum thumbnail size. |
Return
| type | desc |
| Long | Maximum thumbnail size, in bytes. |