private static void addField(DescriptorProto.Builder builder, String name, int fieldId, Type type) {
    FieldDescriptorProto.Builder fdBuilder = FieldDescriptorProto.newBuilder()
      .setName(name)
      .setNumber(fieldId)
      .setType(type);
    builder.addField(fdBuilder.build());
  }
private static void addField(DescriptorProto.Builder builder, String name, int fieldId, Type type) {
    FieldDescriptorProto.Builder fdBuilder = FieldDescriptorProto.newBuilder()
      .setName(name)
      .setNumber(fieldId)
      .setType(type);
    builder.addField(fdBuilder.build());
  }
private static void addField ( DescriptorProto . Builder builder , String name , int fieldId , Type type ) { FieldDescriptorProto . Builder fdBuilder = FieldDescriptorProto . newBuilder ( ) . setName ( name ) . setNumber ( fieldId ) . setType ( type ) ; builder . addField ( fdBuilder . build ( ) ) ; }
Add a field to a protobuf builder
Add a field to a protobuf builder