Class ProtoGenerator.WrapperMessage

java.lang.Object
io.github.anupambasak.gradle.plugins.pojo2proto.ProtoGenerator.WrapperMessage
Enclosing class:
ProtoGenerator

public static final class ProtoGenerator.WrapperMessage extends Object
A generated message wrapping a repeated field, used where protobuf does not allow repeated: as a map value (Map<String, List<MyPojo>>) or as the element of another list (List<List<MyPojo>>). message MyPojoList { repeated MyPojo items = 1; }
  • Method Details

    • getName

      public String getName()
    • getProtoPackage

      public String getProtoPackage()
      The proto package the wrapper is generated in (the package of the first message that needed it).
    • getFile

      public String getFile()
      Path of the wrapper's own .proto file, relative to the destination; also its import path.
    • getElementType

      public String getElementType()
    • getImports

      public Set<String> getImports()