Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.
| Class info |
| public final class Comment extends GenericJson |
| File comment model class. |
| Constructor name |
Comment() Constructor for the Comment class. |
| Return type | Method name |
| String | getPosition() Obtains a file position in JSON format. |
| Comment | setPosition(String position) Sets a file position in JSON format. |
| User | getCreator() Obtains information about the user who creates a comment. |
| Comment | setCreator(User creator) Sets information about the user who creates a comment. |
| String | getDescription() Obtains a comment. |
| Comment | setDescription(String description) Sets a comment. |
| com.huawei.cloud.base.util.DateTime | getCreatedTime() Obtains comment creation time. |
| Comment | setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime) Sets comment creation time. |
| Boolean | getDeleted() Checks whether a comment is deleted. |
| Comment | setDeleted(Boolean deleted) Sets whether a comment is deleted. |
| String | getHtmlDescription() Obtains a comment in HTML format. |
| Comment | setHtmlDescription(String htmlDescription) Sets a comment in HTML format. |
| List<Reply> | getReplies() Obtains all replies to a comment. |
| Comment | setReplies(List<Reply> replies) Sets all replies to a comment. |
| String | getId() Obtains the ID of a comment. |
| Comment | setId(String id) Sets the ID of a comment. |
| String | getCategory() Obtains the resource type. |
| Comment | setCategory(String category) Sets the resource type. |
| com.huawei.cloud.base.util.DateTime | getEditedTime() Obtains the last modification time of a comment. |
| Comment | setEditedTime(com.huawei.cloud.base.util.DateTime editedTime) Sets the last modification time of a comment. |
| Comment.QuotedContent | getQuotedContent() Obtains the content of a commented file. |
| Comment | setQuotedContent(Comment.QuotedContent quotedContent) Sets the content of a commented file. |
| Boolean | getResolved() Checks whether a comment is resolved by one of its replies. |
| Comment | setResolved(Boolean resolved) Sets whether a comment is resolved by one of its replies. |
| Comment | set(String fieldName, Object value) Sets the given field value for the given field name. |
| Comment | clone() Clones a Comment object. |
| constructor |
| Comment() |
| Constructs a Comment object. |
| Method |
| public String getPosition() |
| Obtains a file position in JSON format. |
Return
| type | desc |
| String | File position in JSON format. |
| Method |
public Comment setPosition(String position) |
| Sets a file position in JSON format. |
Parameters
| Parameter name | Parameter desc |
| position | File position in JSON format. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public User getCreator() |
| Obtains information about the user who creates a comment. |
Return
| type | desc |
| User | Information about the user who creates a comment. |
| Method |
public Comment setCreator(User creator) |
| Sets information about the user who creates a comment. |
Parameters
| Parameter name | Parameter desc |
| creator | Information about the user who creates a comment. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public String getDescription() |
| Obtains a comment. |
Return
| type | desc |
| String | Comment. |
| Method |
public Comment setDescription(String description) |
| Sets a comment. |
Parameters
| Parameter name | Parameter desc |
| description | Comment. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public com.huawei.cloud.base.util.DateTime getCreatedTime() |
| Obtains comment creation time. |
Return
| type | desc |
| com.huawei.cloud.base.util.DateTime | Comment creation time. |
| Method |
public Comment setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime) |
| Sets comment creation time. |
Parameters
| Parameter name | Parameter desc |
| createdTime | Comment creation time. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
| Method |
public Boolean getDeleted() |
| Checks whether a comment is deleted. |
Return
| type | desc |
| Boolean | Indicates whether a comment is deleted. |
| Method |
public Comment setDeleted(Boolean deleted) |
| Sets whether a comment is deleted. |
Parameters
| Parameter name | Parameter desc |
| deleted | Indicates whether a comment is deleted. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public String getHtmlDescription() |
| Obtains a comment in HTML format. |
Return
| type | desc |
| String | Comment in HTML format. |
| Method |
public Comment setHtmlDescription(String htmlDescription) |
| Sets a comment in HTML format. |
Parameters
| Parameter name | Parameter desc |
| htmlDescription | Comment in HTML format. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public List<Reply> getReplies() |
| Obtains all replies to a comment. |
Return
| type | desc |
| List<Reply> | All replies to a comment. |
| Method |
public Comment setReplies(List<Reply> replies) |
| Sets all replies to a comment. |
Parameters
| Parameter name | Parameter desc |
| replies | All replies to a comment. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public String getId() |
| Obtains the ID of a comment. |
Return
| type | desc |
| String | ID of a comment. |
| Method |
public Comment setId(String id) |
| Sets the ID of a comment. |
Parameters
| Parameter name | Parameter desc |
| id | ID of a comment. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public String getCategory() |
| Obtains the resource type. |
Return
| type | desc |
| String | Resource type. |
| Method |
public Comment setCategory(String category) |
| Sets the resource type. |
Parameters
| Parameter name | Parameter desc |
| category | Resource type. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public com.huawei.cloud.base.util.DateTime getEditedTime() |
| Obtains the last modification time of a comment. |
Return
| type | desc |
| com.huawei.cloud.base.util.DateTime | Last modification time of a comment. |
| Method |
public Comment setEditedTime(com.huawei.cloud.base.util.DateTime editedTime) |
| Sets the last modification time of a comment. |
Parameters
| Parameter name | Parameter desc |
| editedTime | Last modification time of a comment. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public Comment.QuotedContent getQuotedContent() |
| Obtains the content of a commented file. |
Return
| type | desc |
| Comment.QuotedContent | Content of a commented file. |
| Method |
public Comment setQuotedContent(Comment.QuotedContent quotedContent) |
| Sets the content of a commented file. |
Parameters
| Parameter name | Parameter desc |
| quotedContent | Content of a commented file. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public Boolean getResolved() |
| Checks whether a comment is resolved by one of its replies. |
Return
| type | desc |
| Boolean | Indicates whether a comment is resolved by one of its replies. |
| Method |
public Comment setResolved(Boolean resolved) |
| Sets whether a comment is resolved by one of its replies. |
Parameters
| Parameter name | Parameter desc |
| resolved | Indicates whether a comment is resolved by one of its replies. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public Comment set(String fieldName, Object value) |
| Sets the given field value for the given field name. |
Parameters
| Parameter name | Parameter desc |
| fieldname | Field name. |
| value | Field value. |
Return
| type | desc |
| Comment | A Comment object. |
| Method |
public Comment clone() |
| Clones a Comment object. |
Return
| type | desc |
| Comment | A Comment object. |