class KotlinGenerator
val schema: Schema |
fun generateFileAnnotations(): List<AnnotationSpec> |
|
fun generateOptionType(extend: Extend, field: Field): TypeSpec?
Example |
|
fun generateServiceTypeSpecs(service: Service, onlyRpc: Rpc? = null): Map<ClassName, TypeSpec>
|
|
fun generateType(type: Type): TypeSpec |
|
fun generatedServiceName(service: Service, rpc: Rpc? = null, isImplementation: Boolean = false): ClassName
Returns the full name of the class generated for service#rpc. This returns a name like
|
|
fun generatedTypeName(type: Type): ClassName
Returns the full name of the class generated for type. fun generatedTypeName(field: Field): ClassName
Returns the full name of the class generated for field. |
operator fun invoke(schema: Schema, profile: Profile = Profile(), emitAndroid: Boolean = false, javaInterop: Boolean = false, emitDeclaredOptions: Boolean = true, emitAppliedOptions: Boolean = false, emitKotlinSerialization: Boolean = false, rpcCallStyle: RpcCallStyle = RpcCallStyle.SUSPENDING, rpcRole: RpcRole = RpcRole.CLIENT, boxOneOfsMinSize: Int = 5_000, grpcServerCompatible: Boolean = false): KotlinGenerator |