Package com.google.protobuf
Class GeneratedMessage.UnusedPrivateParameter
- java.lang.Object
-
- com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
- Enclosing class:
- GeneratedMessage
protected static final class GeneratedMessage.UnusedPrivateParameter extends java.lang.Object
This class is used to make a generated protected method inaccessible from user's code (e.g., theGeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
method below). When this class is used as a parameter's type in a generated protected method, the method is visible to user's code in the same package, but since the constructor of this class is private to protobuf runtime, user's code can't obtain an instance of this class and as such can't actually make a method call on the protected method.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static GeneratedMessage.UnusedPrivateParameter
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
UnusedPrivateParameter()
-
-
-
Field Detail
-
INSTANCE
static final GeneratedMessage.UnusedPrivateParameter INSTANCE
-
-