FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refactoring to allow multiple transports in GAPIC clients by garrettjonesgoogle · Pull Request #2156 · googleapis/google-cloud-java · GitHub

Refactoring to allow multiple transports in GAPIC clients - #2156

Merged
garrettjonesgoogle merged 4 commits into
googleapis:masterfrom
garrettjonesgoogle:master
Jul 20, 2017
Merged

Refactoring to allow multiple transports in GAPIC clients#2156
garrettjonesgoogle merged 4 commits into
googleapis:masterfrom
garrettjonesgoogle:master

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 16, 2017
garrettjonesgoogle force-pushed the master branch 2 times, most recently from 14d346c to 8b036cb Compare July 6, 2017 19:49

Copy link
Copy Markdown
Contributor Author

This is ready to review; it is only WIP because gax-java won't be released until this PR is approved.

Copy link
Copy Markdown
Contributor Author

gax-java and toolkit are approved, PTAL here

Copy link
Copy Markdown
Contributor

LGTM, others should approve also

shinfan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

settingsBuilder =
ImmutableMap.Builder<String, RetrySettings> definitions = ImmutableMap.builder();
RetrySettings settings = null;
settings =

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

// 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.


/**
* 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.


@Override
public void shutdown() {
backgroundResources.shutdown();

This comment was marked as spam.

This comment was marked as spam.

// 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.

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.


/**
* 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.

This comment was marked as spam.

pongad commented Jul 19, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

Addressed Shin's comments, PTAL @shinfan

Copy link
Copy Markdown
Contributor Author

@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.

shinfan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

pongad commented Jul 19, 2017

Copy link
Copy Markdown
Contributor

@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.

garrettjonesgoogle changed the title [WIP] Refactoring to allow multiple transports Refactoring to allow multiple transports in GAPIC clients Jul 20, 2017

Copy link
Copy Markdown

Changes Unknown when pulling d5575d8 on garrettjonesgoogle:master into ** on GoogleCloudPlatform:master**.

chingor13 pushed a commit that referenced this pull request Feb 20, 2026
…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>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
#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
meltsufin pushed a commit that referenced this pull request May 1, 2026
#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
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL