Merge "Add support for java streaming proto"

This commit is contained in:
Joe Onorato
2021-11-01 00:14:59 +00:00
committed by Gerrit Code Review

View File

@@ -102,6 +102,9 @@ func protoFlags(ctx android.ModuleContext, j *CommonProperties, p *android.Proto
if String(p.Proto.Plugin) == "" {
var typeToPlugin string
switch String(p.Proto.Type) {
case "stream":
flags.proto.OutTypeFlag = "--javastream_out"
typeToPlugin = "javastream"
case "micro":
flags.proto.OutTypeFlag = "--javamicro_out"
typeToPlugin = "javamicro"