Interface GrpcCodeGenConfig


@ConfigMapping(prefix="quarkus.generate-code.grpc") @ConfigRoot(phase=BUILD_TIME) public interface GrpcCodeGenConfig
not really used, here only to describe config options for code generation
  • Method Summary

    Modifier and Type
    Method
    Description
    Controls whether Kotlin code is generated when the quarkus-kotlin extension is present (in which case the default is true).
    Specify the dependencies that are allowed to have proto files that can be imported by this application's protos
    gRPC code generation can scan dependencies of the application for proto files to generate Java stubs from.
  • Method Details

    • scanForProto

      @WithDefault("none") String scanForProto()
      gRPC code generation can scan dependencies of the application for proto files to generate Java stubs from. This property sets the scope of the dependencies to scan. Applicable values:
      • none - default - don't scan dependencies
      • a comma separated list of groupId:artifactId coordinates to scan
      • all - scan all dependencies
    • scanForImports

      @WithDefault("com.google.protobuf:protobuf-java") String scanForImports()
      Specify the dependencies that are allowed to have proto files that can be imported by this application's protos

      Applicable values:

      • none - default - don't scan dependencies
      • a comma separated list of groupId:artifactId coordinates to scan
      • all - scan all dependencies

      By default, com.google.protobuf:protobuf-java.

    • generateKotlin

      @WithName("kotlin.generate") Optional<Boolean> generateKotlin()
      Controls whether Kotlin code is generated when the quarkus-kotlin extension is present (in which case the default is true).