Skip to content

Commit 565e18f

Browse files
gcf-owl-bot[bot]ddixit14alicejli
authored
fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0 (#1566)
* fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0 PiperOrigin-RevId: 596645164 Source-Link: googleapis/googleapis@4a0e62e Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10ed6a77676c37e60799098d48d0afb16008613 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTEwZWQ2YTc3Njc2YzM3ZTYwNzk5MDk4ZDQ4ZDBhZmIxNjAwODYxMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: empty commit to trigger tests * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix javadoc html manually --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Deepankar Dixit <90280028+ddixit14@users.noreply.github.com> Co-authored-by: Alice Li <alicejli@google.com>
1 parent f161eb1 commit 565e18f

12 files changed

+563
-78
lines changed

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

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

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

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,58 @@
7070
* <p>Note: close() needs to be called on the CursorServiceClient object to clean up resources such
7171
* as threads. In the example above, try-with-resources is used, which automatically calls close().
7272
*
73-
* <p>The surface of this class includes several types of Java methods for each of the API's
74-
* methods:
75-
*
76-
* <ol>
77-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
78-
* converted into function parameters. It may be the case that not all fields are available as
79-
* parameters, and not every API method will have a flattened method entry point.
80-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
81-
* which must be constructed before the call. Not every API method will have a request object
82-
* method.
83-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
84-
* callable object, which can be used to initiate calls to the service.
85-
* </ol>
73+
* <table>
74+
* <caption>Methods</caption>
75+
* <tr>
76+
* <th>Method</th>
77+
* <th>Description</th>
78+
* <th>Method Variants</th>
79+
* </tr>
80+
* <tr>
81+
* <td>StreamingCommitCursor</td>
82+
* <td><p> Establishes a stream with the server for managing committed cursors.</td>
83+
* <td>
84+
* <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>
85+
* <ul>
86+
* <li>streamingCommitCursorCallable()
87+
* </ul>
88+
* </td>
89+
* </tr>
90+
* <tr>
91+
* <td>CommitCursor</td>
92+
* <td><p> Updates the committed cursor.</td>
93+
* <td>
94+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
95+
* <ul>
96+
* <li>commitCursor(CommitCursorRequest request)
97+
* </ul>
98+
* <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>
99+
* <ul>
100+
* <li>commitCursorCallable()
101+
* </ul>
102+
* </td>
103+
* </tr>
104+
* <tr>
105+
* <td>ListPartitionCursors</td>
106+
* <td><p> Returns all committed cursor information for a subscription.</td>
107+
* <td>
108+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
109+
* <ul>
110+
* <li>listPartitionCursors(ListPartitionCursorsRequest request)
111+
* </ul>
112+
* <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>
113+
* <ul>
114+
* <li>listPartitionCursors(SubscriptionName parent)
115+
* <li>listPartitionCursors(String parent)
116+
* </ul>
117+
* <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>
118+
* <ul>
119+
* <li>listPartitionCursorsPagedCallable()
120+
* <li>listPartitionCursorsCallable()
121+
* </ul>
122+
* </td>
123+
* </tr>
124+
* </table>
86125
*
87126
* <p>See the individual methods for example code.
88127
*

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

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,25 @@
5656
* resources such as threads. In the example above, try-with-resources is used, which automatically
5757
* calls close().
5858
*
59-
* <p>The surface of this class includes several types of Java methods for each of the API's
60-
* methods:
61-
*
62-
* <ol>
63-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
64-
* converted into function parameters. It may be the case that not all fields are available as
65-
* parameters, and not every API method will have a flattened method entry point.
66-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
67-
* which must be constructed before the call. Not every API method will have a request object
68-
* method.
69-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
70-
* callable object, which can be used to initiate calls to the service.
71-
* </ol>
59+
* <table>
60+
* <caption>Methods</caption>
61+
* <tr>
62+
* <th>Method</th>
63+
* <th>Description</th>
64+
* <th>Method Variants</th>
65+
* </tr>
66+
* <tr>
67+
* <td>AssignPartitions</td>
68+
* <td><p> Assign partitions for this client to handle for the specified subscription.
69+
* <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>
70+
* <td>
71+
* <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>
72+
* <ul>
73+
* <li>assignPartitionsCallable()
74+
* </ul>
75+
* </td>
76+
* </tr>
77+
* </table>
7278
*
7379
* <p>See the individual methods for example code.
7480
*

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

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,24 @@
5757
* such as threads. In the example above, try-with-resources is used, which automatically calls
5858
* close().
5959
*
60-
* <p>The surface of this class includes several types of Java methods for each of the API's
61-
* methods:
62-
*
63-
* <ol>
64-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
65-
* converted into function parameters. It may be the case that not all fields are available as
66-
* parameters, and not every API method will have a flattened method entry point.
67-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
68-
* which must be constructed before the call. Not every API method will have a request object
69-
* method.
70-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
71-
* callable object, which can be used to initiate calls to the service.
72-
* </ol>
60+
* <table>
61+
* <caption>Methods</caption>
62+
* <tr>
63+
* <th>Method</th>
64+
* <th>Description</th>
65+
* <th>Method Variants</th>
66+
* </tr>
67+
* <tr>
68+
* <td>Publish</td>
69+
* <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>
70+
* <td>
71+
* <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>
72+
* <ul>
73+
* <li>publishCallable()
74+
* </ul>
75+
* </td>
76+
* </tr>
77+
* </table>
7378
*
7479
* <p>See the individual methods for example code.
7580
*

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

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,24 @@
5555
* such as threads. In the example above, try-with-resources is used, which automatically calls
5656
* close().
5757
*
58-
* <p>The surface of this class includes several types of Java methods for each of the API's
59-
* methods:
60-
*
61-
* <ol>
62-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
63-
* converted into function parameters. It may be the case that not all fields are available as
64-
* parameters, and not every API method will have a flattened method entry point.
65-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
66-
* which must be constructed before the call. Not every API method will have a request object
67-
* method.
68-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
69-
* callable object, which can be used to initiate calls to the service.
70-
* </ol>
58+
* <table>
59+
* <caption>Methods</caption>
60+
* <tr>
61+
* <th>Method</th>
62+
* <th>Description</th>
63+
* <th>Method Variants</th>
64+
* </tr>
65+
* <tr>
66+
* <td>Subscribe</td>
67+
* <td><p> Establishes a stream with the server for receiving messages.</td>
68+
* <td>
69+
* <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>
70+
* <ul>
71+
* <li>subscribeCallable()
72+
* </ul>
73+
* </td>
74+
* </tr>
75+
* </table>
7176
*
7277
* <p>See the individual methods for example code.
7378
*

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

Lines changed: 50 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,56 @@
5959
* such as threads. In the example above, try-with-resources is used, which automatically calls
6060
* close().
6161
*
62-
* <p>The surface of this class includes several types of Java methods for each of the API's
63-
* methods:
64-
*
65-
* <ol>
66-
* <li>A "flattened" method. With this type of method, the fields of the request type have been
67-
* converted into function parameters. It may be the case that not all fields are available as
68-
* parameters, and not every API method will have a flattened method entry point.
69-
* <li>A "request object" method. This type of method only takes one parameter, a request object,
70-
* which must be constructed before the call. Not every API method will have a request object
71-
* method.
72-
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
73-
* callable object, which can be used to initiate calls to the service.
74-
* </ol>
62+
* <table>
63+
* <caption>Methods</caption>
64+
* <tr>
65+
* <th>Method</th>
66+
* <th>Description</th>
67+
* <th>Method Variants</th>
68+
* </tr>
69+
* <tr>
70+
* <td>ComputeMessageStats</td>
71+
* <td><p> Compute statistics about a range of messages in a given topic and partition.</td>
72+
* <td>
73+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
74+
* <ul>
75+
* <li>computeMessageStats(ComputeMessageStatsRequest request)
76+
* </ul>
77+
* <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>
78+
* <ul>
79+
* <li>computeMessageStatsCallable()
80+
* </ul>
81+
* </td>
82+
* </tr>
83+
* <tr>
84+
* <td>ComputeHeadCursor</td>
85+
* <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>
86+
* <td>
87+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
88+
* <ul>
89+
* <li>computeHeadCursor(ComputeHeadCursorRequest request)
90+
* </ul>
91+
* <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>
92+
* <ul>
93+
* <li>computeHeadCursorCallable()
94+
* </ul>
95+
* </td>
96+
* </tr>
97+
* <tr>
98+
* <td>ComputeTimeCursor</td>
99+
* <td><p> Compute the corresponding cursor for a publish or event time in a topic partition.</td>
100+
* <td>
101+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
102+
* <ul>
103+
* <li>computeTimeCursor(ComputeTimeCursorRequest request)
104+
* </ul>
105+
* <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>
106+
* <ul>
107+
* <li>computeTimeCursorCallable()
108+
* </ul>
109+
* </td>
110+
* </tr>
111+
* </table>
75112
*
76113
* <p>See the individual methods for example code.
77114
*

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

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

602+
/** Returns the default service name. */
603+
@Override
604+
public String getServiceName() {
605+
return "pubsublite";
606+
}
607+
602608
/** Returns a builder for the default ExecutorProvider for this service. */
603609
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
604610
return InstantiatingExecutorProvider.newBuilder();

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

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

208+
/** Returns the default service name. */
209+
@Override
210+
public String getServiceName() {
211+
return "pubsublite";
212+
}
213+
208214
/** Returns a builder for the default ExecutorProvider for this service. */
209215
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
210216
return InstantiatingExecutorProvider.newBuilder();

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

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

110+
/** Returns the default service name. */
111+
@Override
112+
public String getServiceName() {
113+
return "pubsublite";
114+
}
115+
110116
/** Returns a builder for the default ExecutorProvider for this service. */
111117
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
112118
return InstantiatingExecutorProvider.newBuilder();

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

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

106+
/** Returns the default service name. */
107+
@Override
108+
public String getServiceName() {
109+
return "pubsublite";
110+
}
111+
106112
/** Returns a builder for the default ExecutorProvider for this service. */
107113
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
108114
return InstantiatingExecutorProvider.newBuilder();

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ public SubscriberServiceStub createStub() throws IOException {
104104
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
105105
}
106106

107+
/** Returns the default service name. */
108+
@Override
109+
public String getServiceName() {
110+
return "pubsublite";
111+
}
112+
107113
/** Returns a builder for the default ExecutorProvider for this service. */
108114
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
109115
return InstantiatingExecutorProvider.newBuilder();

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ public TopicStatsServiceStub createStub() throws IOException {
126126
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
127127
}
128128

129+
/** Returns the default service name. */
130+
@Override
131+
public String getServiceName() {
132+
return "pubsublite";
133+
}
134+
129135
/** Returns a builder for the default ExecutorProvider for this service. */
130136
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
131137
return InstantiatingExecutorProvider.newBuilder();

0 commit comments

Comments
 (0)