Annotation Interface ProtoSerializableClass


@Retention(RUNTIME) @Target(TYPE) public @interface ProtoSerializableClass
Mark a class as being ProtoSerializable and specify the class type used to serialize the "serialized_data".
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The current version of this proto serialized class.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends com.google.protobuf.Message>
    Specifies the type of the serialized data payload.
  • Element Details

    • version

      int version
      The current version of this proto serialized class.
      Returns:
      The version number.
    • serializedDataClass

      Class<? extends com.google.protobuf.Message> serializedDataClass
      Specifies the type of the serialized data payload.
      Returns:
      The proto class of the serialized data.
      Default:
      com.google.protobuf.Message.class