目录

Drive.Changes.GetStartCursor

Class Info

public class Drive.Changes.GetStartCursor extends DriveRequest<StartCursor>

Drive.Changes.GetStartCursor class.

Protected Constructor Summary

Constructor Name

Drive.Changes.GetStartCursor()

Constructs a Drive.Changes.GetStartCursor object.

Public Method Summary

Qualifier and Type

Method Name and Description

Drive.Changes.GetStartCursor

setFields(String fields)

Sets the fields to be contained in a response.

Drive.Changes.GetStartCursor

set(String parameterName, Object value)

Sets the given parameter value for the given parameter name.

StartCursor

execute()

Sends an HTTP request and returns the object to be converted.

Drive.Changes.GetStartCursor

setForm(String form)

Sets the response data format.

Drive.Changes.GetStartCursor

setPrettyPrint(Boolean prettyPrint)

Sets whether to return a response containing indentations and newline characters.

Drive.Changes.GetStartCursor

setQuotaId(String quotaId)

Sets a string of less than 40 characters to identify a user. The string is used by the server to restrict the user's API calls.

Protected Constructors

[h2]Drive.Changes.GetStartCursor

Constructor

protected Drive.Changes.GetStartCursor()

Constructs a Drive.Changes.GetStartCursor object.

Public Methods

[h2]setFields

Method

public Drive.Changes.GetStartCursor setFields(String fields)

Sets the fields to be contained in a response.

Parameters

Name

Description

fields

Fields (attributes of a StartCursor object) to be contained in a response, for example, category and startCursor. If fields is set to asterisk (*), all attributes of a StartCursor object are returned.

Returns

Type

Description

Drive.Changes.GetStartCursor

A Drive.Changes.GetStartCursor object.

[h2]set

Method

public Drive.Changes.GetStartCursor set(String parameterName, Object value)

Sets the given parameter value for the given parameter name.

Parameters

Name

Description

parameterName

Parameter name.

value

Parameter value.

Returns

Type

Description

Drive.Changes.GetStartCursor

A Drive.Changes.GetStartCursor object.

[h2]execute

Method

public T execute() throws IOException

Sends an HTTP request and returns the object to be converted.

Throws

Name

Description

java.io.IOException

I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description.

Returns

Type

Description

StartCursor

The Drive.Changes.GetStartCursor class inherits DriveRequest<StartCursor>. Therefore, the return result of the execute() method is encapsulated as a StartCursor object.

[h2]setForm

Method

public Drive.Changes.GetStartCursor setForm(String form)

Sets the response data format.

Parameters

Name

Description

form

Response data format. The default data format is json, and only this format is supported currently.

Returns

Type

Description

Drive.Changes.GetStartCursor

A Drive.Changes.GetStartCursor object.

[h2]setPrettyPrint

Method

public Drive.Changes.GetStartCursor setPrettyPrint(Boolean prettyPrint)

Sets whether to return a response containing indentations and newline characters.

Parameters

Name

Description

prettyPrint

Indicates whether to return a response containing indentations and newline characters. The value is a Boolean value.

Returns

Type

Description

Drive.Changes.GetStartCursor

A Drive.Changes.GetStartCursor object.

[h2]setQuotaId

Method

public Drive.Changes.GetStartCursor setQuotaId(String quotaId)

Sets a string of less than 40 characters to identify a user. The string is used by the server to restrict the user's API calls.

Parameters

Name

Description

quotaId

A string of less than 40 characters to identify a user. The string is used by the server to restrict the user's API calls.

Returns

Type

Description

Drive.Changes.GetStartCursor

A Drive.Changes.GetStartCursor object.

Sample Code

private void getStartCursorChange(Drive drive){
    try{
        Drive.Changes.GetStartCursor getStartCursor = drive.changes().getStartCursor();
        StartCursor startCursor = getStartCursor.execute();
    } catch (Exception e){
        Log.e(TAG, "getStartCursor error: " + e.getMessage());
    }
}