public class Drive.Comments.Create extends DriveRequest<Comment>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Create(java.lang.String fileId,
Comment content)
Creates a new comment on a file.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFileId()
The ID of the file.
|
Drive.Comments.Create |
set(java.lang.String parameterName,
java.lang.Object value) |
Drive.Comments.Create |
setAlt(java.lang.String alt)
Data format for the response.
|
Drive.Comments.Create |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Comments.Create |
setFileId(java.lang.String fileId)
The ID of the file.
|
Drive.Comments.Create |
setKey(java.lang.String key)
API key.
|
Drive.Comments.Create |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Comments.Create |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Comments.Create |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Drive.Comments.Create |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Create(java.lang.String fileId,
Comment content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Drive.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
fileId - The ID of the file.content - the Commentpublic Drive.Comments.Create setAlt(java.lang.String alt)
DriveRequestsetAlt in class DriveRequest<Comment>public Drive.Comments.Create setFields(java.lang.String fields)
DriveRequestsetFields in class DriveRequest<Comment>public Drive.Comments.Create setKey(java.lang.String key)
DriveRequestsetKey in class DriveRequest<Comment>public Drive.Comments.Create setOauthToken(java.lang.String oauthToken)
DriveRequestsetOauthToken in class DriveRequest<Comment>public Drive.Comments.Create setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequestsetPrettyPrint in class DriveRequest<Comment>public Drive.Comments.Create setQuotaUser(java.lang.String quotaUser)
DriveRequestsetQuotaUser in class DriveRequest<Comment>public Drive.Comments.Create setUserIp(java.lang.String userIp)
DriveRequestsetUserIp in class DriveRequest<Comment>public java.lang.String getFileId()
public Drive.Comments.Create setFileId(java.lang.String fileId)
public Drive.Comments.Create set(java.lang.String parameterName, java.lang.Object value)
set in class DriveRequest<Comment>