Package no.entur.protoc.interfaces
Class MessageTypeHandler
java.lang.Object
no.entur.protoc.interfaces.MessageTypeHandler
Generate interfaces for a proto message and create CodeGeneratorResponse.File to add it to generated java class.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageTypeHandler(InterfaceProtocContext context, com.google.protobuf.DescriptorProtos.DescriptorProto messageTypeDesc, com.google.protobuf.DescriptorProtos.FileDescriptorProto fileDesc) -
Method Summary
Modifier and TypeMethodDescriptionList<com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File> voidcom.squareup.javapoet.ClassNamegetClassNameFromTypeName(String typeName, boolean useInterfaceForLocalTypes)
-
Constructor Details
-
MessageTypeHandler
public MessageTypeHandler(InterfaceProtocContext context, com.google.protobuf.DescriptorProtos.DescriptorProto messageTypeDesc, com.google.protobuf.DescriptorProtos.FileDescriptorProto fileDesc)
-
-
Method Details
-
generateInterfaces
public void generateInterfaces() -
generateAddInterfaceCodeGenerationFiles
public List<com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse.File> generateAddInterfaceCodeGenerationFiles() -
getClassNameFromTypeName
public com.squareup.javapoet.ClassName getClassNameFromTypeName(String typeName, boolean useInterfaceForLocalTypes)
-