Skip to content

Commit

Permalink
deps: update gapic-showcase to v0.33.0 (#2653)
Browse files Browse the repository at this point in the history
update gapic-showcase so that we can pickup changes in
googleapis/gapic-showcase#1484

Steps: 
1) Updated the gapic-showcase version in `gapic-showcase/pom.xml` to
0.33.0
2) Ran `mvn compile -P update`
  • Loading branch information
zhumin8 authored Apr 22, 2024
1 parent 6d673f3 commit 0a71cbf
Show file tree
Hide file tree
Showing 12 changed files with 733 additions and 122 deletions.
11 changes: 0 additions & 11 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,6 @@ http_archive(
urls = ["https://github.com/googleapis/disco-to-proto3-converter/archive/%s.zip" % _disco_to_proto3_converter_commit],
)

# Showcase
_showcase_version = "0.28.2"

http_archive(
name = "com_google_gapic_showcase",
strip_prefix = "gapic-showcase-%s" % _showcase_version,
urls = [
"https://github.com/googleapis/gapic-showcase/archive/refs/tags/v%s.zip" % _showcase_version,
],
)

http_archive(
name = "rules_pkg",
sha256 = "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2",
Expand Down
2 changes: 1 addition & 1 deletion showcase/gapic-showcase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</parent>

<properties>
<gapic-showcase.version>0.30.0</gapic-showcase.version>
<gapic-showcase.version>0.33.0</gapic-showcase.version>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
* .setHeader("header-1221270899")
* .setOtherHeader("otherHeader-2026585667")
* .setRequestId("requestId693933066")
* .setOtherRequestId("otherRequestId1248995034")
* .build();
* EchoResponse response = echoClient.echo(request);
* }
Expand Down Expand Up @@ -440,6 +441,7 @@ public final OperationsClient getHttpJsonOperationsClient() {
* .setHeader("header-1221270899")
* .setOtherHeader("otherHeader-2026585667")
* .setRequestId("requestId693933066")
* .setOtherRequestId("otherRequestId1248995034")
* .build();
* EchoResponse response = echoClient.echo(request);
* }
Expand Down Expand Up @@ -471,6 +473,7 @@ public final EchoResponse echo(EchoRequest request) {
* .setHeader("header-1221270899")
* .setOtherHeader("otherHeader-2026585667")
* .setRequestId("requestId693933066")
* .setOtherRequestId("otherRequestId1248995034")
* .build();
* ApiFuture<EchoResponse> future = echoClient.echoCallable().futureCall(request);
* // Do something.
Expand Down Expand Up @@ -620,6 +623,7 @@ public final ServerStreamingCallable<ExpandRequest, EchoResponse> expandCallable
* .setHeader("header-1221270899")
* .setOtherHeader("otherHeader-2026585667")
* .setRequestId("requestId693933066")
* .setOtherRequestId("otherRequestId1248995034")
* .build();
* requestObserver.onNext(request);
* }
Expand Down Expand Up @@ -650,6 +654,7 @@ public final ClientStreamingCallable<EchoRequest, EchoResponse> collectCallable(
* .setHeader("header-1221270899")
* .setOtherHeader("otherHeader-2026585667")
* .setRequestId("requestId693933066")
* .setOtherRequestId("otherRequestId1248995034")
* .build();
* bidiStream.send(request);
* for (EchoResponse response : bidiStream) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
* .setHeader("header-1221270899")
* .setOtherHeader("otherHeader-2026585667")
* .setRequestId("requestId693933066")
* .setOtherRequestId("otherRequestId1248995034")
* .build();
* EchoResponse response = echoClient.echo(request);
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ protected GrpcEchoStub(
if (Strings.isNullOrEmpty(request.getRequestId())) {
requestBuilder.setRequestId(UUID.randomUUID().toString());
}
if (Strings.isNullOrEmpty(request.getOtherRequestId())) {
requestBuilder.setOtherRequestId(UUID.randomUUID().toString());
}
return requestBuilder.build();
})
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@ protected HttpJsonEchoStub(
if (Strings.isNullOrEmpty(request.getRequestId())) {
requestBuilder.setRequestId(UUID.randomUUID().toString());
}
if (Strings.isNullOrEmpty(request.getOtherRequestId())) {
requestBuilder.setOtherRequestId(UUID.randomUUID().toString());
}
return requestBuilder.build();
})
.build();
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 0a71cbf

Please sign in to comment.