-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: Add support for additional_bindings #993
Conversation
This PR depends on the corresponding one in gax: googleapis/gax-java#1680
Kudos, SonarCloud Quality Gate passed! |
@@ -63,6 +65,8 @@ public int compareTo(HttpBinding o) { | |||
|
|||
public abstract String pattern(); | |||
|
|||
public abstract List<String> additionalPatterns(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to use List
here? Can we use Set
? Does order matter? Do duplicates matter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think technically duplicates are allowed even though they will be useless. Bindings come in list from proto file descriptor, so keeping them as list here.
@@ -22,7 +22,7 @@ public class PatternParser { | |||
|
|||
// This method tries to parse all named segments from pattern and sort in natual order | |||
// e.g. /v1beta1/{table_name=tests/*}/{routing_id=instances/*}/** -> (routing_id, table_name) | |||
public static Set<String> getPattenBindings(String pattern) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Thanks for correcting my mistake!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I actually thought it was my typo, only now realized that it was the class you created =).
This PR depends on the corresponding one in gax: googleapis/gax-java#1680
🤖 I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
This PR depends on the corresponding one in gax: googleapis/gax-java#1680