BewareMyPower commented on PR #15442:
URL: https://github.com/apache/pulsar/pull/15442#issuecomment-1119230110

   > I believe that in many cases, this would not be working:
   > 
   > ```c++
   > PULSAR_PUBLIC SchemaInfo createProtobufNativeSchema(const 
google::protobuf::Descriptor* descriptor);
   > ```
   > 
   > because the `Descriptor` symbol is hidden and not accessible from the 
application code.
   
   The protobuf dependency must be imported to use protobuf native schema, so 
the symbol could be imported from protobuf.
   
   ```c++
   const auto schemaInfo = 
createProtobufNativeSchema(::proto::TestMessage::GetDescriptor());
   ```
   
   What I concerned is if we imported the protobuf-lite dependency, is there 
any conflict with the user provided protobuf dependency?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to