Class ProtobufMessage


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

      • ProtobufMessage

        public ProtobufMessage()
    • Method Detail

      • 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,
                             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,
                                                                                                          Integer oneOfIndex,
                                                                                                          Boolean isProto3Optional)