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

JavaTarget

data class JavaTarget : Target

Generate .java sources.

Constructors

<init>

JavaTarget(elements: List<String> = listOf("*"), 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.

elements

val elements: List<String>

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

outDirectory

val outDirectory: String