Key

abstract class Key<T>(val tag: Int, val adapter: ProtoAdapter<T>, val declaredName: String, val redacted: Boolean = false, val jsonName: String = "")

Identifies a field in a OneOf. Typically subclasses are generated by the Wire compiler and instances are declared as members of the referencing message class.

Note that the field's type may not uniquely identify the field. For example:

message ContactAddress {
string name = 1;

oneof address {
string sms_number = 2;
string email_address = 3;
}
}

Constructors

Link copied to clipboard
constructor(tag: Int, adapter: ProtoAdapter<T>, declaredName: String, redacted: Boolean = false, jsonName: String = "")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val redacted: Boolean = false
Link copied to clipboard
val tag: Int