Package com.google.protobuf
Class GeneratedFile
- java.lang.Object
-
- com.google.protobuf.GeneratedFile
-
- Direct Known Subclasses:
AnyProto
,ApiProto
,DescriptorProtos
,DurationProto
,EmptyProto
,FieldMaskProto
,JavaFeaturesProto
,PluginProtos
,SourceContextProto
,StructProto
,TimestampProto
,TypeProto
,WrappersProto
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.
-
-
-
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.
-
-