Package com.google.protobuf
Class GeneratedMessageInfoFactory
- java.lang.Object
-
- com.google.protobuf.GeneratedMessageInfoFactory
-
- All Implemented Interfaces:
MessageInfoFactory
@ExperimentalApi class GeneratedMessageInfoFactory extends java.lang.Object implements MessageInfoFactory
A factory for message info that is generated into the message itself.
-
-
Field Summary
Fields Modifier and Type Field Description private static GeneratedMessageInfoFactory
instance
-
Constructor Summary
Constructors Modifier Constructor Description private
GeneratedMessageInfoFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeneratedMessageInfoFactory
getInstance()
boolean
isSupported(java.lang.Class<?> messageType)
Whether the message class is supported by this factory.MessageInfo
messageInfoFor(java.lang.Class<?> messageType)
Returns a information of the message class.
-
-
-
Field Detail
-
instance
private static final GeneratedMessageInfoFactory instance
-
-
Method Detail
-
getInstance
public static GeneratedMessageInfoFactory getInstance()
-
isSupported
public boolean isSupported(java.lang.Class<?> messageType)
Description copied from interface:MessageInfoFactory
Whether the message class is supported by this factory.- Specified by:
isSupported
in interfaceMessageInfoFactory
-
messageInfoFor
public MessageInfo messageInfoFor(java.lang.Class<?> messageType)
Description copied from interface:MessageInfoFactory
Returns a information of the message class.- Specified by:
messageInfoFor
in interfaceMessageInfoFactory
-
-