diff options
author | janakr <janakr@google.com> | 2018-03-21 07:43:11 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-21 07:44:34 -0700 |
commit | 9276164ea7388a8a55e11a2a2a3e02d9a631ffaf (patch) | |
tree | c365757d2eb1e4126c572e090c95943a46fed3a6 /src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java | |
parent | 67549a752c2316234b19d7b50ea84a8ae80d3669 (diff) |
@AutoCodec SupportData.
PiperOrigin-RevId: 189905795
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java b/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java index 924b8c87b6..d21a4d9d60 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java +++ b/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java @@ -21,23 +21,28 @@ import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.TransitiveInfoCollection; import com.google.devtools.build.lib.collect.nestedset.NestedSet; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; +import com.google.devtools.build.lib.skyframe.serialization.autocodec.AutoCodec; -/** - * A helper class for the *Support classes containing some data from ProtoLibrary. - */ +/** A helper class for the *Support classes containing some data from ProtoLibrary. */ +@AutoCodec @AutoValue @Immutable public abstract class SupportData { + @AutoCodec.Instantiator public static SupportData create( Predicate<TransitiveInfoCollection> nonWeakDepsPredicate, - ImmutableList<Artifact> protoSources, + ImmutableList<Artifact> directProtoSources, NestedSet<Artifact> protosInDirectDeps, NestedSet<Artifact> transitiveImports, NestedSet<String> transitiveProtoPathFlags, boolean hasProtoSources) { return new AutoValue_SupportData( - nonWeakDepsPredicate, protoSources, transitiveImports, protosInDirectDeps, - transitiveProtoPathFlags, hasProtoSources); + nonWeakDepsPredicate, + directProtoSources, + transitiveImports, + protosInDirectDeps, + transitiveProtoPathFlags, + hasProtoSources); } public abstract Predicate<TransitiveInfoCollection> getNonWeakDepsPredicate(); |