io.quarkus.grpc.runtime.config.GrpcCodeGenConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-grpc Show documentation
Show all versions of quarkus-grpc Show documentation
Serve and consume gRPC services
package io.quarkus.grpc.runtime.config;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
/**
* not really used, here only to describe config options for code generation
*/
@ConfigRoot(name = "generate-code.grpc", phase = ConfigPhase.BUILD_TIME)
public class GrpcCodeGenConfig {
/**
* 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
*
*/
@ConfigItem(defaultValue = "none")
public String scanForProto;
/**
* 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.
*/
@ConfigItem(defaultValue = "com.google.protobuf:protobuf-java")
public String scanForImports;
}