lib/tapioca/dsl/compilers/protobuf.rb in tapioca-0.12.0 vs lib/tapioca/dsl/compilers/protobuf.rb in tapioca-0.13.0

- old
+ new

@@ -300,9 +300,16 @@ klass.create_method( "clear_#{field.name}", return_type: "void", ) + if desc.has_presence? + klass.create_method( + "has_#{field.name}?", + return_type: "Object", + ) + end + field end sig do params(