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

JavaTarget

data class JavaTarget : Target

Generate .java sources.

Constructors

<init>

JavaTarget(includes: List<String> = listOf("*"), excludes: List<String> = listOf(), exclusive: Boolean = true, outDirectory: String, android: Boolean = false, androidAnnotations: Boolean = false, compact: Boolean = false)

Generate .java sources.

Properties

android

val android: Boolean

True for emitted types to implement android.os.Parcelable.

androidAnnotations

val androidAnnotations: Boolean

True to enable the androidx.annotation.Nullable annotation where applicable.

compact

val compact: Boolean

True to emit code that uses reflection for reading, writing, and toString methods which are normally implemented with generated code.

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