KotlinOutput

open class KotlinOutput @Inject constructor : WireOutput

Constructors

Link copied to clipboard
@Inject
constructor()

Properties

Link copied to clipboard

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

Link copied to clipboard

If a oneof has more than or boxOneOfsMinSize fields, it will be generated using boxed oneofs as defined in OneOf.

Link copied to clipboard

If true, the constructor of all generated types will be non-public, and they will be instantiable via their builders, regardless of the value of javaInterop.

Link copied to clipboard

True to emit annotations for options applied on messages, fields, etc.

Link copied to clipboard

True to emit types for options declared on messages, fields, etc.

Link copied to clipboard

If true, adapters will generate decode functions for ProtoReader32. Use this optimization when targeting Kotlin/JS, where Long cursors are inefficient.

Link copied to clipboard

enum_class or sealed_class. See EnumMode.

Link copied to clipboard

If true, Kotlin keywords are escaped with backticks. If false, an underscore is added as a suffix.

Link copied to clipboard

See com.squareup.wire.schema.Target.excludes

Link copied to clipboard

See com.squareup.wire.schema.Target.exclusive

Link copied to clipboard

If true, the generated gRPC client will use explicit classes for client, server, and bidirectional streaming calls.

Link copied to clipboard

See com.squareup.wire.schema.Target.includes

Link copied to clipboard

True for emitted types to implement APIs for easier migration from the Java target.

Link copied to clipboard

If true, the generated classes will be mutable..

Link copied to clipboard

If present, generated services classes will use this as a suffix instead of inferring one from the rpcRole.

Link copied to clipboard
var out: String?

Set this to override the default output directory for this WireOutput.

Link copied to clipboard

Blocking or suspending.

Link copied to clipboard

Client, server, or none.

Link copied to clipboard

True for emitted services to implement one interface per RPC.

Functions

Link copied to clipboard
open override fun toTarget(outputDirectory: String): KotlinTarget

Transforms this WireOutput into a Target for which Wire will generate code. The Target should use outputDirectory instead of WireOutput.out in all cases for its output directory.