目录

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.

Nested Class Summary

TypeNameDesc
static final classAbout.StorageQuotaDeclaration of the About.StorageQuota class, including the storage quota limits and usage. All fields are measured in bytes.

Public Constructor Summary

Constructor name

About() 

Constructor for the About class.

Public Method Summary

Return typeMethod 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.

Public Constructors

constructor
About()
Constructs an About object.

Public Methods

Method
public Boolean isNeedUpdate ()
Checks whether a user needs to update the security policy.

Return

typedesc
BooleanWhether 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 nameParameter desc
needUpdateIndicates 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

typedesc
AboutAn About object.
Method


public String getUpdateUrl()

Obtains the URL of the web page for updating the security policy.

Return

typedesc
StringURL 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 nameParameter desc
updateUrlURL 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

typedesc
AboutAn About object.
Method


public String getCategory()

Obtains the resource type.

Return

typedesc
StringResource type.
Method


public About setCategory(String category)

Sets the resource type.

Parameters

Parameter nameParameter desc
categoryResource type, for example, drive#about.

Return

typedesc
AboutAn About object.
Method


public Long getMaxFileUploadSize()

Obtains the maximum size of a file that can be uploaded, in bytes.

Return

typedesc
LongMaximum 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 nameParameter desc
maxFileUploadSizeMaximum size of a file that can be uploaded.

Return

typedesc
AboutAn About object.
Method


public About.StorageQuota getStorageQuota ()

Obtains a user's storage quota limits and usage, in bytes.

Return

typedesc
About.StorageQuotaAn About.StorageQuota object.
Method


public About setStorageQuota (StorageQuota storageQuota)

Sets a user's storage quota limits and usage, in bytes.

Parameters

Parameter nameParameter desc
storageQuotaStorage quota limits and usage of a user.

Return

typedesc
AboutAn About object.
Method


public User getUser ()

Obtains information about the user who has signed in.

Return

typedesc
UserA User object.
Method


public About setUser (User user)

Sets information about the user who has signed in.

Parameters

Parameter nameParameter desc
userInformation about the user who has signed in.

Return

typedesc
AboutAn About object.
Method


public About set(String fieldName,Object value)

Sets the given field value for the given field name.

Parameters

Parameter nameParameter desc
fieldNameField name.
valueField value.

Return

typedesc
AboutAn About object.
Method


public About clone ()

Clones an About object.

Return

typedesc
AboutAn About object.
Method


public About setMaxThumbnailSize(Long maxThumbnailSize)

Sets the maximum thumbnail size.

Parameters

Parameter nameParameter desc
maxThumbnailSizeMaximum thumbnail size to be set, in bytes.

Return

typedesc
AboutAn About object.
Method


public Long getMaxThumbnailSize()

Obtains the maximum thumbnail size.

Return

typedesc
LongMaximum thumbnail size, in bytes.