Class FileApi.NotImplemented
- java.lang.Object
-
- com.google.gerrit.extensions.api.changes.FileApi.NotImplemented
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.changes.FileApi
FileApi.BlameRequest, FileApi.DiffRequest, FileApi.NotImplemented
-
-
Constructor Summary
Constructors Constructor Description NotImplemented()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileApi.BlameRequest
blameRequest()
Creates a request to retrieve the blame information.BinaryResult
content()
DiffInfo
diff()
Diff against the revision's parent version of the file.DiffInfo
diff(int parent)
Diff against the specified parentDiffInfo
diff(String base)
Diff against the specified baseFileApi.DiffRequest
diffRequest()
Creates a request to retrieve the diff.void
setReviewed(boolean reviewed)
Set the file reviewed or not reviewed
-
-
-
Method Detail
-
content
public BinaryResult content() throws RestApiException
- Specified by:
content
in interfaceFileApi
- Throws:
RestApiException
-
diff
public DiffInfo diff() throws RestApiException
Description copied from interface:FileApi
Diff against the revision's parent version of the file.- Specified by:
diff
in interfaceFileApi
- Throws:
RestApiException
-
diff
public DiffInfo diff(String base) throws RestApiException
Description copied from interface:FileApi
Diff against the specified base- Specified by:
diff
in interfaceFileApi
- Parameters:
base
- revision id of the revision to be used as the diff base- Throws:
RestApiException
-
diff
public DiffInfo diff(int parent) throws RestApiException
Description copied from interface:FileApi
Diff against the specified parent- Specified by:
diff
in interfaceFileApi
- Parameters:
parent
- 1-based parent number to diff against- Throws:
RestApiException
-
diffRequest
public FileApi.DiffRequest diffRequest() throws RestApiException
Description copied from interface:FileApi
Creates a request to retrieve the diff. On the returned request formatting options for the diff can be set.- Specified by:
diffRequest
in interfaceFileApi
- Throws:
RestApiException
-
setReviewed
public void setReviewed(boolean reviewed) throws RestApiException
Description copied from interface:FileApi
Set the file reviewed or not reviewed- Specified by:
setReviewed
in interfaceFileApi
- Throws:
RestApiException
-
blameRequest
public FileApi.BlameRequest blameRequest() throws RestApiException
Description copied from interface:FileApi
Creates a request to retrieve the blame information. On the returned request formatting options for the blame request can be set.- Specified by:
blameRequest
in interfaceFileApi
- Throws:
RestApiException
-
-