Interface PhenopacketFormatConverter<T extends com.google.protobuf.MessageOrBuilder>

Type Parameters:
T -

public interface PhenopacketFormatConverter<T extends com.google.protobuf.MessageOrBuilder>
The implementors allow to convert between formats of the top-level elements of Phenopacket schema.
  • Method Summary

    Modifier and Type
    Method
    Description
    toItem(byte[] payload)
    Convert the payload into Protobuf representation of a top-level element.
    toItem(String payload)
    Convert JSON payload into Protobuf representation of a top-level element.
    default String
    toJson(byte[] payload)
    Convert the payload into a JSON string.
    toJson(T item)
    Convert Protobuf representation of a top-level element into a JSON string.
  • Method Details