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
chore: update copyright year for auto-generated protos #2191
base: main
Are you sure you want to change the base?
Conversation
/gcbrun |
/gcbrun |
/gcbrun |
1 similar comment
/gcbrun |
/gcbrun |
/gcbrun |
1 similar comment
/gcbrun |
Owl bot is regenerating pull request 2191... |
4341a77
to
a9dbe03
Compare
/gcbrun |
/gcbrun |
/gcbrun |
Owl bot is regenerating pull request 2191... |
….39.0 PiperOrigin-RevId: 626430774 Source-Link: googleapis/googleapis@835b84e Source-Link: googleapis/googleapis-gen@43f369d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDNmMzY5ZDkwZjE5ZDA5YWMxODcyMDE1MWFiMTA2MDQyYmViODExYiJ9 build: Update protobuf to 25.3 in WORKSPACE PiperOrigin-RevId: 624989428 Source-Link: googleapis/googleapis@caf600a Source-Link: googleapis/googleapis-gen@cc580b8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2M1ODBiOGVhNGMwN2Y3NzQwOTNkMGY4YzRhZmVkZDJlYWU2ZTg1NiJ9 feat: publish Automated Backups protos PiperOrigin-RevId: 620381983 Source-Link: googleapis/googleapis@a70aa2c Source-Link: googleapis/googleapis-gen@e3fb57f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTNmYjU3ZjlkZDRhMTBiNmMyMDM1OWVjOTJhNzJlODc2MzE5OTFiOCJ9
7a0ba65
to
469a092
Compare
/gcbrun |
/gcbrun |
/gcbrun |
@Override | ||
public String getServiceName() { | ||
return "bigtable"; | ||
} |
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 noticed that EnhancedBigtableStubSettings inherits directly from StubSettings and not BigtableStubSettings:
Line 95 in 26d5437
public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableStubSettings> { |
EnhancedBigtableStubSettings will not be able to determine the serviceName because that is generated inside BigtableStubSettings. I have duplicated this here so the EnhancedStubSettings can determine the serviceName.
@@ -613,7 +618,7 @@ UnaryCallSettings<PingAndWarmRequest, Void> pingAndWarmSettings() { | |||
|
|||
/** Returns a builder containing all the values of this settings class. */ | |||
public Builder toBuilder() { | |||
return new Builder(this); | |||
return new Builder(this).setEndpoint(getEndpoint()); |
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.
patchCredentials
takes in the StubSettings.Builder and not the actual StubSettings class:
Lines 234 to 240 in 26d5437
EnhancedBigtableStubSettings.Builder builder = settings.toBuilder(); | |
// TODO: this implementation is on the cusp of unwieldy, if we end up adding more features | |
// consider splitting it up by feature. | |
// workaround JWT audience issues | |
patchCredentials(builder); |
I'm guessing there is some old historical reason for this (perhaps so that IOException isn't re-thrown), but because of this, it doesn't have access to the resolved endpoint which is determined once the StubSettings class has been created.
Implementation here:
Lines 400 to 404 in 26d5437
private static void patchCredentials(EnhancedBigtableStubSettings.Builder settings) | |
throws IOException { | |
int i = settings.getEndpoint().lastIndexOf(":"); | |
String host = settings.getEndpoint().substring(0, i); | |
String audience = settings.getJwtAudienceMapping().get(host); |
getEndpoint()
from the Builder which returns the clientSettingsEndpoint and not the fully resolved endpoint.
This call is will set the resolved endpoint as the clientSettingsEndpoint.
PiperOrigin-RevId: 631538781 Source-Link: googleapis/googleapis@3597f7d Source-Link: googleapis/googleapis-gen@8021fdf Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODAyMWZkZjhkNjZmNjAwNTUxOWMwNDRkNTgzNDEyNGI2NzdkYzkxOSJ9
/gcbrun |
/gcbrun |
PiperOrigin-RevId: 631538781
Source-Link: googleapis/googleapis@3597f7d
Source-Link: https://github.com/googleapis/googleapis-gen/commit/8021fdf8d66f6005519c044d5834124b677dc919
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODAyMWZkZjhkNjZmNjAwNTUxOWMwNDRkNTgzNDEyNGI2NzdkYzkxOSJ9
BEGIN_NESTED_COMMIT
fix(deps): Update the Java code generator (gapic-generator-java) to 2.39.0
PiperOrigin-RevId: 626430774
Source-Link: googleapis/googleapis@835b84e
Source-Link: https://github.com/googleapis/googleapis-gen/commit/43f369d90f19d09ac18720151ab106042beb811b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDNmMzY5ZDkwZjE5ZDA5YWMxODcyMDE1MWFiMTA2MDQyYmViODExYiJ9
build: Update protobuf to 25.3 in WORKSPACE
PiperOrigin-RevId: 624989428
Source-Link: googleapis/googleapis@caf600a
Source-Link: https://github.com/googleapis/googleapis-gen/commit/cc580b8ea4c07f774093d0f8c4afedd2eae6e856
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2M1ODBiOGVhNGMwN2Y3NzQwOTNkMGY4YzRhZmVkZDJlYWU2ZTg1NiJ9
feat: publish Automated Backups protos
PiperOrigin-RevId: 620381983
Source-Link: googleapis/googleapis@a70aa2c
Source-Link: https://github.com/googleapis/googleapis-gen/commit/e3fb57f9dd4a10b6c20359ec92a72e87631991b8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTNmYjU3ZjlkZDRhMTBiNmMyMDM1OWVjOTJhNzJlODc2MzE5OTFiOCJ9
END_NESTED_COMMIT