Class GeneratedFile
java.lang.Object
com.google.protobuf.GeneratedFile
- Direct Known Subclasses:
JavaFeaturesProto, PluginProtos
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidaddOptionalExtension(ExtensionRegistry registry, String className, String fieldName) Add an optional extension from a file that may or may not be in the classpath.
-
Constructor Details
-
GeneratedFile
protected GeneratedFile()
-
-
Method Details
-
addOptionalExtension
protected static void addOptionalExtension(ExtensionRegistry registry, String className, String fieldName) Add an optional extension from a file that may or may not be in the classpath.
-