Interface FilesToCompile
- All Known Implementing Classes:
ImmutableFilesToCompile
@Immutable
public interface FilesToCompile
Collection of sources to compile which can be passed to protoc. This is derived from zero or more
source listings.
- Since:
- 3.1.0
- Author:
- Ashley Scopes
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilesToCompile
allOf
(ProjectInputListing listing) Produce aFilesToCompile
containing all the proto sources and descriptor files from the givenProjectInputListing
.static FilesToCompile
empty()
Produce aFilesToCompile
that is totally empty.default boolean
isEmpty()
-
Method Details
-
getProtoSources
Collection<Path> getProtoSources() -
getDescriptorFiles
Collection<String> getDescriptorFiles() -
isEmpty
@Derived default boolean isEmpty() -
allOf
Produce aFilesToCompile
containing all the proto sources and descriptor files from the givenProjectInputListing
.- Returns:
- the files to compile.
-
empty
Produce aFilesToCompile
that is totally empty.- Returns:
- the files to compile.
-