Class Proto

    • Constructor Detail

      • Proto

        public Proto()
    • Method Detail

      • setContext

        public void setContext​(ProtoContext context)
      • getFilename

        public String getFilename()
        Full filename (including path, relative to root of source tree).
      • setFilename

        public void setFilename​(String filename)
      • getSyntax

        public Syntax getSyntax()
      • setSyntax

        public void setSyntax​(Syntax syntax)
      • getPackage

        public Package getPackage()
      • setPackage

        public void setPackage​(Package pkg)
      • setImports

        public void setImports​(List<Import> imports)
      • getPublicImports

        public List<Import> getPublicImports()
        Returns all public imports in this proto file.
      • addImport

        public void addImport​(Import anImport)
      • setServices

        public void setServices​(List<Service> services)
      • addService

        public void addService​(Service service)
      • getNamespace

        public String getNamespace()
        Description copied from interface: UserTypeContainer
        Returns string prefix that is common for all children full names. For root container it is a dot if package is not set.
        Specified by:
        getNamespace in interface UserTypeContainer
      • getCanonicalName

        public String getCanonicalName()
        Get canonical name of this proto file. Canonical name is composed as package and file name, separated by dot.
      • getModule

        public Module getModule()
      • setModule

        public void setModule​(Module module)