Class Info |
|---|
public class Drive.Comments.Delete extends DriveRequest<Void> Drive.Comments.Delete class. |
Constructor Name |
|---|
Drive.Comments.Delete(String fileId, String commentId) Constructs a Drive.Comments.Delete object. |
Qualifier and Type | Method Name and Description |
|---|---|
String | Obtains a file comment ID. |
String | Obtains a file ID. |
set(String parameterName, Object value) Sets the given parameter value for the given parameter name. | |
setForm(String form) Sets the response data format. | |
setCommentId(String commentId) Sets a file comment ID. | |
setFields(String fields) Sets the fields to be contained in a response. | |
setFileId(String fileId) Sets a file ID. | |
setPrettyPrint(Boolean prettyPrint) Sets whether to return a response containing indentations and newline characters. | |
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. | |
Void | execute() Sends an HTTP request and returns the object to be converted. |
Constructor |
|---|
protected Drive.Comments.Delete(String fileId, String commentId) Constructs a Drive.Comments.Delete object. |
Parameters
Name | Description |
|---|---|
fileId | File ID. |
commentId | Comment ID. |
Method |
|---|
public String getCommentId() Obtains a file comment ID. |
Returns
Type | Description |
|---|---|
String | Comment ID. |
Method |
|---|
public String getFileId() Obtains a file ID. |
Returns
Type | Description |
|---|---|
String | File ID. |
Method |
|---|
public Drive.Comments.Delete 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.Comments.Delete | A Drive.Comments.Delete object. |
Method |
|---|
public Drive.Comments.Delete 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.Comments.Delete | A Drive.Comments.Delete object. |
Method |
|---|
public Drive.Comments.Delete setCommentId(String commentId) Sets a file comment ID. |
Parameters
Name | Description |
|---|---|
commentId | Comment ID. |
Returns
Type | Description |
|---|---|
Drive.Comments.Delete | A Drive.Comments.Delete object. |
Method |
|---|
public Drive.Comments.Delete setFields(String fields) Sets the fields to be contained in a response. |
Parameters
Name | Description |
|---|---|
fields | Fields to be contained in a response. An asterisk (*) can be used to match all related fields. |
Returns
Type | Description |
|---|---|
Drive.Comments.Delete | A Drive.Comments.Delete object. |
Method |
|---|
public Drive.Comments.Delete setFileId(String fileId) Sets a file ID. |
Parameters
Name | Description |
|---|---|
fileId | File ID. |
Returns
Type | Description |
|---|---|
Drive.Comments.Delete | A Drive.Comments.Delete object. |
Method |
|---|
public Drive.Comments.Delete 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.Comments.Delete | A Drive.Comments.Delete object. |
Method |
|---|
public Drive.Comments.Delete 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.Comments.Delete | A Drive.Comments.Delete object. |
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. |
Note: The Drive.Comments.Delete class inherits DriveRequest<Void>. Therefore, no result is returned if the execute() method is called in this class.