Skip to content

Commit 34ee60b

Browse files
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.32.0 (#10253)
* 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: eyJwIjoiamF2YS1tZW1jYWNoZS8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1taWdyYXRpb25jZW50ZXIvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLWRhc2hib2FyZHMvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLW1ldHJpY3NzY29wZS8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLy5Pd2xCb3QueWFtbCIsImgiOiJkODZiYTViZTUzN2U0ODk0MzUxMDVjYTg1NTY2Y2M0MTAzMzAxYWJhIn0= Copy-Tag: eyJwIjoiamF2YS1uZXRhcHAvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlN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 Copy-Tag: eyJwIjoiamF2YS1waGlzaGluZ3Byb3RlY3Rpb24vLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1wb2xpY3ktdHJvdWJsZXNob290ZXIvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1wb2xpY3lzaW11bGF0b3IvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1wcml2YXRlLWNhdGFsb2cvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1wcm9maWxlci8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 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 161f5b5 commit 34ee60b

File tree

106 files changed

+3319
-2572
lines changed

Some content is hidden

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

106 files changed

+3319
-2572
lines changed

java-memcache/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-memcache.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.32.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.33.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/CloudMemcacheClient.java

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -85,198 +85,199 @@
8585
* as threads. In the example above, try-with-resources is used, which automatically calls close().
8686
*
8787
* <table>
88+
* <caption>Methods</caption>
8889
* <tr>
8990
* <th>Method</th>
9091
* <th>Description</th>
9192
* <th>Method Variants</th>
93+
* </tr>
9294
* <tr>
93-
* <td>ListInstances</td>
95+
* <td><p> ListInstances</td>
9496
* <td><p> Lists Instances in a given location.</td>
9597
* <td>
9698
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
9799
* <ul>
98-
* <li>listInstances(ListInstancesRequest request)
100+
* <li><p> listInstances(ListInstancesRequest request)
99101
* </ul>
100102
* <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>
101103
* <ul>
102-
* <li>listInstances(LocationName parent)
103-
* <li>listInstances(String parent)
104+
* <li><p> listInstances(LocationName parent)
105+
* <li><p> listInstances(String parent)
104106
* </ul>
105107
* <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>
106108
* <ul>
107-
* <li>listInstancesPagedCallable()
108-
* <li>listInstancesCallable()
109+
* <li><p> listInstancesPagedCallable()
110+
* <li><p> listInstancesCallable()
109111
* </ul>
110112
* </td>
111113
* </tr>
112114
* <tr>
113-
* <td>GetInstance</td>
115+
* <td><p> GetInstance</td>
114116
* <td><p> Gets details of a single Instance.</td>
115117
* <td>
116118
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
117119
* <ul>
118-
* <li>getInstance(GetInstanceRequest request)
120+
* <li><p> getInstance(GetInstanceRequest request)
119121
* </ul>
120122
* <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>
121123
* <ul>
122-
* <li>getInstance(InstanceName name)
123-
* <li>getInstance(String name)
124+
* <li><p> getInstance(InstanceName name)
125+
* <li><p> getInstance(String name)
124126
* </ul>
125127
* <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>
126128
* <ul>
127-
* <li>getInstanceCallable()
129+
* <li><p> getInstanceCallable()
128130
* </ul>
129131
* </td>
130132
* </tr>
131133
* <tr>
132-
* <td>CreateInstance</td>
134+
* <td><p> CreateInstance</td>
133135
* <td><p> Creates a new Instance in a given location.</td>
134136
* <td>
135137
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
136138
* <ul>
137-
* <li>createInstanceAsync(CreateInstanceRequest request)
139+
* <li><p> createInstanceAsync(CreateInstanceRequest request)
138140
* </ul>
139141
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
140142
* <ul>
141-
* <li>createInstanceAsync(LocationName parent, Instance instance, String instanceId)
142-
* <li>createInstanceAsync(String parent, Instance instance, String instanceId)
143+
* <li><p> createInstanceAsync(LocationName parent, Instance instance, String instanceId)
144+
* <li><p> createInstanceAsync(String parent, Instance instance, String instanceId)
143145
* </ul>
144146
* <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>
145147
* <ul>
146-
* <li>createInstanceOperationCallable()
147-
* <li>createInstanceCallable()
148+
* <li><p> createInstanceOperationCallable()
149+
* <li><p> createInstanceCallable()
148150
* </ul>
149151
* </td>
150152
* </tr>
151153
* <tr>
152-
* <td>UpdateInstance</td>
154+
* <td><p> UpdateInstance</td>
153155
* <td><p> Updates an existing Instance in a given project and location.</td>
154156
* <td>
155157
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
156158
* <ul>
157-
* <li>updateInstanceAsync(UpdateInstanceRequest request)
159+
* <li><p> updateInstanceAsync(UpdateInstanceRequest request)
158160
* </ul>
159161
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
160162
* <ul>
161-
* <li>updateInstanceAsync(Instance instance, FieldMask updateMask)
163+
* <li><p> updateInstanceAsync(Instance instance, FieldMask updateMask)
162164
* </ul>
163165
* <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>
164166
* <ul>
165-
* <li>updateInstanceOperationCallable()
166-
* <li>updateInstanceCallable()
167+
* <li><p> updateInstanceOperationCallable()
168+
* <li><p> updateInstanceCallable()
167169
* </ul>
168170
* </td>
169171
* </tr>
170172
* <tr>
171-
* <td>UpdateParameters</td>
173+
* <td><p> UpdateParameters</td>
172174
* <td><p> Updates the defined Memcached parameters for an existing instance. This method only stages the parameters, it must be followed by `ApplyParameters` to apply the parameters to nodes of the Memcached instance.</td>
173175
* <td>
174176
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
175177
* <ul>
176-
* <li>updateParametersAsync(UpdateParametersRequest request)
178+
* <li><p> updateParametersAsync(UpdateParametersRequest request)
177179
* </ul>
178180
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
179181
* <ul>
180-
* <li>updateParametersAsync(InstanceName name, FieldMask updateMask, MemcacheParameters parameters)
181-
* <li>updateParametersAsync(String name, FieldMask updateMask, MemcacheParameters parameters)
182+
* <li><p> updateParametersAsync(InstanceName name, FieldMask updateMask, MemcacheParameters parameters)
183+
* <li><p> updateParametersAsync(String name, FieldMask updateMask, MemcacheParameters parameters)
182184
* </ul>
183185
* <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>
184186
* <ul>
185-
* <li>updateParametersOperationCallable()
186-
* <li>updateParametersCallable()
187+
* <li><p> updateParametersOperationCallable()
188+
* <li><p> updateParametersCallable()
187189
* </ul>
188190
* </td>
189191
* </tr>
190192
* <tr>
191-
* <td>DeleteInstance</td>
193+
* <td><p> DeleteInstance</td>
192194
* <td><p> Deletes a single Instance.</td>
193195
* <td>
194196
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
195197
* <ul>
196-
* <li>deleteInstanceAsync(DeleteInstanceRequest request)
198+
* <li><p> deleteInstanceAsync(DeleteInstanceRequest request)
197199
* </ul>
198200
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
199201
* <ul>
200-
* <li>deleteInstanceAsync(InstanceName name)
201-
* <li>deleteInstanceAsync(String name)
202+
* <li><p> deleteInstanceAsync(InstanceName name)
203+
* <li><p> deleteInstanceAsync(String name)
202204
* </ul>
203205
* <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>
204206
* <ul>
205-
* <li>deleteInstanceOperationCallable()
206-
* <li>deleteInstanceCallable()
207+
* <li><p> deleteInstanceOperationCallable()
208+
* <li><p> deleteInstanceCallable()
207209
* </ul>
208210
* </td>
209211
* </tr>
210212
* <tr>
211-
* <td>ApplyParameters</td>
213+
* <td><p> ApplyParameters</td>
212214
* <td><p> `ApplyParameters` restarts the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.</td>
213215
* <td>
214216
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
215217
* <ul>
216-
* <li>applyParametersAsync(ApplyParametersRequest request)
218+
* <li><p> applyParametersAsync(ApplyParametersRequest request)
217219
* </ul>
218220
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
219221
* <ul>
220-
* <li>applyParametersAsync(InstanceName name, List<String> nodeIds, boolean applyAll)
221-
* <li>applyParametersAsync(String name, List<String> nodeIds, boolean applyAll)
222+
* <li><p> applyParametersAsync(InstanceName name, List&lt;String&gt; nodeIds, boolean applyAll)
223+
* <li><p> applyParametersAsync(String name, List&lt;String&gt; nodeIds, boolean applyAll)
222224
* </ul>
223225
* <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>
224226
* <ul>
225-
* <li>applyParametersOperationCallable()
226-
* <li>applyParametersCallable()
227+
* <li><p> applyParametersOperationCallable()
228+
* <li><p> applyParametersCallable()
227229
* </ul>
228230
* </td>
229231
* </tr>
230232
* <tr>
231-
* <td>RescheduleMaintenance</td>
233+
* <td><p> RescheduleMaintenance</td>
232234
* <td><p> Reschedules upcoming maintenance event.</td>
233235
* <td>
234236
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
235237
* <ul>
236-
* <li>rescheduleMaintenanceAsync(RescheduleMaintenanceRequest request)
238+
* <li><p> rescheduleMaintenanceAsync(RescheduleMaintenanceRequest request)
237239
* </ul>
238240
* <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p>
239241
* <ul>
240-
* <li>rescheduleMaintenanceAsync(InstanceName instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime)
241-
* <li>rescheduleMaintenanceAsync(String instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime)
242+
* <li><p> rescheduleMaintenanceAsync(InstanceName instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime)
243+
* <li><p> rescheduleMaintenanceAsync(String instance, RescheduleMaintenanceRequest.RescheduleType rescheduleType, Timestamp scheduleTime)
242244
* </ul>
243245
* <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>
244246
* <ul>
245-
* <li>rescheduleMaintenanceOperationCallable()
246-
* <li>rescheduleMaintenanceCallable()
247+
* <li><p> rescheduleMaintenanceOperationCallable()
248+
* <li><p> rescheduleMaintenanceCallable()
247249
* </ul>
248250
* </td>
249251
* </tr>
250252
* <tr>
251-
* <td>ListLocations</td>
253+
* <td><p> ListLocations</td>
252254
* <td><p> Lists information about the supported locations for this service.</td>
253255
* <td>
254256
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
255257
* <ul>
256-
* <li>listLocations(ListLocationsRequest request)
258+
* <li><p> listLocations(ListLocationsRequest request)
257259
* </ul>
258260
* <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>
259261
* <ul>
260-
* <li>listLocationsPagedCallable()
261-
* <li>listLocationsCallable()
262+
* <li><p> listLocationsPagedCallable()
263+
* <li><p> listLocationsCallable()
262264
* </ul>
263265
* </td>
264266
* </tr>
265267
* <tr>
266-
* <td>GetLocation</td>
268+
* <td><p> GetLocation</td>
267269
* <td><p> Gets information about a location.</td>
268270
* <td>
269271
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
270272
* <ul>
271-
* <li>getLocation(GetLocationRequest request)
273+
* <li><p> getLocation(GetLocationRequest request)
272274
* </ul>
273275
* <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>
274276
* <ul>
275-
* <li>getLocationCallable()
277+
* <li><p> getLocationCallable()
276278
* </ul>
277279
* </td>
278280
* </tr>
279-
* </tr>
280281
* </table>
281282
*
282283
* <p>See the individual methods for example code.

java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/CloudMemcacheStubSettings.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,15 @@ public CloudMemcacheStub createStub() throws IOException {
356356
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
357357
}
358358

359+
/** Returns the endpoint set by the user or the the service's default endpoint. */
360+
@Override
361+
public String getEndpoint() {
362+
if (super.getEndpoint() != null) {
363+
return super.getEndpoint();
364+
}
365+
return getDefaultEndpoint();
366+
}
367+
359368
/** Returns the default service name. */
360369
@Override
361370
public String getServiceName() {
@@ -618,7 +627,6 @@ private static Builder createDefault() {
618627
builder.setTransportChannelProvider(defaultTransportChannelProvider());
619628
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
620629
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
621-
builder.setEndpoint(getDefaultEndpoint());
622630
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
623631
builder.setSwitchToMtlsEndpointAllowed(true);
624632

@@ -631,7 +639,6 @@ private static Builder createHttpJsonDefault() {
631639
builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
632640
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
633641
builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
634-
builder.setEndpoint(getDefaultEndpoint());
635642
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
636643
builder.setSwitchToMtlsEndpointAllowed(true);
637644

@@ -955,6 +962,15 @@ public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettin
955962
return getLocationSettings;
956963
}
957964

965+
/** Returns the endpoint set by the user or the the service's default endpoint. */
966+
@Override
967+
public String getEndpoint() {
968+
if (super.getEndpoint() != null) {
969+
return super.getEndpoint();
970+
}
971+
return getDefaultEndpoint();
972+
}
973+
958974
@Override
959975
public CloudMemcacheStubSettings build() throws IOException {
960976
return new CloudMemcacheStubSettings(this);

0 commit comments

Comments
 (0)