handle

open fun handle(schema: Schema, context: SchemaHandler.Context)

This will handle all ProtoFiles which are part of the sourcePath. If a Module is set in the context, it will handle only Types and Services the module defines respecting the context rules. Override this method if you have specific needs the default implementation doesn't address.


abstract fun handle(type: Type, context: SchemaHandler.Context): Path?

Returns the Path of the file which type will have been generated into. Null if nothing has been generated.


abstract fun handle(service: Service, context: SchemaHandler.Context): List<Path>

Returns the Paths of the files which service will have been generated into. Null if nothing has been generated.


abstract fun handle(extend: Extend, field: Field, context: SchemaHandler.Context): Path?

Returns the Path of the files which field will have been generated into. Null if nothing has been generated.