Skip to content

Commit 2db1a5c

Browse files
fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 (#1573)
* fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 PiperOrigin-RevId: 599914188 Source-Link: googleapis/googleapis@17e6661 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 74bc35c commit 2db1a5c

File tree

166 files changed

+390
-288
lines changed

Some content is hidden

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

166 files changed

+390
-288
lines changed

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/AdminServiceClient.java

Lines changed: 97 additions & 97 deletions
Large diffs are not rendered by default.

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/CursorServiceClient.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,53 +71,53 @@
7171
* as threads. In the example above, try-with-resources is used, which automatically calls close().
7272
*
7373
* <table>
74-
* <caption>Methods</caption>
74+
* <caption>Methods</caption>
7575
* <tr>
7676
* <th>Method</th>
7777
* <th>Description</th>
7878
* <th>Method Variants</th>
7979
* </tr>
8080
* <tr>
81-
* <td>StreamingCommitCursor</td>
81+
* <td><p> StreamingCommitCursor</td>
8282
* <td><p> Establishes a stream with the server for managing committed cursors.</td>
8383
* <td>
8484
* <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>
8585
* <ul>
86-
* <li>streamingCommitCursorCallable()
86+
* <li><p> streamingCommitCursorCallable()
8787
* </ul>
8888
* </td>
8989
* </tr>
9090
* <tr>
91-
* <td>CommitCursor</td>
91+
* <td><p> CommitCursor</td>
9292
* <td><p> Updates the committed cursor.</td>
9393
* <td>
9494
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
9595
* <ul>
96-
* <li>commitCursor(CommitCursorRequest request)
96+
* <li><p> commitCursor(CommitCursorRequest request)
9797
* </ul>
9898
* <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>
9999
* <ul>
100-
* <li>commitCursorCallable()
100+
* <li><p> commitCursorCallable()
101101
* </ul>
102102
* </td>
103103
* </tr>
104104
* <tr>
105-
* <td>ListPartitionCursors</td>
105+
* <td><p> ListPartitionCursors</td>
106106
* <td><p> Returns all committed cursor information for a subscription.</td>
107107
* <td>
108108
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
109109
* <ul>
110-
* <li>listPartitionCursors(ListPartitionCursorsRequest request)
110+
* <li><p> listPartitionCursors(ListPartitionCursorsRequest request)
111111
* </ul>
112112
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
113113
* <ul>
114-
* <li>listPartitionCursors(SubscriptionName parent)
115-
* <li>listPartitionCursors(String parent)
114+
* <li><p> listPartitionCursors(SubscriptionName parent)
115+
* <li><p> listPartitionCursors(String parent)
116116
* </ul>
117117
* <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>
118118
* <ul>
119-
* <li>listPartitionCursorsPagedCallable()
120-
* <li>listPartitionCursorsCallable()
119+
* <li><p> listPartitionCursorsPagedCallable()
120+
* <li><p> listPartitionCursorsCallable()
121121
* </ul>
122122
* </td>
123123
* </tr>

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PartitionAssignmentServiceClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@
5757
* calls close().
5858
*
5959
* <table>
60-
* <caption>Methods</caption>
60+
* <caption>Methods</caption>
6161
* <tr>
6262
* <th>Method</th>
6363
* <th>Description</th>
6464
* <th>Method Variants</th>
6565
* </tr>
6666
* <tr>
67-
* <td>AssignPartitions</td>
67+
* <td><p> AssignPartitions</td>
6868
* <td><p> Assign partitions for this client to handle for the specified subscription.
6969
* <p> The client must send an InitialPartitionAssignmentRequest first. The server will then send at most one unacknowledged PartitionAssignment outstanding on the stream at a time. The client should send a PartitionAssignmentAck after updating the partitions it is connected to to reflect the new assignment.</td>
7070
* <td>
7171
* <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>
7272
* <ul>
73-
* <li>assignPartitionsCallable()
73+
* <li><p> assignPartitionsCallable()
7474
* </ul>
7575
* </td>
7676
* </tr>

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/PublisherServiceClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@
5858
* close().
5959
*
6060
* <table>
61-
* <caption>Methods</caption>
61+
* <caption>Methods</caption>
6262
* <tr>
6363
* <th>Method</th>
6464
* <th>Description</th>
6565
* <th>Method Variants</th>
6666
* </tr>
6767
* <tr>
68-
* <td>Publish</td>
68+
* <td><p> Publish</td>
6969
* <td><p> Establishes a stream with the server for publishing messages. Once the stream is initialized, the client publishes messages by sending publish requests on the stream. The server responds with a PublishResponse for each PublishRequest sent by the client, in the same order that the requests were sent. Note that multiple PublishRequests can be in flight simultaneously, but they will be processed by the server in the order that they are sent by the client on a given stream.</td>
7070
* <td>
7171
* <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>
7272
* <ul>
73-
* <li>publishCallable()
73+
* <li><p> publishCallable()
7474
* </ul>
7575
* </td>
7676
* </tr>

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/SubscriberServiceClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@
5656
* close().
5757
*
5858
* <table>
59-
* <caption>Methods</caption>
59+
* <caption>Methods</caption>
6060
* <tr>
6161
* <th>Method</th>
6262
* <th>Description</th>
6363
* <th>Method Variants</th>
6464
* </tr>
6565
* <tr>
66-
* <td>Subscribe</td>
66+
* <td><p> Subscribe</td>
6767
* <td><p> Establishes a stream with the server for receiving messages.</td>
6868
* <td>
6969
* <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>
7070
* <ul>
71-
* <li>subscribeCallable()
71+
* <li><p> subscribeCallable()
7272
* </ul>
7373
* </td>
7474
* </tr>

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/TopicStatsServiceClient.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,51 +60,51 @@
6060
* close().
6161
*
6262
* <table>
63-
* <caption>Methods</caption>
63+
* <caption>Methods</caption>
6464
* <tr>
6565
* <th>Method</th>
6666
* <th>Description</th>
6767
* <th>Method Variants</th>
6868
* </tr>
6969
* <tr>
70-
* <td>ComputeMessageStats</td>
70+
* <td><p> ComputeMessageStats</td>
7171
* <td><p> Compute statistics about a range of messages in a given topic and partition.</td>
7272
* <td>
7373
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
7474
* <ul>
75-
* <li>computeMessageStats(ComputeMessageStatsRequest request)
75+
* <li><p> computeMessageStats(ComputeMessageStatsRequest request)
7676
* </ul>
7777
* <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>
7878
* <ul>
79-
* <li>computeMessageStatsCallable()
79+
* <li><p> computeMessageStatsCallable()
8080
* </ul>
8181
* </td>
8282
* </tr>
8383
* <tr>
84-
* <td>ComputeHeadCursor</td>
84+
* <td><p> ComputeHeadCursor</td>
8585
* <td><p> Compute the head cursor for the partition. The head cursor's offset is guaranteed to be less than or equal to all messages which have not yet been acknowledged as published, and greater than the offset of any message whose publish has already been acknowledged. It is zero if there have never been messages in the partition.</td>
8686
* <td>
8787
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
8888
* <ul>
89-
* <li>computeHeadCursor(ComputeHeadCursorRequest request)
89+
* <li><p> computeHeadCursor(ComputeHeadCursorRequest request)
9090
* </ul>
9191
* <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>
9292
* <ul>
93-
* <li>computeHeadCursorCallable()
93+
* <li><p> computeHeadCursorCallable()
9494
* </ul>
9595
* </td>
9696
* </tr>
9797
* <tr>
98-
* <td>ComputeTimeCursor</td>
98+
* <td><p> ComputeTimeCursor</td>
9999
* <td><p> Compute the corresponding cursor for a publish or event time in a topic partition.</td>
100100
* <td>
101101
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
102102
* <ul>
103-
* <li>computeTimeCursor(ComputeTimeCursorRequest request)
103+
* <li><p> computeTimeCursor(ComputeTimeCursorRequest request)
104104
* </ul>
105105
* <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>
106106
* <ul>
107-
* <li>computeTimeCursorCallable()
107+
* <li><p> computeTimeCursorCallable()
108108
* </ul>
109109
* </td>
110110
* </tr>

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/AdminServiceStubSettings.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,15 @@ public AdminServiceStub createStub() throws IOException {
599599
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
600600
}
601601

602+
/** Returns the endpoint set by the user or the the service's default endpoint. */
603+
@Override
604+
public String getEndpoint() {
605+
if (super.getEndpoint() != null) {
606+
return super.getEndpoint();
607+
}
608+
return getDefaultEndpoint();
609+
}
610+
602611
/** Returns the default service name. */
603612
@Override
604613
public String getServiceName() {
@@ -884,7 +893,6 @@ private static Builder createDefault() {
884893
builder.setTransportChannelProvider(defaultTransportChannelProvider());
885894
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
886895
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
887-
builder.setEndpoint(getDefaultEndpoint());
888896
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
889897
builder.setSwitchToMtlsEndpointAllowed(true);
890898

@@ -1154,6 +1162,15 @@ public UnaryCallSettings.Builder<DeleteReservationRequest, Empty> deleteReservat
11541162
return listReservationTopicsSettings;
11551163
}
11561164

1165+
/** Returns the endpoint set by the user or the the service's default endpoint. */
1166+
@Override
1167+
public String getEndpoint() {
1168+
if (super.getEndpoint() != null) {
1169+
return super.getEndpoint();
1170+
}
1171+
return getDefaultEndpoint();
1172+
}
1173+
11571174
@Override
11581175
public AdminServiceStubSettings build() throws IOException {
11591176
return new AdminServiceStubSettings(this);

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/CursorServiceStubSettings.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,15 @@ public CursorServiceStub createStub() throws IOException {
205205
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
206206
}
207207

208+
/** Returns the endpoint set by the user or the the service's default endpoint. */
209+
@Override
210+
public String getEndpoint() {
211+
if (super.getEndpoint() != null) {
212+
return super.getEndpoint();
213+
}
214+
return getDefaultEndpoint();
215+
}
216+
208217
/** Returns the default service name. */
209218
@Override
210219
public String getServiceName() {
@@ -369,7 +378,6 @@ private static Builder createDefault() {
369378
builder.setTransportChannelProvider(defaultTransportChannelProvider());
370379
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
371380
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
372-
builder.setEndpoint(getDefaultEndpoint());
373381
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
374382
builder.setSwitchToMtlsEndpointAllowed(true);
375383

@@ -427,6 +435,15 @@ public Builder applyToAllUnaryMethods(
427435
return listPartitionCursorsSettings;
428436
}
429437

438+
/** Returns the endpoint set by the user or the the service's default endpoint. */
439+
@Override
440+
public String getEndpoint() {
441+
if (super.getEndpoint() != null) {
442+
return super.getEndpoint();
443+
}
444+
return getDefaultEndpoint();
445+
}
446+
430447
@Override
431448
public CursorServiceStubSettings build() throws IOException {
432449
return new CursorServiceStubSettings(this);

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PartitionAssignmentServiceStubSettings.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ public PartitionAssignmentServiceStub createStub() throws IOException {
107107
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
108108
}
109109

110+
/** Returns the endpoint set by the user or the the service's default endpoint. */
111+
@Override
112+
public String getEndpoint() {
113+
if (super.getEndpoint() != null) {
114+
return super.getEndpoint();
115+
}
116+
return getDefaultEndpoint();
117+
}
118+
110119
/** Returns the default service name. */
111120
@Override
112121
public String getServiceName() {
@@ -233,7 +242,6 @@ private static Builder createDefault() {
233242
builder.setTransportChannelProvider(defaultTransportChannelProvider());
234243
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
235244
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
236-
builder.setEndpoint(getDefaultEndpoint());
237245
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
238246
builder.setSwitchToMtlsEndpointAllowed(true);
239247

@@ -265,6 +273,15 @@ public Builder applyToAllUnaryMethods(
265273
return assignPartitionsSettings;
266274
}
267275

276+
/** Returns the endpoint set by the user or the the service's default endpoint. */
277+
@Override
278+
public String getEndpoint() {
279+
if (super.getEndpoint() != null) {
280+
return super.getEndpoint();
281+
}
282+
return getDefaultEndpoint();
283+
}
284+
268285
@Override
269286
public PartitionAssignmentServiceStubSettings build() throws IOException {
270287
return new PartitionAssignmentServiceStubSettings(this);

google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/v1/stub/PublisherServiceStubSettings.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@ public PublisherServiceStub createStub() throws IOException {
103103
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
104104
}
105105

106+
/** Returns the endpoint set by the user or the the service's default endpoint. */
107+
@Override
108+
public String getEndpoint() {
109+
if (super.getEndpoint() != null) {
110+
return super.getEndpoint();
111+
}
112+
return getDefaultEndpoint();
113+
}
114+
106115
/** Returns the default service name. */
107116
@Override
108117
public String getServiceName() {
@@ -227,7 +236,6 @@ private static Builder createDefault() {
227236
builder.setTransportChannelProvider(defaultTransportChannelProvider());
228237
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
229238
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
230-
builder.setEndpoint(getDefaultEndpoint());
231239
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
232240
builder.setSwitchToMtlsEndpointAllowed(true);
233241

@@ -258,6 +266,15 @@ public StreamingCallSettings.Builder<PublishRequest, PublishResponse> publishSet
258266
return publishSettings;
259267
}
260268

269+
/** Returns the endpoint set by the user or the the service's default endpoint. */
270+
@Override
271+
public String getEndpoint() {
272+
if (super.getEndpoint() != null) {
273+
return super.getEndpoint();
274+
}
275+
return getDefaultEndpoint();
276+
}
277+
261278
@Override
262279
public PublisherServiceStubSettings build() throws IOException {
263280
return new PublisherServiceStubSettings(this);

0 commit comments

Comments
 (0)