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

Target

sealed class Target : Serializable

Types

SchemaHandler

interface SchemaHandler

Properties

excludes

abstract val excludes: List<String>

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

exclusive

abstract 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

abstract 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.

Inheritors

CustomTargetBeta

data class CustomTargetBeta : Target

Generate something custom defined by an external class.

JavaTarget

data class JavaTarget : Target

Generate .java sources.

KotlinTarget

data class KotlinTarget : Target

Generate .kt sources.

NullTarget

data class NullTarget : Target

Omit code generation for these sources. Use this for a dry-run.

ProtoTarget

data class ProtoTarget : Target