Class GeneratedFile

  • Direct Known Subclasses:
    JavaFeaturesProto, PluginProtos

    public abstract class GeneratedFile
    extends java.lang.Object
    All generated outer classes extend this class. This class implements shared logic that should only be called by generated code.

    Users should generally ignore this class and use the generated Outer class directly instead.

    This class is intended to only be extended by protoc created gencode. It is not intended or supported to extend this class, and any protected methods may be removed without it being considered a breaking change as long as all supported gencode does not depend on the changed methods.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GeneratedFile()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void addOptionalExtension​(ExtensionRegistry registry, java.lang.String className, java.lang.String fieldName)
      Add an optional extension from a file that may or may not be in the classpath.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeneratedFile

        protected GeneratedFile()
    • Method Detail

      • addOptionalExtension

        protected static void addOptionalExtension​(ExtensionRegistry registry,
                                                   java.lang.String className,
                                                   java.lang.String fieldName)
        Add an optional extension from a file that may or may not be in the classpath.