Class ChangeApi.CommentsRequest
java.lang.Object
com.google.gerrit.extensions.api.changes.ChangeApi.CommentsRequest
- Direct Known Subclasses:
ChangeApi.DraftsRequest
- Enclosing interface:
- ChangeApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontextPadding
(int contextPadding) abstract Map<String,
List<CommentInfo>> get()
Get all published comments on a change.abstract List<CommentInfo>
Get all published comments on a change as a list.boolean
int
withContext
(boolean enableContext)
-
Constructor Details
-
CommentsRequest
public CommentsRequest()
-
-
Method Details
-
get
Get all published comments on a change.- Returns:
- comments in a map keyed by path; comments have the
revision
field set to indicate their patch set. - Throws:
RestApiException
-
getAsList
Get all published comments on a change as a list.- Returns:
- comments as a list; comments have the
revision
field set to indicate their patch set. - Throws:
RestApiException
-
withContext
-
contextPadding
-
withContext
-
getContext
public boolean getContext() -
getContextPadding
public int getContextPadding()
-