Skip to content

Ruby: Allow to get a file descriptor by a file name #20287

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

Closed
wants to merge 1 commit into from

Conversation

y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Feb 10, 2025

In Python, users can get a file descriptor by a file name. https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool.FindFileByName

This would be useful for sometimes. For example, GRPC Reflection allows to get a proto by file name.
https://github.com/grpc/grpc-proto/blob/483f11e91a30de9c11d65d872c09bc529e94e2ee/grpc/reflection/v1/reflection.proto#L45-L46

This feature would be useful to implement such a case.

In Python, users can get a file descriptor by a file name.
https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool.FindFileByName

This would be useful for sometimes. For example, GRPC Reflection
allows to get a proto by file name.
https://github.com/grpc/grpc-proto/blob/483f11e91a30de9c11d65d872c09bc529e94e2ee/grpc/reflection/v1/reflection.proto#L45-L46

This feature would be useful to implement such a case.
@y-yagi y-yagi requested review from a team as code owners February 10, 2025 07:41
@y-yagi y-yagi requested review from JasonLunn and ericsalo and removed request for a team February 10, 2025 07:41
@JasonLunn JasonLunn added ruby 🅰️ safe for tests Mark a commit as safe to run presubmits over labels Feb 10, 2025
@y-yagi
Copy link
Contributor Author

y-yagi commented Feb 16, 2025

I'm not sure why, but it seems that safe for tests label has not worked correctly.

@tonyliaoss tonyliaoss added 🅰️ safe for tests Mark a commit as safe to run presubmits over and removed 🅰️ safe for tests Mark a commit as safe to run presubmits over labels Feb 19, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Feb 19, 2025
@tonyliaoss
Copy link
Member

Sorry, I'm giving it another kick. The tag was a bit flakey last week but it seemed to still work on other PRs recently.

copybara-service bot pushed a commit that referenced this pull request Feb 20, 2025
In Python, users can get a file descriptor by a file name. https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool.FindFileByName

This would be useful for sometimes. For example, GRPC Reflection allows to get a proto by file name.
https://github.com/grpc/grpc-proto/blob/483f11e91a30de9c11d65d872c09bc529e94e2ee/grpc/reflection/v1/reflection.proto#L45-L46

This feature would be useful to implement such a case.

Closes #20287

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20287 from y-yagi:lookup_by_filename 760e915
PiperOrigin-RevId: 729187448
copybara-service bot pushed a commit that referenced this pull request Feb 20, 2025
In Python, users can get a file descriptor by a file name. https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool.FindFileByName

This would be useful for sometimes. For example, GRPC Reflection allows to get a proto by file name.
https://github.com/grpc/grpc-proto/blob/483f11e91a30de9c11d65d872c09bc529e94e2ee/grpc/reflection/v1/reflection.proto#L45-L46

This feature would be useful to implement such a case.

Closes #20287

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20287 from y-yagi:lookup_by_filename 760e915
PiperOrigin-RevId: 729187448
copybara-service bot pushed a commit that referenced this pull request Feb 20, 2025
In Python, users can get a file descriptor by a file name. https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool.FindFileByName

This would be useful for sometimes. For example, GRPC Reflection allows to get a proto by file name.
https://github.com/grpc/grpc-proto/blob/483f11e91a30de9c11d65d872c09bc529e94e2ee/grpc/reflection/v1/reflection.proto#L45-L46

This feature would be useful to implement such a case.

Closes #20287

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20287 from y-yagi:lookup_by_filename 760e915
PiperOrigin-RevId: 729187448
copybara-service bot pushed a commit that referenced this pull request Feb 20, 2025
In Python, users can get a file descriptor by a file name. https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool.FindFileByName

This would be useful for sometimes. For example, GRPC Reflection allows to get a proto by file name.
https://github.com/grpc/grpc-proto/blob/483f11e91a30de9c11d65d872c09bc529e94e2ee/grpc/reflection/v1/reflection.proto#L45-L46

This feature would be useful to implement such a case.

Closes #20287

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20287 from y-yagi:lookup_by_filename 760e915
PiperOrigin-RevId: 729187448
copybara-service bot pushed a commit that referenced this pull request Feb 20, 2025
In Python, users can get a file descriptor by a file name. https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool.FindFileByName

This would be useful for sometimes. For example, GRPC Reflection allows to get a proto by file name.
https://github.com/grpc/grpc-proto/blob/483f11e91a30de9c11d65d872c09bc529e94e2ee/grpc/reflection/v1/reflection.proto#L45-L46

This feature would be useful to implement such a case.

Closes #20287

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20287 from y-yagi:lookup_by_filename 760e915
PiperOrigin-RevId: 729187448
protobuf-team-bot added a commit that referenced this pull request Feb 20, 2025
@y-yagi y-yagi deleted the lookup_by_filename branch February 21, 2025 01:27
fgarciacorona pushed a commit to fgarciacorona/protobuf that referenced this pull request Mar 5, 2025
…20287)

In Python, users can get a file descriptor by a file name. https://googleapis.dev/python/protobuf/latest/google/protobuf/descriptor_pool.html#google.protobuf.descriptor_pool.DescriptorPool.FindFileByName

This would be useful for sometimes. For example, GRPC Reflection allows to get a proto by file name.
https://github.com/grpc/grpc-proto/blob/483f11e91a30de9c11d65d872c09bc529e94e2ee/grpc/reflection/v1/reflection.proto#L45-L46

This feature would be useful to implement such a case.

Closes protocolbuffers#20287

PiperOrigin-RevId: 729274388
fgarciacorona pushed a commit to fgarciacorona/protobuf that referenced this pull request Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants