| Class info |
| public final class About extends GenericJson |
| 用户信息类,包括用户名,存储容量,上传限制,是否要提示割接等状态信息。 |
| Type | Name | Desc |
| static final class | About.StorageQuota | About.StorageQuota类声明,用户存储容量以及已使用容量。 所有字段单位: bytes。 |
| Constructor name |
About() About类构造方法。 |
| Return type | Method name |
| Boolean | isNeedUpdate() 返回当前是否需要用户进行安全策略更新 。 |
| About | setNeedUpdate(boolean needUpdate) 设置当前是否需要用户进行安全策略更新。 |
| String | getUpdateUrl() 返回安全策略更新的Web页面URL。 |
| About | setUpdateUrl(String updateUrl) 设置安全策略更新的Web页面URL。 |
| String | getCategory() 获取资源类型。 |
| About | setCategory(String category) 设置资源类型。 |
| Long | getMaxFileUploadSize() 返回最大上载大小(以字节为单位)。 |
| About | setMaxFileUploadSize(Long maxFileUploadSize) 设置最大上载大小(以字节为单位)。 |
| About.StorageQuota | getStorageQuota() 获取用户存储容量以及已使用容量(所有字段以字节为单位)。 |
| About | setStorageQuota(StorageQuota storageQuota) 设置用户存储容量以及已使用容量(所有字段以字节为单位)。 |
| User | getUser() 获取登录的用户信息。 |
| About | setUser(User user) 设置登录的用户信息。 |
| About | set(String fieldName, Object value) 设置自定义属性及属性值。 |
| About | clone() 克隆一个About类对象。 |
| Long | getMaxThumbnailSize() 获取最大缩略图大小(以字节为单位)。 |
| About | setMaxThumbnailSize(Long maxThumbnailSize) 设置最大缩略图大小(以字节为单位)。 |
| constructor |
| About() |
| 构造一个About类对象 。 |
| Method |
| public Boolean isNeedUpdate () |
| 判断当前是否需要用户进行安全策略更新。 |
Return
| type | desc |
| Boolean | 返回当前是否需要用户进行安全策略更新。needUpdate字段为可选字段,Drive.About.Get接口可能并不返回该字段。 |
| Method |
public About setNeedUpdate(boolean needUpdate) |
| 设置当前是否需要用户进行安全策略更新。 |
Parameters
| Parameter name | Parameter desc |
| needUpdate | 用户是否需要进行安全策略更新。true:需要,false:无需。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public String getUpdateUrl() |
| 获取升级提示的Web页面Url。 |
Return
| type | desc |
| String | 返回升级提示的Web页面Url。 |
| Method |
public About setUpdateUrl(String updateUrl) |
| 设置安全策略更新的Web页面Url。 |
Parameters
| Parameter name | Parameter desc |
| updateUrl | 安全策略更新的Web页面Url。needUpdate=true时,会返回一个url给客户端,开发者需要调用浏览器显示该安全策略界面,供用户授权。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public String getCategory() |
| 获取资源类型。 |
Return
| type | desc |
| String | 返回资源类型。 |
| Method |
public About setCategory(String category) |
| 设置资源类型。 |
Parameters
| Parameter name | Parameter desc |
| category | 资源类型,例如drive#about。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public Long getMaxFileUploadSize() |
| 返回最大上载大小(以字节为单位)。 |
Return
| type | desc |
| Long | 最大上载大小。 |
| Method |
public About setMaxFileUploadSize (Long maxFileUploadSize) |
| 设置最大上载大小(以字节为单位)。 |
Parameters
| Parameter name | Parameter desc |
| maxFileUploadSize | 最大上载大小,即允许上传的最大文件大小。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public About.StorageQuota getStorageQuota () |
| 获取用户存储容量以及已使用容量(所有字段以字节为单位)。 |
Return
| type | desc |
| About.StorageQuota | 返回一个About.StorageQuota对象。 |
| Method |
public About setStorageQuota (StorageQuota storageQuota) |
| 设置用户存储容量以及已使用容量(所有字段以字节为单位)。 |
Parameters
| Parameter name | Parameter desc |
| storageQuota | 用户存储容量以及已使用容量。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public User getUser () |
| 获取登陆的用户信息。 |
Return
| type | desc |
| User | 返回一个User对象。 |
| Method |
public About setUser (User user) |
| 设置登陆的用户信息。 |
Parameters
| Parameter name | Parameter desc |
| user | 登录的用户信息。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public About set(String fieldName,Object value) |
| 设置自定义属性及属性值。 |
Parameters
| Parameter name | Parameter desc |
| fieldName | 属性名称。 |
| value | 属性值。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public About clone () |
| 克隆一个About类对象。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public About setMaxThumbnailSize(Long maxThumbnailSize) |
| 设置最大缩略图大小。 |
Parameters
| Parameter name | Parameter desc |
| maxThumbnailSize | 要设置的最大缩略图大小(以字节为单位)。 |
Return
| type | desc |
| About | 返回一个About对象。 |
| Method |
public Long getMaxThumbnailSize() |
| 获取最大缩略图大小。 |
Return
| type | desc |
| Long | 返回最大缩略图大小(以字节为单位)。 |