Skip to content

Commit daff511

Browse files
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.32.0 (googleapis#10248)
* 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: eyJwIjoiLmdpdGh1Yi9yZWxlYXNlLW5vdGUtZ2VuZXJhdGlvbi90ZXN0ZGF0YS9qYXZhLWFuYWx5dGljcy1hZG1pbi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiLmdpdGh1Yi9yZWxlYXNlLW5vdGUtZ2VuZXJhdGlvbi90ZXN0ZGF0YS9qYXZhLW1hcHMtbWFwc3BsYXRmb3JtZGF0YXNldHMvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1hY2Nlc3NhcHByb3ZhbC8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1hY2Nlc3Njb250ZXh0bWFuYWdlci8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1hZHZpc29yeW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiJkODZi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: eyJwIjoiamF2YS1hcHBlbmdpbmUtYWRtaW4vLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== Copy-Tag: eyJwIjoiamF2YS1hcmVhMTIwLXRhYmxlcy8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1hcnRpZmFjdC1yZWdpc3RyeS8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1hc3NldC8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1hc3N1cmVkLXdvcmtsb2Fkcy8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 Copy-Tag: eyJwIjoiamF2YS1hdXRvbWwvLk93bEJvdC55YW1sIiwiaCI6ImQ4NmJhNWJlNTM3ZTQ4OTQzNTEwNWNhODU1NjZjYzQxMDMzMDFhYmEifQ== * 🦉 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 4982e78 commit daff511

194 files changed

Lines changed: 8507 additions & 6962 deletions

File tree

Some content is hidden

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

java-accessapproval/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-accessapproval.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.33.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.34.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-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -87,174 +87,175 @@
8787
* close().
8888
*
8989
* <table>
90+
* <caption>Methods</caption>
9091
* <tr>
9192
* <th>Method</th>
9293
* <th>Description</th>
9394
* <th>Method Variants</th>
95+
* </tr>
9496
* <tr>
95-
* <td>ListApprovalRequests</td>
97+
* <td><p> ListApprovalRequests</td>
9698
* <td><p> Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.</td>
9799
* <td>
98100
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
99101
* <ul>
100-
* <li>listApprovalRequests(ListApprovalRequestsMessage request)
102+
* <li><p> listApprovalRequests(ListApprovalRequestsMessage request)
101103
* </ul>
102104
* <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>
103105
* <ul>
104-
* <li>listApprovalRequests(FolderName parent)
105-
* <li>listApprovalRequests(OrganizationName parent)
106-
* <li>listApprovalRequests(ProjectName parent)
107-
* <li>listApprovalRequests(String parent)
106+
* <li><p> listApprovalRequests(FolderName parent)
107+
* <li><p> listApprovalRequests(OrganizationName parent)
108+
* <li><p> listApprovalRequests(ProjectName parent)
109+
* <li><p> listApprovalRequests(String parent)
108110
* </ul>
109111
* <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>
110112
* <ul>
111-
* <li>listApprovalRequestsPagedCallable()
112-
* <li>listApprovalRequestsCallable()
113+
* <li><p> listApprovalRequestsPagedCallable()
114+
* <li><p> listApprovalRequestsCallable()
113115
* </ul>
114116
* </td>
115117
* </tr>
116118
* <tr>
117-
* <td>GetApprovalRequest</td>
119+
* <td><p> GetApprovalRequest</td>
118120
* <td><p> Gets an approval request. Returns NOT_FOUND if the request does not exist.</td>
119121
* <td>
120122
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
121123
* <ul>
122-
* <li>getApprovalRequest(GetApprovalRequestMessage request)
124+
* <li><p> getApprovalRequest(GetApprovalRequestMessage request)
123125
* </ul>
124126
* <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>
125127
* <ul>
126-
* <li>getApprovalRequest(ApprovalRequestName name)
127-
* <li>getApprovalRequest(String name)
128+
* <li><p> getApprovalRequest(ApprovalRequestName name)
129+
* <li><p> getApprovalRequest(String name)
128130
* </ul>
129131
* <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>
130132
* <ul>
131-
* <li>getApprovalRequestCallable()
133+
* <li><p> getApprovalRequestCallable()
132134
* </ul>
133135
* </td>
134136
* </tr>
135137
* <tr>
136-
* <td>ApproveApprovalRequest</td>
138+
* <td><p> ApproveApprovalRequest</td>
137139
* <td><p> Approves a request and returns the updated ApprovalRequest.
138140
* <p> Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.</td>
139141
* <td>
140142
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
141143
* <ul>
142-
* <li>approveApprovalRequest(ApproveApprovalRequestMessage request)
144+
* <li><p> approveApprovalRequest(ApproveApprovalRequestMessage request)
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>approveApprovalRequestCallable()
148+
* <li><p> approveApprovalRequestCallable()
147149
* </ul>
148150
* </td>
149151
* </tr>
150152
* <tr>
151-
* <td>DismissApprovalRequest</td>
153+
* <td><p> DismissApprovalRequest</td>
152154
* <td><p> Dismisses a request. Returns the updated ApprovalRequest.
153155
* <p> NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether.
154156
* <p> Returns NOT_FOUND if the request does not exist.
155157
* <p> Returns FAILED_PRECONDITION if the request exists but is not in a pending state.</td>
156158
* <td>
157159
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
158160
* <ul>
159-
* <li>dismissApprovalRequest(DismissApprovalRequestMessage request)
161+
* <li><p> dismissApprovalRequest(DismissApprovalRequestMessage request)
160162
* </ul>
161163
* <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>
162164
* <ul>
163-
* <li>dismissApprovalRequestCallable()
165+
* <li><p> dismissApprovalRequestCallable()
164166
* </ul>
165167
* </td>
166168
* </tr>
167169
* <tr>
168-
* <td>InvalidateApprovalRequest</td>
170+
* <td><p> InvalidateApprovalRequest</td>
169171
* <td><p> Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.
170172
* <p> NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval.
171173
* <p> Returns FAILED_PRECONDITION if the request exists but is not in an approved state.</td>
172174
* <td>
173175
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
174176
* <ul>
175-
* <li>invalidateApprovalRequest(InvalidateApprovalRequestMessage request)
177+
* <li><p> invalidateApprovalRequest(InvalidateApprovalRequestMessage request)
176178
* </ul>
177179
* <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>
178180
* <ul>
179-
* <li>invalidateApprovalRequestCallable()
181+
* <li><p> invalidateApprovalRequestCallable()
180182
* </ul>
181183
* </td>
182184
* </tr>
183185
* <tr>
184-
* <td>GetAccessApprovalSettings</td>
186+
* <td><p> GetAccessApprovalSettings</td>
185187
* <td><p> Gets the settings associated with a project, folder, or organization.</td>
186188
* <td>
187189
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
188190
* <ul>
189-
* <li>getAccessApprovalSettings(GetAccessApprovalSettingsMessage request)
191+
* <li><p> getAccessApprovalSettings(GetAccessApprovalSettingsMessage request)
190192
* </ul>
191193
* <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>
192194
* <ul>
193-
* <li>getAccessApprovalSettings(AccessApprovalSettingsName name)
194-
* <li>getAccessApprovalSettings(String name)
195+
* <li><p> getAccessApprovalSettings(AccessApprovalSettingsName name)
196+
* <li><p> getAccessApprovalSettings(String name)
195197
* </ul>
196198
* <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>
197199
* <ul>
198-
* <li>getAccessApprovalSettingsCallable()
200+
* <li><p> getAccessApprovalSettingsCallable()
199201
* </ul>
200202
* </td>
201203
* </tr>
202204
* <tr>
203-
* <td>UpdateAccessApprovalSettings</td>
205+
* <td><p> UpdateAccessApprovalSettings</td>
204206
* <td><p> Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.</td>
205207
* <td>
206208
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
207209
* <ul>
208-
* <li>updateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage request)
210+
* <li><p> updateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage request)
209211
* </ul>
210212
* <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>
211213
* <ul>
212-
* <li>updateAccessApprovalSettings(AccessApprovalSettings settings, FieldMask updateMask)
214+
* <li><p> updateAccessApprovalSettings(AccessApprovalSettings settings, FieldMask updateMask)
213215
* </ul>
214216
* <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>
215217
* <ul>
216-
* <li>updateAccessApprovalSettingsCallable()
218+
* <li><p> updateAccessApprovalSettingsCallable()
217219
* </ul>
218220
* </td>
219221
* </tr>
220222
* <tr>
221-
* <td>DeleteAccessApprovalSettings</td>
223+
* <td><p> DeleteAccessApprovalSettings</td>
222224
* <td><p> Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.</td>
223225
* <td>
224226
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
225227
* <ul>
226-
* <li>deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage request)
228+
* <li><p> deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage request)
227229
* </ul>
228230
* <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>
229231
* <ul>
230-
* <li>deleteAccessApprovalSettings(AccessApprovalSettingsName name)
231-
* <li>deleteAccessApprovalSettings(String name)
232+
* <li><p> deleteAccessApprovalSettings(AccessApprovalSettingsName name)
233+
* <li><p> deleteAccessApprovalSettings(String name)
232234
* </ul>
233235
* <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>
234236
* <ul>
235-
* <li>deleteAccessApprovalSettingsCallable()
237+
* <li><p> deleteAccessApprovalSettingsCallable()
236238
* </ul>
237239
* </td>
238240
* </tr>
239241
* <tr>
240-
* <td>GetAccessApprovalServiceAccount</td>
242+
* <td><p> GetAccessApprovalServiceAccount</td>
241243
* <td><p> Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.</td>
242244
* <td>
243245
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
244246
* <ul>
245-
* <li>getAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage request)
247+
* <li><p> getAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage request)
246248
* </ul>
247249
* <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>
248250
* <ul>
249-
* <li>getAccessApprovalServiceAccount(String name)
251+
* <li><p> getAccessApprovalServiceAccount(String name)
250252
* </ul>
251253
* <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>
252254
* <ul>
253-
* <li>getAccessApprovalServiceAccountCallable()
255+
* <li><p> getAccessApprovalServiceAccountCallable()
254256
* </ul>
255257
* </td>
256258
* </tr>
257-
* </tr>
258259
* </table>
259260
*
260261
* <p>See the individual methods for example code.

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,15 @@ public AccessApprovalStub createStub() throws IOException {
272272
"Transport not supported: %s", getTransportChannelProvider().getTransportName()));
273273
}
274274

275+
/** Returns the endpoint set by the user or the the service's default endpoint. */
276+
@Override
277+
public String getEndpoint() {
278+
if (super.getEndpoint() != null) {
279+
return super.getEndpoint();
280+
}
281+
return getDefaultEndpoint();
282+
}
283+
275284
/** Returns the default service name. */
276285
@Override
277286
public String getServiceName() {
@@ -520,7 +529,6 @@ private static Builder createDefault() {
520529
builder.setTransportChannelProvider(defaultTransportChannelProvider());
521530
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
522531
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
523-
builder.setEndpoint(getDefaultEndpoint());
524532
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
525533
builder.setSwitchToMtlsEndpointAllowed(true);
526534

@@ -533,7 +541,6 @@ private static Builder createHttpJsonDefault() {
533541
builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build());
534542
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
535543
builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build());
536-
builder.setEndpoint(getDefaultEndpoint());
537544
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
538545
builder.setSwitchToMtlsEndpointAllowed(true);
539546

@@ -662,6 +669,15 @@ public Builder applyToAllUnaryMethods(
662669
return getAccessApprovalServiceAccountSettings;
663670
}
664671

672+
/** Returns the endpoint set by the user or the the service's default endpoint. */
673+
@Override
674+
public String getEndpoint() {
675+
if (super.getEndpoint() != null) {
676+
return super.getEndpoint();
677+
}
678+
return getDefaultEndpoint();
679+
}
680+
665681
@Override
666682
public AccessApprovalStubSettings build() throws IOException {
667683
return new AccessApprovalStubSettings(this);

java-accesscontextmanager/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-identity-accesscontextmanager.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.33.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.34.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

0 commit comments

Comments
 (0)