tag

inline fun <T : Any> Taggable.tag(): T?

Returns the tag attached with T as a key, or null if no tag is attached with that key.

inline fun <T : Any> AttributeSpec.Builder.tag(tag: T?): AttributeSpec.Builder
inline fun <T : Any> EnumerationCaseSpec.Builder.tag(tag: T?): EnumerationCaseSpec.Builder
inline fun <T : Any> ExtensionSpec.Builder.tag(tag: T?): ExtensionSpec.Builder
inline fun <T : Any> FileMemberSpec.Builder.tag(tag: T?): FileMemberSpec.Builder
inline fun <T : Any> FileSpec.Builder.tag(tag: T?): FileSpec.Builder
inline fun <T : Any> FunctionSpec.Builder.tag(tag: T?): FunctionSpec.Builder
inline fun <T : Any> ImportSpec.Builder.tag(tag: T?): ImportSpec.Builder
inline fun <T : Any> ParameterSpec.Builder.tag(tag: T?): ParameterSpec.Builder
inline fun <T : Any> PropertySpec.Builder.tag(tag: T?): PropertySpec.Builder
inline fun <T : Any> TypeAliasSpec.Builder.tag(tag: T?): TypeAliasSpec.Builder
inline fun <T : Any> TypeSpec.Builder.tag(tag: T?): TypeSpec.Builder

Attaches tag to the request using T as a key. Tags can be read from a request using Taggable.tag. Use null to remove any existing tag assigned for T.

Use this API to attach debugging or other application data to a spec so that you may read it in other APIs or callbacks.