Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated identifier when generating a service #1526

Open
octonato opened this issue Dec 21, 2021 · 0 comments
Open

Duplicated identifier when generating a service #1526

octonato opened this issue Dec 21, 2021 · 0 comments

Comments

@octonato
Copy link
Member

octonato commented Dec 21, 2021

I run into this when compiling the ExampeSuite tests we added to the Akka Serverless Java SDK.

We have two tests that define an alternative Empty message. The proto definition uses both and then akka-grpc will generate a service with twice the identified EmptySerializer.

public static class Serializers {

  public static ProtobufSerializer<org.example.service.ServiceOuterClass.MyRequest> MyRequestSerializer = 
    new GoogleProtobufSerializer<>(org.example.service.ServiceOuterClass.MyRequest.parser());
    
  public static ProtobufSerializer<org.external.ExternalDomain.Empty> EmptySerializer = 
    new GoogleProtobufSerializer<>(org.external.ExternalDomain.Empty.parser());
    
  public static ProtobufSerializer<com.google.protobuf.Empty> EmptySerializer = 
    new GoogleProtobufSerializer<>(com.google.protobuf.Empty.parser());
    
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant