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

Generate client service name and proto service comments #1059

Merged
merged 2 commits into from
Dec 1, 2020

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 30, 2020

Motivation:

It can be useful to know the service path a client is for, particularly
when constructing calls manually.

Additionally, we include the methods comments for RPCs but not the
service comments, they may be helpful in some cases.

Modifications:

  • Generate the 'serviceName' for the client
  • Generate the proto source comments for the client and server

Result:

Motivation:

It can be useful to know the service path a client is for, particularly
when constructing calls manually.

Additionally, we include the methods comments for RPCs but not the
service comments, they may be helpful in some cases.

Modifications:

- Generate the 'serviceName' for the client
- Generate the proto source comments for the client and server

Result:

- Generated code is a touch more useful
- Resolves grpc#962, grpc#1036
@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label Nov 30, 2020
@glbrntt
Copy link
Collaborator Author

glbrntt commented Nov 30, 2020

Changes in 34b78ff

@glbrntt glbrntt requested a review from Lukasa November 30, 2020 10:28
@glbrntt glbrntt merged commit 757319c into grpc:main Dec 1, 2020
@glbrntt glbrntt deleted the gb-client-service-name branch December 1, 2020 17:21
@glbrntt glbrntt mentioned this pull request Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support .proto file comments for Services
2 participants