Class ProtobufMessage

java.lang.Object
io.apicurio.registry.utils.protobuf.schema.ProtobufMessage

public class ProtobufMessage extends Object
Author:
Fabian Martinez
  • Constructor Details

    • ProtobufMessage

      public ProtobufMessage()
  • Method Details

    • protoBuilder

      public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder protoBuilder()
    • build

      public com.google.protobuf.DescriptorProtos.DescriptorProto build()
    • addField

      public void addField(String label, String type, String typeName, String name, int num, String defaultVal, String jsonName, Boolean isDeprecated, Boolean isPacked, com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype, com.google.protobuf.DescriptorProtos.FieldOptions.JSType jsType, String metadataKey, String metadataValue, Integer oneOfIndex, Boolean isProto3Optional)
    • buildFieldDescriptorProto

      public static com.google.protobuf.DescriptorProtos.FieldDescriptorProto buildFieldDescriptorProto(String label, String type, String typeName, String name, int num, String defaultVal, String jsonName, Boolean isDeprecated, Boolean isPacked, com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype, com.google.protobuf.DescriptorProtos.FieldOptions.JSType jsType, String metadataKey, String metadataValue, Integer oneOfIndex, Boolean isProto3Optional)