Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14724

Create a simple DSL to build Protocol Buffers schema

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 15.0.0.Final
    • 14.0.7.Final
    • Marshalling
    • None

      We want to provide a DSL to build a Protocol Buffers schema with all the options we can use using ProtoStream and the indexing annotations.

      Here is a possible usage:

      builder =new ProtoBuf.Builder()
         .indexed()
         .required("a", 1)
            .basic()
         .optional("b", 2)
            .keyword(...);
      var protobuf_as_string = builder.build()
      

              fercoli@redhat.com Fabio Massimo Ercoli
              fercoli@redhat.com Fabio Massimo Ercoli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: