Class ChangeApi.CommentsRequest
- java.lang.Object
- 
- com.google.gerrit.extensions.api.changes.ChangeApi.CommentsRequest
 
- 
- Direct Known Subclasses:
- ChangeApi.DraftsRequest
 - Enclosing interface:
- ChangeApi
 
 public abstract static class ChangeApi.CommentsRequest extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description CommentsRequest()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ChangeApi.CommentsRequestcontextPadding(int contextPadding)abstract Map<String,List<CommentInfo>>get()Get all published comments on a change.abstract List<CommentInfo>getAsList()Get all published comments on a change as a list.booleangetContext()intgetContextPadding()ChangeApi.CommentsRequestwithContext()ChangeApi.CommentsRequestwithContext(boolean enableContext)
 
- 
- 
- 
Method Detail- 
getpublic abstract Map<String,List<CommentInfo>> get() throws RestApiException Get all published comments on a change.- Returns:
- comments in a map keyed by path; comments have the revisionfield set to indicate their patch set.
- Throws:
- RestApiException
 
 - 
getAsListpublic abstract List<CommentInfo> getAsList() throws RestApiException Get all published comments on a change as a list.- Returns:
- comments as a list; comments have the revisionfield set to indicate their patch set.
- Throws:
- RestApiException
 
 - 
withContextpublic ChangeApi.CommentsRequest withContext(boolean enableContext) 
 - 
contextPaddingpublic ChangeApi.CommentsRequest contextPadding(int contextPadding) 
 - 
withContextpublic ChangeApi.CommentsRequest withContext() 
 - 
getContextpublic boolean getContext() 
 - 
getContextPaddingpublic int getContextPadding() 
 
- 
 
-