GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Bigtable: clean up the public surface by igorbernstein2 · Pull Request #5034 · googleapis/google-cloud-java Conversation
|
|
Can/should this be done on the proto level instead? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don’t know of a way. Do you have a recommendation? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Mockito can't mock classes which have package-private parents
|
Updated PR to only mark things as |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ideally any search/replacing we do with synthtool is temporary and can be fixed upstream in the Gapic generator. Perhaps we need another annotation/config for marking a class as internal api in the Gapic generator. Relying on finding the internal api comment is bound to fail at some point.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * </code> | ||
| * </pre> | ||
| */ | ||
| @Generated("by gapic-generator") |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should we preserve this annotation so we mark the class as generated.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I was debating this myself. As far as I know nothing uses that annotation and I decided to keep it simple until its needed. If you feel strongly, I can try to retain it
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## master #5034 +/- ## ============================================ + Coverage 50.33% 50.33% +<.01% + Complexity 23676 23662 -14 ============================================ Files 2238 2236 -2 Lines 226057 225941 -116 Branches 24961 24954 -7 ============================================ - Hits 113775 113728 -47 + Misses 103678 103613 -65 + Partials 8604 8600 -4
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
As discussed offline:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add a link to the feature request in the gapic generator. Otherwise LGTM.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| s.copy(admin_library / 'grpc-google-cloud-bigtable-admin-v2/src', '../../google-api-grpc/grpc-google-cloud-bigtable-admin-v2/src') | ||
| s.copy(admin_library / 'proto-google-cloud-bigtable-admin-v2/src', '../../google-api-grpc/proto-google-cloud-bigtable-admin-v2/src') | ||
| # Replace javadoc and annotations before every public class with InternalApi | ||
| # javadoc and annotation |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you add the link to the feature request issue for the gapic generator?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's at the top of the file
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* Bigtable: clean up the public surface * Exclude autogenerated files that aren't used * Internal implementation details are now package private * Internal implementation details that are needed by other pacakges are now @internalapi (ie. pagination wrappers in Client) * package-info.java not document the public surface instead of the autogen one * EnhancedBigtableStubSetting are now public api * synth.py is responsible for the transformations * exclude gradle build files * fix whitespace * Fix tests by making things InternalApi instead of package-private. Mockito can't mock classes which have package-private parents * add todo to simplify synth.py * Add tests to make sure that the gapic api is @InternalOnly * Keep @autogenerated annotations
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.