目录

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

Protected Constructor Summary

Constructor name

Drive.Changes.GetStartCursor() 

Constructor for the Drive.Changes.GetStartCursor class.

Public Method Summary

Return typeMethod name
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 line-wrapping breaks.

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

constructor
protected Drive.Changes.GetStartCursor()
Constructs a Drive.Changes.GetStartCursor object.

Public Methods

Method
public Drive.Changes.GetStartCursor setFields(String fields)
Sets the fields to be contained in a response.

Parameters

Parameter nameParameter desc
fieldsFields (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.

Return

typedesc
Drive.Changes.GetStartCursorA Drive.Changes.GetStartCursor object.
Method


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

Sets the given parameter value for the given parameter name.

Parameters

Parameter nameParameter desc
parameterNameParameter name.
valueParameter value.

Return

typedesc
Drive.Changes.GetStartCursorA Drive.Changes.GetStartCursor object.
Method


public Drive.Changes.GetStartCursor setForm(String form)

Sets the response data format.

Parameters

Parameter nameParameter desc
formResponse data format. The default data format is JSON, and only this format is supported currently.

Return

typedesc
Drive.Changes.GetStartCursorA Drive.Changes.GetStartCursor object.
Method


public Drive.Changes.GetStartCursor  setPrettyPrint(Boolean prettyPrint)

Sets whether to return a response containing indentations and line-wrapping breaks.

Parameters

Parameter nameParameter desc
prettyPrintIndicates whether to return a response containing indentations and line-wrapping breaks. The value is of the Boolean type.

Return

typedesc
Drive.Changes.GetStartCursorA Drive.Changes.GetStartCursor object.
Method


public Drive.Changes.GetStartCursor setQuotaId(String quotaId)

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

Parameters

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

Return

typedesc
Drive.Changes.GetStartCursorA Drive.Changes.GetStartCursor object.
Method


public T execute() throws IOException

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

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

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

Sample Code

  1. private void getStartCursorChange(Drive drive) {
  2.    try {
  3.        Drive.Changes.GetStartCursor getStartCursor = drive.changes().getStartCursor();
  4.        StartCursor startCursor = getStartCursor.execute();
  5.    } catch (Exception e) {
  6.        Log.e(TAG, "getStartCursor error: " + e.toString());
  7.    }
  8. }