-
Notifications
You must be signed in to change notification settings - Fork 65
[samplecode][Prepare][1/2]Add ResourceName map into ClassComposer prepare for the samplecode implementation #569
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
Conversation
src/main/java/com/google/api/generator/gapic/composer/ClassComposer.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/api/generator/gapic/composer/ServiceClientClassComposer.java
Outdated
Show resolved
Hide resolved
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.
Is this PR still needed, since we're no longer adding the map to the interface?
In my opinion, yes. This PR is mainly for add |
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.
Could we please change the PR's title? Also, can we include this changes with the PR that needs it, since the motivation for this change will not be clear to future readers?
src/main/java/com/google/api/generator/gapic/composer/ServiceClientClassComposer.java
Outdated
Show resolved
Hide resolved
I changed the PR's title. But feel free to change if you have better naming. Thanks a lot. |
f7adfa8
to
52a2de7
Compare
52a2de7
to
a14fb04
Compare
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.
Also, can we include this changes with the PR that needs it, since the motivation for this change will not be clear to future readers?
Could we merge this into the PR that actually uses the resource name map? Would prefer this since the refactoring is relatively straightforward, and the usage will help provide the appropriate motivation for future readers.
All right. Close this PR, #573 will cover this. Thanks. |
🤖 I have created a release *beep* *boop* --- ## [2.7.0](googleapis/java-shared-dependencies@v2.6.0...v2.7.0) (2022-01-28) ### Dependencies * update dependency com.fasterxml.jackson:jackson-bom to v2.13.1 ([#555](googleapis/java-shared-dependencies#555)) ([4ebc46f](googleapis/java-shared-dependencies@4ebc46f)) * update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#580](googleapis/java-shared-dependencies#580)) ([4e4bd3f](googleapis/java-shared-dependencies@4e4bd3f)) * update dependency com.google.api:api-common to v2.1.3 ([#587](googleapis/java-shared-dependencies#587)) ([cb5fee9](googleapis/java-shared-dependencies@cb5fee9)) * update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#578](googleapis/java-shared-dependencies#578)) ([e480d45](googleapis/java-shared-dependencies@e480d45)) * update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#582](googleapis/java-shared-dependencies#582)) ([716ff2b](googleapis/java-shared-dependencies@716ff2b)) * update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#579](googleapis/java-shared-dependencies#579)) ([f63d0dc](googleapis/java-shared-dependencies@f63d0dc)) * update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.0 ([#576](googleapis/java-shared-dependencies#576)) ([5eb6134](googleapis/java-shared-dependencies@5eb6134)) * update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#571](googleapis/java-shared-dependencies#571)) ([5448af9](googleapis/java-shared-dependencies@5448af9)) * update dependency io.grpc:grpc-bom to v1.44.0 ([#586](googleapis/java-shared-dependencies#586)) ([f406a7d](googleapis/java-shared-dependencies@f406a7d)) * update dependency org.checkerframework:checker-qual to v3.21.1 ([#554](googleapis/java-shared-dependencies#554)) ([5418bc5](googleapis/java-shared-dependencies@5418bc5)) * update gax.version to v2.11.0 ([#581](googleapis/java-shared-dependencies#581)) ([5fe5b79](googleapis/java-shared-dependencies@5fe5b79)) * update gax.version to v2.9.0 ([#573](googleapis/java-shared-dependencies#573)) ([864f6b3](googleapis/java-shared-dependencies@864f6b3)) * update google.common-protos.version to v2.7.2 ([#588](googleapis/java-shared-dependencies#588)) ([b7204ef](googleapis/java-shared-dependencies@b7204ef)) * update google.core.version to v2.4.0 ([#589](googleapis/java-shared-dependencies#589)) ([f4300ef](googleapis/java-shared-dependencies@f4300ef)) * update iam.version to v1.2.1 ([#569](googleapis/java-shared-dependencies#569)) ([ff03c65](googleapis/java-shared-dependencies@ff03c65)) * update opencensus.version to v0.30.0 ([#552](googleapis/java-shared-dependencies#552)) ([37407e2](googleapis/java-shared-dependencies@37407e2)) * update opencensus.version to v0.31.0 ([#585](googleapis/java-shared-dependencies#585)) ([690cf8d](googleapis/java-shared-dependencies@690cf8d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.grpc:grpc-bom](https://togithub.com/grpc/grpc-java) | `1.40.1` -> `1.41.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>grpc/grpc-java</summary> ### [`v1.41.0`](https://togithub.com/grpc/grpc-java/releases/v1.41.0) [Compare Source](https://togithub.com/grpc/grpc-java/compare/v1.40.1...v1.41.0) ##### API Changes - stub: Mark Stub-based MetadataUtils methods deprecated ([#​8395](https://togithub.com/grpc/grpc-java/issues/8395)). The interceptor-based versions have been stable for a long time and are preferred ##### Bug Fixes - census: Fixed a data race in CensusStatsModule which in rare cases may cause NullPointerException ([#​8459](https://togithub.com/grpc/grpc-java/issues/8459)) - xds: Fixed a bug in SharedCallCounterMap which in rare cases may cause NullPointerException ([#​8397](https://togithub.com/grpc/grpc-java/issues/8397)) - core: `ServerCall.isCancelled()` and `ServerCallStreamObserver.isCancelled()` implementations no longer incorrectly return true at the end of every RPC ([#​8408](https://togithub.com/grpc/grpc-java/issues/8408)) - core: ManagedChannel no longer immediately exits idle mode after an `enterIdle()` call when it has any calls in progress - netty-shaded: Modify the shading operation to transform native-image resources so they correctly reference shaded class names ([#​7540](https://togithub.com/grpc/grpc-java/issues/7540)) - netty-shaded: Rename native-image resources to avoid collisions with Netty’s copy, which were modified starting in 1.39.0 - rls: avoid NullPointerException in RLS in certain circumstances when calling `channel.getState(true)` or if a parent load balancer requests a connection ([#​8379](https://togithub.com/grpc/grpc-java/issues/8379)) ##### New Features - xds: xDS-based TLS security (gRFC 29) is now stable - util: Added new classes AdvancedTlsX509TrustManager and AdvancedTlsX509KeyManager, which support reloading keys and trust roots as they change. They also can make custom verification easier by handling the hostname verification. ([#​8175](https://togithub.com/grpc/grpc-java/issues/8175)) - xds: Added `XdsNameResolverProvider.createForTest()` to allow using a different bootstrap configuration in tests ([#​8358](https://togithub.com/grpc/grpc-java/issues/8358)) ##### Behavior Changes - rls: migrated the deprecated server and path fields in RouteLookupRequest to using the new extra_keys field in RLS config ##### Improvements - api: Document that NameResolvers shouldn’t block within their methods ([#​8398](https://togithub.com/grpc/grpc-java/issues/8398)). The offload executor should be used for blocking operations - stub: Document StreamObserver is an async API, and how it internally may buffer ([#​8449](https://togithub.com/grpc/grpc-java/issues/8449)) ##### Dependencies - Upgraded error_prone_annotations to 2.9.0 - cronet: Cronet upgraded to version 92.4515.131 </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
🤖 I have created a release \*beep\* \*boop\* --- ### [2.1.7](https://www.github.com/googleapis/java-core/compare/v2.1.6...v2.1.7) (2021-09-23) ### Dependencies * update dependency io.grpc:grpc-bom to v1.41.0 ([#569](https://www.github.com/googleapis/java-core/issues/569)) ([b58c0b1](https://www.github.com/googleapis/java-core/commit/b58c0b1ba2d5a5ef273564df90b71fce49982a1b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
In order to compose default value in the sample code. We require ResourceName maps pass down to the SampleCodeComposer. See the reference at #573 use case