WireEnumConstant

@Target(allowedTargets = [AnnotationTarget.FIELD])
annotation class WireEnumConstant(val declaredName: String = "")

Annotates generated WireEnum fields with metadata for serialization and deserialization.

Properties

Link copied to clipboard

Name of this constant as declared in the proto schema. This value is set to a non-empty string only when the declared name differs from the generated one; for instance, a proto constant named final generated in Java will be renamed to final_.