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;
}
}
Content copied to clipboard