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

Expose GetUmbrellaClassName in csharp_names.h #656

Conversation

jtattermusch
Copy link
Contributor

This is going to be useful for gRPC protoc plugin to be able to expose ServiceDescriptor on each generated service class.

Also, the naming of umbrellaClass-related helper functions was pretty poor, so I did some refactoring and renaming.

@jskeet FYI

if (!umbrellaNamespace.empty()) {
fullName = umbrellaNamespace + "." + umbrellaClassname;
result += umbrellaNamespace;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in one line:
result += umbrellaNamespace + ".";

@anandolee
Copy link
Contributor

LGTM

@jtattermusch
Copy link
Contributor Author

Closing this in favor of #664 that be be merged to master.

taoso pushed a commit to taoso/protobuf that referenced this pull request Aug 1, 2018
…shalers (protocolbuffers#656)

PR protocolbuffers#650 added a check to error out when a custom marshaler was called and
deterministic marshaling was also specified.

That change performed the check in a relatively obscure location that did not
catch all code paths. Since determinism can only be enabled on the Buffer type,
we check it up front in Buffer.Marshal.

Also, change the test to avoid code injection into generated sources.
adellahlou pushed a commit to adellahlou/protobuf that referenced this pull request Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants