-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add exemplar variants of the Java Any.is() and Any.unpack() methods.
The Java Any.is() and Any.unpack() methods now accept an exemplar message in place of a Java class. This avoids the need to use Java introspection in the implementation of these methods. The exemplar variant of Any.is() is named Any.isSameTypeAs(). The exemplar variant of Any.unpack() is named Any.unpackSameTypeAs(). PiperOrigin-RevId: 486748727
- Loading branch information
1 parent
ab3dbe5
commit 60b7149
Showing
4 changed files
with
136 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters