Uh oh!
There was an error while loading. Please reload this page.
Refactoring to allow multiple transports in GAPIC clients - #2156
Conversation
14d346c to
8b036cbComparegarrettjonesgoogle
commented
Jul 13, 2017
This is ready to review; it is only WIP because gax-java won't be released until this PR is approved. |
garrettjonesgoogle
commented
Jul 17, 2017
gax-java and toolkit are approved, PTAL here |
michaelbausor
commented
Jul 17, 2017
LGTM, others should approve also |
shinfan
left a comment
There was a problem hiding this comment.
Overall looks good to me. Just a few comments & questions
| } | ||
| /** | ||
| * Returns a builder for this class with recommened defaults for API methods, and the given |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| settingsBuilder = | ||
| ImmutableMap.Builder<String, RetrySettings> definitions = ImmutableMap.builder(); | ||
| RetrySettings settings = null; | ||
| settings = |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| // AUTO-GENERATED DOCUMENTATION AND CLASS | ||
| @Generated("by GAPIC v0.0.5") | ||
| @BetaApi | ||
| public abstract class DlpServiceStub implements BackgroundResource { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| /** | ||
| * Initiates an orderly shutdown in which preexisting calls continue but new calls are immediately | ||
| * cancelled. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| @Override | ||
| public void shutdown() { | ||
| backgroundResources.shutdown(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| // AUTO-GENERATED DOCUMENTATION AND CLASS | ||
| @Generated("by GAPIC v0.0.5") | ||
| @BetaApi | ||
| public class GrpcDlpServiceStub extends DlpServiceStub { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| ListRootCategoriesRequest.getDefaultInstance()), | ||
| io.grpc.protobuf.ProtoUtils.marshaller( | ||
| ListRootCategoriesResponse.getDefaultInstance()))); | ||
| private final BackgroundResource backgroundResources; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| /** | ||
| * Constructs an instance of GrpcDlpServiceStub, using the given settings. This is protected so | ||
| * that it easy to make a subclass, but otherwise, the static factory methods should be preferred. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The code LGTM, assuming @shinfan 's concerns are addressed. I'm not sure if this could cause a performance hit because we're wrapping more stuff. Though I'm not sure if we should block on this. |
garrettjonesgoogle
commented
Jul 19, 2017
Addressed Shin's comments, PTAL @shinfan |
garrettjonesgoogle
commented
Jul 19, 2017
@pongad I don't think the extra stack frame matters. I think what does matter is that gax was refactored a bit to make this happen, so allocation characteristics may have changed at that level. Like you say, I don't think possible performance changes should impact this PR; however, I think it might be worth doing a perf test before we do a release of google-cloud-java. |
pongad
commented
Jul 19, 2017
@garrettjonesgoogle I agree. That's what I meant; I just didn't think of this when looking at the gax PR. I'll work on measurement when I get cycles. |
coveralls
commented
Jul 20, 2017
Changes Unknown when pulling d5575d8 on garrettjonesgoogle:master into ** on GoogleCloudPlatform:master**. |
…v1.43.3 (#2156) * deps: update dependency com.google.http-client:google-http-client to v1.43.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
#2156) * chore: Update generation configuration at Thu Aug 29 02:21:05 UTC 2024 * chore: Update generation configuration at Fri Aug 30 02:21:44 UTC 2024 * chore: Update generation configuration at Sat Aug 31 02:20:41 UTC 2024 * chore: Update generation configuration at Wed Sep 4 02:21:45 UTC 2024 * chore: Update generation configuration at Thu Sep 5 02:22:12 UTC 2024 * chore: Update generation configuration at Fri Sep 6 02:22:02 UTC 2024 * chore: Update generation configuration at Sat Sep 7 02:20:17 UTC 2024 * chore: Update generation configuration at Sun Sep 8 02:25:47 UTC 2024 * chore: Update generation configuration at Tue Sep 10 02:23:16 UTC 2024
#2156) * chore: Update generation configuration at Thu Aug 29 02:21:05 UTC 2024 * chore: Update generation configuration at Fri Aug 30 02:21:44 UTC 2024 * chore: Update generation configuration at Sat Aug 31 02:20:41 UTC 2024 * chore: Update generation configuration at Wed Sep 4 02:21:45 UTC 2024 * chore: Update generation configuration at Thu Sep 5 02:22:12 UTC 2024 * chore: Update generation configuration at Fri Sep 6 02:22:02 UTC 2024 * chore: Update generation configuration at Sat Sep 7 02:20:17 UTC 2024 * chore: Update generation configuration at Sun Sep 8 02:25:47 UTC 2024 * chore: Update generation configuration at Tue Sep 10 02:23:16 UTC 2024
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
No description provided.