Annotation Interface ProtoSerializableKeysValuesField


@Retention(RUNTIME) @Target(FIELD) public @interface ProtoSerializableKeysValuesField
Annotation which denotes that the map field this is applied to is serialized as two repeated fields, one for keys and one for values.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the key field in the protobuf in Java.
    The name of the value field in the protobuf in Java.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The protobuf version when this field was added.
  • Element Details

    • keysName

      String keysName
      The name of the key field in the protobuf in Java.
      Returns:
      The key field name.
    • valuesName

      String valuesName
      The name of the value field in the protobuf in Java.
      Returns:
      The value field name.
    • sinceVersion

      int sinceVersion
      The protobuf version when this field was added.
      Returns:
      The version.
      Default:
      0