Siedlerchr opened a new issue, #328:
URL: https://github.com/apache/pekko-grpc/issues/328

   I am using gradle codegen plugin latest version 1.1.0
   my Protobuf looks like this:
   
   ``` 
   syntax = "proto3";
   
   option java_generate_equals_and_hash = true;
   option java_package = "org.example.service.v1";
   
   message EnvelopeTest {
     oneof type
     {
       RequestTest request = 4;
       ResponseTest response = 6;
     }
     message RequestTest {
     }
     message ResponseTest {
     }
   }
   
   service TestGrpcsService {
     rpc Transceive(EnvelopeTest.RequestTest) returns (stream 
EnvelopeTest.ResponseTest) {}
   }
   ``````
   
   
   However, the generated code does not compile due to wrong types, it's 
missing the EnvelopeTest in between,
   e.g. manually changing <org.example.service.v1.Test.RequestTest> to 
<org.example.service.v1.Test.EnvelopeTest.RequestTest> solves the problem. 
   
   e.g. 
   
.../build/generated/source/proto/main/pekkoGrpc/org/example/service/v1/TestGrpcsServiceClientPowerApi.java:19:
 error: cannot find symbol
         public 
StreamResponseRequestBuilder<org.example.service.v1.Test.RequestTest, 
org.example.service.v1.Test.ResponseTest> transceive()
                                                                        ^
     symbol:   class RequestTest
     location: class Test
   ```


-- 
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: notifications-unsubscr...@pekko.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to