All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.drive.model.Comment Maven / Gradle / Ivy

There is a newer version: v3-rev20241206-2.0.0
Show newest version
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.drive.model;

/**
 * A comment on a file. Some resource methods (such as `comments.update`) require a `commentId`. Use
 * the `comments.list` method to retrieve the ID for a comment in a file.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Drive API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class Comment extends com.google.api.client.json.GenericJson { /** * A region of the document represented as a JSON string. For details on defining anchor * properties, refer to [Manage comments and * replies](https://developers.google.com/drive/api/v3/manage-comments). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String anchor; /** * Output only. The author of the comment. The author's email address and permission ID will not * be populated. * The value may be {@code null}. */ @com.google.api.client.util.Key private User author; /** * The plain text content of the comment. This field is used for setting the content, while * `htmlContent` should be displayed. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String content; /** * The time at which the comment was created (RFC 3339 date-time). * The value may be {@code null}. */ @com.google.api.client.util.Key private com.google.api.client.util.DateTime createdTime; /** * Output only. Whether the comment has been deleted. A deleted comment has no content. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean deleted; /** * Output only. The content of the comment with HTML formatting. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String htmlContent; /** * Output only. The ID of the comment. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String id; /** * Output only. Identifies what kind of resource this is. Value: the fixed string * `"drive#comment"`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * The last time the comment or any of its replies was modified (RFC 3339 date-time). * The value may be {@code null}. */ @com.google.api.client.util.Key private com.google.api.client.util.DateTime modifiedTime; /** * The file content to which the comment refers, typically within the anchor region. For a text * file, for example, this would be the text at the location of the comment. * The value may be {@code null}. */ @com.google.api.client.util.Key private QuotedFileContent quotedFileContent; /** * Output only. The full list of replies to the comment in chronological order. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List replies; /** * Output only. Whether the comment has been resolved by one of its replies. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean resolved; /** * A region of the document represented as a JSON string. For details on defining anchor * properties, refer to [Manage comments and * replies](https://developers.google.com/drive/api/v3/manage-comments). * @return value or {@code null} for none */ public java.lang.String getAnchor() { return anchor; } /** * A region of the document represented as a JSON string. For details on defining anchor * properties, refer to [Manage comments and * replies](https://developers.google.com/drive/api/v3/manage-comments). * @param anchor anchor or {@code null} for none */ public Comment setAnchor(java.lang.String anchor) { this.anchor = anchor; return this; } /** * Output only. The author of the comment. The author's email address and permission ID will not * be populated. * @return value or {@code null} for none */ public User getAuthor() { return author; } /** * Output only. The author of the comment. The author's email address and permission ID will not * be populated. * @param author author or {@code null} for none */ public Comment setAuthor(User author) { this.author = author; return this; } /** * The plain text content of the comment. This field is used for setting the content, while * `htmlContent` should be displayed. * @return value or {@code null} for none */ public java.lang.String getContent() { return content; } /** * The plain text content of the comment. This field is used for setting the content, while * `htmlContent` should be displayed. * @param content content or {@code null} for none */ public Comment setContent(java.lang.String content) { this.content = content; return this; } /** * The time at which the comment was created (RFC 3339 date-time). * @return value or {@code null} for none */ public com.google.api.client.util.DateTime getCreatedTime() { return createdTime; } /** * The time at which the comment was created (RFC 3339 date-time). * @param createdTime createdTime or {@code null} for none */ public Comment setCreatedTime(com.google.api.client.util.DateTime createdTime) { this.createdTime = createdTime; return this; } /** * Output only. Whether the comment has been deleted. A deleted comment has no content. * @return value or {@code null} for none */ public java.lang.Boolean getDeleted() { return deleted; } /** * Output only. Whether the comment has been deleted. A deleted comment has no content. * @param deleted deleted or {@code null} for none */ public Comment setDeleted(java.lang.Boolean deleted) { this.deleted = deleted; return this; } /** * Output only. The content of the comment with HTML formatting. * @return value or {@code null} for none */ public java.lang.String getHtmlContent() { return htmlContent; } /** * Output only. The content of the comment with HTML formatting. * @param htmlContent htmlContent or {@code null} for none */ public Comment setHtmlContent(java.lang.String htmlContent) { this.htmlContent = htmlContent; return this; } /** * Output only. The ID of the comment. * @return value or {@code null} for none */ public java.lang.String getId() { return id; } /** * Output only. The ID of the comment. * @param id id or {@code null} for none */ public Comment setId(java.lang.String id) { this.id = id; return this; } /** * Output only. Identifies what kind of resource this is. Value: the fixed string * `"drive#comment"`. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * Output only. Identifies what kind of resource this is. Value: the fixed string * `"drive#comment"`. * @param kind kind or {@code null} for none */ public Comment setKind(java.lang.String kind) { this.kind = kind; return this; } /** * The last time the comment or any of its replies was modified (RFC 3339 date-time). * @return value or {@code null} for none */ public com.google.api.client.util.DateTime getModifiedTime() { return modifiedTime; } /** * The last time the comment or any of its replies was modified (RFC 3339 date-time). * @param modifiedTime modifiedTime or {@code null} for none */ public Comment setModifiedTime(com.google.api.client.util.DateTime modifiedTime) { this.modifiedTime = modifiedTime; return this; } /** * The file content to which the comment refers, typically within the anchor region. For a text * file, for example, this would be the text at the location of the comment. * @return value or {@code null} for none */ public QuotedFileContent getQuotedFileContent() { return quotedFileContent; } /** * The file content to which the comment refers, typically within the anchor region. For a text * file, for example, this would be the text at the location of the comment. * @param quotedFileContent quotedFileContent or {@code null} for none */ public Comment setQuotedFileContent(QuotedFileContent quotedFileContent) { this.quotedFileContent = quotedFileContent; return this; } /** * Output only. The full list of replies to the comment in chronological order. * @return value or {@code null} for none */ public java.util.List getReplies() { return replies; } /** * Output only. The full list of replies to the comment in chronological order. * @param replies replies or {@code null} for none */ public Comment setReplies(java.util.List replies) { this.replies = replies; return this; } /** * Output only. Whether the comment has been resolved by one of its replies. * @return value or {@code null} for none */ public java.lang.Boolean getResolved() { return resolved; } /** * Output only. Whether the comment has been resolved by one of its replies. * @param resolved resolved or {@code null} for none */ public Comment setResolved(java.lang.Boolean resolved) { this.resolved = resolved; return this; } @Override public Comment set(String fieldName, Object value) { return (Comment) super.set(fieldName, value); } @Override public Comment clone() { return (Comment) super.clone(); } /** * The file content to which the comment refers, typically within the anchor region. For a text * file, for example, this would be the text at the location of the comment. */ public static final class QuotedFileContent extends com.google.api.client.json.GenericJson { /** * The MIME type of the quoted content. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String mimeType; /** * The quoted content itself. This is interpreted as plain text if set through the API. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String value; /** * The MIME type of the quoted content. * @return value or {@code null} for none */ public java.lang.String getMimeType() { return mimeType; } /** * The MIME type of the quoted content. * @param mimeType mimeType or {@code null} for none */ public QuotedFileContent setMimeType(java.lang.String mimeType) { this.mimeType = mimeType; return this; } /** * The quoted content itself. This is interpreted as plain text if set through the API. * @return value or {@code null} for none */ public java.lang.String getValue() { return value; } /** * The quoted content itself. This is interpreted as plain text if set through the API. * @param value value or {@code null} for none */ public QuotedFileContent setValue(java.lang.String value) { this.value = value; return this; } @Override public QuotedFileContent set(String fieldName, Object value) { return (QuotedFileContent) super.set(fieldName, value); } @Override public QuotedFileContent clone() { return (QuotedFileContent) super.clone(); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy