This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate method overloads when a resource field has multiple resource…
… names configured (#3081) - When a field has child_type reference and the referenced resource has multiple patterns, allow this field to be associated with multiple resources if all these resources combined have exactly all the parent patterns of the resource referenced by child_type. - Generate method overloads if the field with multiple resource names are in a flattening config. If there are multiple fields with multiple resource names, generate all possible combinations. - Always generate an overload with all resource names treated as strings. - In Java, repeated fields with resource name configs are always treated as List<String> to avoid multiple methods having the same signature after type erasure. - The * annotation is not yet supported. See changes to ArchiveBooks, LongRunningArchiveBooks and StreamingArchiveBooks for testing generating overloads for unary, longrunning and streaming methods. See changes to MoveBooks for testing generating all the combinations.
- Loading branch information
Showing
42 changed files
with
5,078 additions
and
670 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
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
Oops, something went wrong.