Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gcf-owl-bot[bot]
Copy link
Contributor

@gcf-owl-bot gcf-owl-bot bot commented Mar 30, 2024

  • Regenerate this pull request now.

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

@dpebot
Copy link
Collaborator

dpebot commented Mar 30, 2024

/gcbrun

@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: bigtable Issues related to the googleapis/java-bigtable API. labels Mar 30, 2024
@gcf-owl-bot gcf-owl-bot bot marked this pull request as ready for review March 30, 2024 02:57
@gcf-owl-bot gcf-owl-bot bot requested review from a team as code owners March 30, 2024 02:57
@dpebot
Copy link
Collaborator

dpebot commented Mar 30, 2024

/gcbrun

@gcf-owl-bot gcf-owl-bot bot changed the title feat: publish Automated Backups protos build: Update protobuf to 25.3 in WORKSPACE Apr 15, 2024
@dpebot
Copy link
Collaborator

dpebot commented Apr 15, 2024

/gcbrun

1 similar comment
@dpebot
Copy link
Collaborator

dpebot commented Apr 15, 2024

/gcbrun

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: xl Pull request size is extra large. labels Apr 15, 2024
@gcf-owl-bot gcf-owl-bot bot changed the title build: Update protobuf to 25.3 in WORKSPACE fix(deps): Update the Java code generator (gapic-generator-java) to 2.39.0 Apr 19, 2024
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: m Pull request size is medium. labels Apr 19, 2024
@dpebot
Copy link
Collaborator

dpebot commented Apr 19, 2024

/gcbrun

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: xl Pull request size is extra large. labels Apr 19, 2024
@dpebot
Copy link
Collaborator

dpebot commented Apr 19, 2024

/gcbrun

1 similar comment
@dpebot
Copy link
Collaborator

dpebot commented Apr 22, 2024

/gcbrun

Copy link
Contributor Author

gcf-owl-bot bot commented Apr 22, 2024

Owl bot is regenerating pull request 2191...
Build name: ODFiYzcxYzgtZWVlOC00NDBmLTg4MzUtOTAwMjAxOTJjMzU0

@dpebot
Copy link
Collaborator

dpebot commented Apr 22, 2024

/gcbrun

@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: m Pull request size is medium. labels Apr 22, 2024
@dpebot
Copy link
Collaborator

dpebot commented Apr 22, 2024

/gcbrun

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: xl Pull request size is extra large. labels Apr 22, 2024
@dpebot
Copy link
Collaborator

dpebot commented Apr 22, 2024

/gcbrun

@lqiu96 lqiu96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 22, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 22, 2024
@kolea2 kolea2 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 24, 2024
Copy link
Contributor Author

gcf-owl-bot bot commented Apr 30, 2024

Owl bot is regenerating pull request 2191...
Build name: MTUwNGExNjYtYjBlZC00OTljLTlkOTMtZDRjMDY3MGEzNzA3

….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
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: m Pull request size is medium. labels Apr 30, 2024
@dpebot
Copy link
Collaborator

dpebot commented Apr 30, 2024

/gcbrun

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: xl Pull request size is extra large. labels Apr 30, 2024
@dpebot
Copy link
Collaborator

dpebot commented Apr 30, 2024

/gcbrun

@dpebot
Copy link
Collaborator

dpebot commented Apr 30, 2024

/gcbrun

@lqiu96 lqiu96 added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 30, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 30, 2024
Comment on lines +376 to +379
@Override
public String getServiceName() {
return "bigtable";
}
Copy link
Contributor

@lqiu96 lqiu96 Apr 30, 2024

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:

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());
Copy link
Contributor

@lqiu96 lqiu96 Apr 30, 2024

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:

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:

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);
ends up calling the 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
@gcf-owl-bot gcf-owl-bot bot changed the title fix(deps): Update the Java code generator (gapic-generator-java) to 2.39.0 chore: update copyright year for auto-generated protos May 7, 2024
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: m Pull request size is medium. labels May 8, 2024
@dpebot
Copy link
Collaborator

dpebot commented May 8, 2024

/gcbrun

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: xl Pull request size is extra large. labels May 8, 2024
@dpebot
Copy link
Collaborator

dpebot commented May 8, 2024

/gcbrun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/java-bigtable API. do not merge Indicates a pull request not ready for merge, due to either quality or timing. owl-bot-copy size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants