Annotation Interface ProtoSerializableMapField


@Retention(RUNTIME) @Target(FIELD) public @interface ProtoSerializableMapField
Annotation which denotes that a map field should be part of the protobuf serialized representation.

Behaviour is undefined when used on a class which doesn't implement ProtoSerializable.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the field in the protobuf in Java.
    int
    The protobuf version when this field was added.
  • Element Details

    • sinceVersion

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

      String name
      The name of the field in the protobuf in Java.
      Returns:
      The field name.
      Default:
      "[DEFAULT_FIELD_NAME]"