Commit 13890f8
waterWang
Add getExtensionRegistry() getter to ProtoLiteUtils and ProtoUtils (#3836)
The ProtoLiteUtils.setExtensionRegistry() setter was added in
gRPC 1.0.0, but there was no corresponding getter. This made it
impossible for the reflection service or other components to
discover the extensions that were registered via the global
ExtensionRegistry.
Add getExtensionRegistry() to both ProtoLiteUtils (returns
ExtensionRegistryLite) and ProtoUtils (returns ExtensionRegistry
with a cast) so that the global registry can be read back.
Issue: #38361 parent d54c8c9 commit 13890f8
2 files changed
Lines changed: 18 additions & 0 deletions
File tree
- protobuf-lite/src/main/java/io/grpc/protobuf/lite
- protobuf/src/main/java/io/grpc/protobuf
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| |||
0 commit comments