Skip to content

Commit 15b2577

Browse files
deps: update gapic-showcase to 36.2 (#3771)
1 parent 7ec93c3 commit 15b2577

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+4936
-78
lines changed

java-showcase/gapic-showcase/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</parent>
1818

1919
<properties>
20-
<gapic-showcase.version>0.35.1</gapic-showcase.version>
20+
<gapic-showcase.version>0.36.2</gapic-showcase.version>
2121
<slf4j1-logback.version>1.2.13</slf4j1-logback.version>
2222
</properties>
2323

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
* </tr>
201201
* <tr>
202202
* <td><p> GetEnum</td>
203-
* <td><p> This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum vaues they receive, use the response from this RPC as the request to VerifyEnum()
203+
* <td><p> This method requests an enum value from the server. Depending on the contents of EnumRequest, the enum value returned will be a known enum declared in the .proto file, or a made-up enum value the is unknown to the client. To verify that clients can round-trip unknown enum values they receive, use the response from this RPC as the request to VerifyEnum()
204204
* <p> The values of enums sent by the server when a known or unknown value is requested will be the same within a single Showcase server run (this is needed for VerifyEnum() to work) but are not guaranteed to be the same across separate Showcase server runs.</td>
205205
* <td>
206206
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
@@ -1011,7 +1011,7 @@ public final UnaryCallable<RepeatRequest, RepeatResponse> repeatDataBodyPatchCal
10111011
/**
10121012
* This method requests an enum value from the server. Depending on the contents of EnumRequest,
10131013
* the enum value returned will be a known enum declared in the .proto file, or a made-up enum
1014-
* value the is unknown to the client. To verify that clients can round-trip unknown enum vaues
1014+
* value the is unknown to the client. To verify that clients can round-trip unknown enum values
10151015
* they receive, use the response from this RPC as the request to VerifyEnum()
10161016
*
10171017
* <p>The values of enums sent by the server when a known or unknown value is requested will be
@@ -1043,7 +1043,7 @@ public final EnumResponse getEnum(EnumRequest request) {
10431043
/**
10441044
* This method requests an enum value from the server. Depending on the contents of EnumRequest,
10451045
* the enum value returned will be a known enum declared in the .proto file, or a made-up enum
1046-
* value the is unknown to the client. To verify that clients can round-trip unknown enum vaues
1046+
* value the is unknown to the client. To verify that clients can round-trip unknown enum values
10471047
* they receive, use the response from this RPC as the request to VerifyEnum()
10481048
*
10491049
* <p>The values of enums sent by the server when a known or unknown value is requested will be

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java

+75
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@
120120
* </td>
121121
* </tr>
122122
* <tr>
123+
* <td><p> FailEchoWithDetails</td>
124+
* <td><p> This method always fails with a gRPC "Aborted" error status that contains multiple error details. These include one instance of each of the standard ones in error_details.proto (https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto) plus a custom, Showcase-defined PoetryError. The intent of this RPC is to verify that GAPICs can process these various error details and surface them to the user in an idiomatic form.</td>
125+
* <td>
126+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
127+
* <ul>
128+
* <li><p> failEchoWithDetails(FailEchoWithDetailsRequest request)
129+
* </ul>
130+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
131+
* <ul>
132+
* <li><p> failEchoWithDetailsCallable()
133+
* </ul>
134+
* </td>
135+
* </tr>
136+
* <tr>
123137
* <td><p> Expand</td>
124138
* <td><p> This method splits the given content into words and will pass each word back through the stream. This method showcases server-side streaming RPCs.</td>
125139
* <td>
@@ -552,6 +566,67 @@ public final EchoErrorDetailsResponse echoErrorDetails(EchoErrorDetailsRequest r
552566
return stub.echoErrorDetailsCallable();
553567
}
554568

569+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
570+
/**
571+
* This method always fails with a gRPC "Aborted" error status that contains multiple error
572+
* details. These include one instance of each of the standard ones in error_details.proto
573+
* (https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto) plus a
574+
* custom, Showcase-defined PoetryError. The intent of this RPC is to verify that GAPICs can
575+
* process these various error details and surface them to the user in an idiomatic form.
576+
*
577+
* <p>Sample code:
578+
*
579+
* <pre>{@code
580+
* // This snippet has been automatically generated and should be regarded as a code template only.
581+
* // It will require modifications to work:
582+
* // - It may require correct/in-range values for request initialization.
583+
* // - It may require specifying regional endpoints when creating the service client as shown in
584+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
585+
* try (EchoClient echoClient = EchoClient.create()) {
586+
* FailEchoWithDetailsRequest request =
587+
* FailEchoWithDetailsRequest.newBuilder().setMessage("message954925063").build();
588+
* FailEchoWithDetailsResponse response = echoClient.failEchoWithDetails(request);
589+
* }
590+
* }</pre>
591+
*
592+
* @param request The request object containing all of the parameters for the API call.
593+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
594+
*/
595+
public final FailEchoWithDetailsResponse failEchoWithDetails(FailEchoWithDetailsRequest request) {
596+
return failEchoWithDetailsCallable().call(request);
597+
}
598+
599+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
600+
/**
601+
* This method always fails with a gRPC "Aborted" error status that contains multiple error
602+
* details. These include one instance of each of the standard ones in error_details.proto
603+
* (https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto) plus a
604+
* custom, Showcase-defined PoetryError. The intent of this RPC is to verify that GAPICs can
605+
* process these various error details and surface them to the user in an idiomatic form.
606+
*
607+
* <p>Sample code:
608+
*
609+
* <pre>{@code
610+
* // This snippet has been automatically generated and should be regarded as a code template only.
611+
* // It will require modifications to work:
612+
* // - It may require correct/in-range values for request initialization.
613+
* // - It may require specifying regional endpoints when creating the service client as shown in
614+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
615+
* try (EchoClient echoClient = EchoClient.create()) {
616+
* FailEchoWithDetailsRequest request =
617+
* FailEchoWithDetailsRequest.newBuilder().setMessage("message954925063").build();
618+
* ApiFuture<FailEchoWithDetailsResponse> future =
619+
* echoClient.failEchoWithDetailsCallable().futureCall(request);
620+
* // Do something.
621+
* FailEchoWithDetailsResponse response = future.get();
622+
* }
623+
* }</pre>
624+
*/
625+
public final UnaryCallable<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
626+
failEchoWithDetailsCallable() {
627+
return stub.failEchoWithDetailsCallable();
628+
}
629+
555630
// AUTO-GENERATED DOCUMENTATION AND METHOD.
556631
/**
557632
* This method splits the given content into words and will pass each word back through the

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java

+12
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ public UnaryCallSettings<EchoRequest, EchoResponse> echoSettings() {
139139
return ((EchoStubSettings) getStubSettings()).echoErrorDetailsSettings();
140140
}
141141

142+
/** Returns the object with the settings used for calls to failEchoWithDetails. */
143+
public UnaryCallSettings<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
144+
failEchoWithDetailsSettings() {
145+
return ((EchoStubSettings) getStubSettings()).failEchoWithDetailsSettings();
146+
}
147+
142148
/** Returns the object with the settings used for calls to expand. */
143149
public ServerStreamingCallSettings<ExpandRequest, EchoResponse> expandSettings() {
144150
return ((EchoStubSettings) getStubSettings()).expandSettings();
@@ -337,6 +343,12 @@ public UnaryCallSettings.Builder<EchoRequest, EchoResponse> echoSettings() {
337343
return getStubSettingsBuilder().echoErrorDetailsSettings();
338344
}
339345

346+
/** Returns the builder for the settings used for calls to failEchoWithDetails. */
347+
public UnaryCallSettings.Builder<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
348+
failEchoWithDetailsSettings() {
349+
return getStubSettingsBuilder().failEchoWithDetailsSettings();
350+
}
351+
340352
/** Returns the builder for the settings used for calls to expand. */
341353
public ServerStreamingCallSettings.Builder<ExpandRequest, EchoResponse> expandSettings() {
342354
return getStubSettingsBuilder().expandSettings();

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ public final UnaryCallable<DeleteBlurbRequest, Empty> deleteBlurbCallable() {
17791779
* }
17801780
* }</pre>
17811781
*
1782-
* @param parent The resource name of the requested room or profile whos blurbs to list.
1782+
* @param parent The resource name of the requested room or profile who blurbs to list.
17831783
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
17841784
*/
17851785
public final ListBlurbsPagedResponse listBlurbs(ProfileName parent) {
@@ -1808,7 +1808,7 @@ public final ListBlurbsPagedResponse listBlurbs(ProfileName parent) {
18081808
* }
18091809
* }</pre>
18101810
*
1811-
* @param parent The resource name of the requested room or profile whos blurbs to list.
1811+
* @param parent The resource name of the requested room or profile who blurbs to list.
18121812
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
18131813
*/
18141814
public final ListBlurbsPagedResponse listBlurbs(RoomName parent) {
@@ -1837,7 +1837,7 @@ public final ListBlurbsPagedResponse listBlurbs(RoomName parent) {
18371837
* }
18381838
* }</pre>
18391839
*
1840-
* @param parent The resource name of the requested room or profile whos blurbs to list.
1840+
* @param parent The resource name of the requested room or profile who blurbs to list.
18411841
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
18421842
*/
18431843
public final ListBlurbsPagedResponse listBlurbs(String parent) {

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
* </tr>
168168
* <tr>
169169
* <td><p> AttemptStreamingSequence</td>
170-
* <td><p> Attempts a streaming sequence.</td>
170+
* <td><p> Attempts a streaming sequence. May not function as expected in HTTP mode due to when http statuses are sent See https://github.com/googleapis/gapic-showcase/issues/1377 for more details</td>
171171
* <td>
172172
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
173173
* <ul>
@@ -856,7 +856,8 @@ public final UnaryCallable<AttemptSequenceRequest, Empty> attemptSequenceCallabl
856856

857857
// AUTO-GENERATED DOCUMENTATION AND METHOD.
858858
/**
859-
* Attempts a streaming sequence.
859+
* Attempts a streaming sequence. May not function as expected in HTTP mode due to when http
860+
* statuses are sent See https://github.com/googleapis/gapic-showcase/issues/1377 for more details
860861
*
861862
* <p>Sample code:
862863
*

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/gapic_metadata.json

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
"Expand": {
8383
"methods": ["expandCallable"]
8484
},
85+
"FailEchoWithDetails": {
86+
"methods": ["failEchoWithDetails", "failEchoWithDetailsCallable"]
87+
},
8588
"GetIamPolicy": {
8689
"methods": ["getIamPolicy", "getIamPolicyCallable"]
8790
},

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
import com.google.showcase.v1beta1.EchoRequest;
4646
import com.google.showcase.v1beta1.EchoResponse;
4747
import com.google.showcase.v1beta1.ExpandRequest;
48+
import com.google.showcase.v1beta1.FailEchoWithDetailsRequest;
49+
import com.google.showcase.v1beta1.FailEchoWithDetailsResponse;
4850
import com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse;
4951
import com.google.showcase.v1beta1.PagedExpandLegacyRequest;
5052
import com.google.showcase.v1beta1.PagedExpandRequest;
@@ -81,6 +83,11 @@ public UnaryCallable<EchoRequest, EchoResponse> echoCallable() {
8183
throw new UnsupportedOperationException("Not implemented: echoErrorDetailsCallable()");
8284
}
8385

86+
public UnaryCallable<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
87+
failEchoWithDetailsCallable() {
88+
throw new UnsupportedOperationException("Not implemented: failEchoWithDetailsCallable()");
89+
}
90+
8491
public ServerStreamingCallable<ExpandRequest, EchoResponse> expandCallable() {
8592
throw new UnsupportedOperationException("Not implemented: expandCallable()");
8693
}

java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java

+28
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
import com.google.showcase.v1beta1.EchoRequest;
7474
import com.google.showcase.v1beta1.EchoResponse;
7575
import com.google.showcase.v1beta1.ExpandRequest;
76+
import com.google.showcase.v1beta1.FailEchoWithDetailsRequest;
77+
import com.google.showcase.v1beta1.FailEchoWithDetailsResponse;
7678
import com.google.showcase.v1beta1.PagedExpandLegacyMappedResponse;
7779
import com.google.showcase.v1beta1.PagedExpandLegacyRequest;
7880
import com.google.showcase.v1beta1.PagedExpandRequest;
@@ -171,6 +173,8 @@ public class EchoStubSettings extends StubSettings<EchoStubSettings> {
171173
private final UnaryCallSettings<EchoRequest, EchoResponse> echoSettings;
172174
private final UnaryCallSettings<EchoErrorDetailsRequest, EchoErrorDetailsResponse>
173175
echoErrorDetailsSettings;
176+
private final UnaryCallSettings<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
177+
failEchoWithDetailsSettings;
174178
private final ServerStreamingCallSettings<ExpandRequest, EchoResponse> expandSettings;
175179
private final StreamingCallSettings<EchoRequest, EchoResponse> collectSettings;
176180
private final StreamingCallSettings<EchoRequest, EchoResponse> chatSettings;
@@ -372,6 +376,12 @@ public UnaryCallSettings<EchoRequest, EchoResponse> echoSettings() {
372376
return echoErrorDetailsSettings;
373377
}
374378

379+
/** Returns the object with the settings used for calls to failEchoWithDetails. */
380+
public UnaryCallSettings<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
381+
failEchoWithDetailsSettings() {
382+
return failEchoWithDetailsSettings;
383+
}
384+
375385
/** Returns the object with the settings used for calls to expand. */
376386
public ServerStreamingCallSettings<ExpandRequest, EchoResponse> expandSettings() {
377387
return expandSettings;
@@ -554,6 +564,7 @@ protected EchoStubSettings(Builder settingsBuilder) throws IOException {
554564

555565
echoSettings = settingsBuilder.echoSettings().build();
556566
echoErrorDetailsSettings = settingsBuilder.echoErrorDetailsSettings().build();
567+
failEchoWithDetailsSettings = settingsBuilder.failEchoWithDetailsSettings().build();
557568
expandSettings = settingsBuilder.expandSettings().build();
558569
collectSettings = settingsBuilder.collectSettings().build();
559570
chatSettings = settingsBuilder.chatSettings().build();
@@ -576,6 +587,8 @@ public static class Builder extends StubSettings.Builder<EchoStubSettings, Build
576587
private final UnaryCallSettings.Builder<EchoRequest, EchoResponse> echoSettings;
577588
private final UnaryCallSettings.Builder<EchoErrorDetailsRequest, EchoErrorDetailsResponse>
578589
echoErrorDetailsSettings;
590+
private final UnaryCallSettings.Builder<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
591+
failEchoWithDetailsSettings;
579592
private final ServerStreamingCallSettings.Builder<ExpandRequest, EchoResponse> expandSettings;
580593
private final StreamingCallSettings.Builder<EchoRequest, EchoResponse> collectSettings;
581594
private final StreamingCallSettings.Builder<EchoRequest, EchoResponse> chatSettings;
@@ -653,6 +666,7 @@ protected Builder(ClientContext clientContext) {
653666

654667
echoSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
655668
echoErrorDetailsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
669+
failEchoWithDetailsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
656670
expandSettings = ServerStreamingCallSettings.newBuilder();
657671
collectSettings = StreamingCallSettings.newBuilder();
658672
chatSettings = StreamingCallSettings.newBuilder();
@@ -673,6 +687,7 @@ protected Builder(ClientContext clientContext) {
673687
ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
674688
echoSettings,
675689
echoErrorDetailsSettings,
690+
failEchoWithDetailsSettings,
676691
pagedExpandSettings,
677692
pagedExpandLegacySettings,
678693
pagedExpandLegacyMappedSettings,
@@ -691,6 +706,7 @@ protected Builder(EchoStubSettings settings) {
691706

692707
echoSettings = settings.echoSettings.toBuilder();
693708
echoErrorDetailsSettings = settings.echoErrorDetailsSettings.toBuilder();
709+
failEchoWithDetailsSettings = settings.failEchoWithDetailsSettings.toBuilder();
694710
expandSettings = settings.expandSettings.toBuilder();
695711
collectSettings = settings.collectSettings.toBuilder();
696712
chatSettings = settings.chatSettings.toBuilder();
@@ -710,6 +726,7 @@ protected Builder(EchoStubSettings settings) {
710726
ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
711727
echoSettings,
712728
echoErrorDetailsSettings,
729+
failEchoWithDetailsSettings,
713730
pagedExpandSettings,
714731
pagedExpandLegacySettings,
715732
pagedExpandLegacyMappedSettings,
@@ -757,6 +774,11 @@ private static Builder initDefaults(Builder builder) {
757774
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
758775
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
759776

777+
builder
778+
.failEchoWithDetailsSettings()
779+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes"))
780+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params"));
781+
760782
builder
761783
.expandSettings()
762784
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
@@ -864,6 +886,12 @@ public UnaryCallSettings.Builder<EchoRequest, EchoResponse> echoSettings() {
864886
return echoErrorDetailsSettings;
865887
}
866888

889+
/** Returns the builder for the settings used for calls to failEchoWithDetails. */
890+
public UnaryCallSettings.Builder<FailEchoWithDetailsRequest, FailEchoWithDetailsResponse>
891+
failEchoWithDetailsSettings() {
892+
return failEchoWithDetailsSettings;
893+
}
894+
867895
/** Returns the builder for the settings used for calls to expand. */
868896
public ServerStreamingCallSettings.Builder<ExpandRequest, EchoResponse> expandSettings() {
869897
return expandSettings;

0 commit comments

Comments
 (0)