wire-compiler / com.squareup.wire.schema / CustomTargetBeta

CustomTargetBeta

data class CustomTargetBeta : Target

Generate something custom defined by an external class.

This API is currently unstable. We will be changing this API in the future.

Constructors

<init>

CustomTargetBeta(includes: List<String> = listOf("*"), excludes: List<String> = listOf(), exclusive: Boolean = true, outDirectory: String, customHandlerClass: String)

Generate something custom defined by an external class.

Properties

customHandlerClass

val customHandlerClass: String

A fully qualified class name for a class that implements CustomHandlerBeta. The class must have a no-arguments public constructor.

excludes

val excludes: List<String>

Proto types to excluded generated sources for. Types listed here will not be generated for this target.

exclusive

val exclusive: Boolean

True if types emitted for this target should not also be emitted for other targets. Use this to cause multiple outputs to be emitted for the same input type.

includes

val includes: List<String>

Proto types to include generated sources for. Types listed here will be generated for this target and not for subsequent targets in the task.

outDirectory

val outDirectory: String