Skip to content

Commit 3ec9def

Browse files
chore: Update generation configuration at Thu Sep 19 02:22:35 UTC 2024 (#11116)
* chore: generate libraries at Thu Sep 19 02:25:43 UTC 2024
1 parent 3ad895d commit 3ec9def

File tree

5,387 files changed

+298273
-47659
lines changed

Some content is hidden

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

5,387 files changed

+298273
-47659
lines changed

generation_config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
gapic_generator_version: 2.44.0
2-
googleapis_commitish: a8f277295c12490d49c196b791e2101500864c30
3-
libraries_bom_version: 26.44.0
1+
gapic_generator_version: 2.45.0
2+
googleapis_commitish: 607c2ae82620153880a66898bcbf0a46d38d7d10
3+
libraries_bom_version: 26.46.0
44

55
# the libraries are ordered with respect to library name, which is
66
# java-{library.library_name} or java-{library.api-shortname} when

java-accessapproval/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.44.0</version>
23+
<version>26.46.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -32,6 +32,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
3232
<groupId>com.google.cloud</groupId>
3333
<artifactId>google-cloud-accessapproval</artifactId>
3434
</dependency>
35+
</dependencies>
3536
```
3637

3738
If you are using Maven without the BOM, add this to your dependencies:
@@ -195,7 +196,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195196
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196197
[stability-image]: https://img.shields.io/badge/stability-stable-green
197198
[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.48.0
199+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.50.0
199200
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200201
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201202
[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/AccessApprovalAdminSettings.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
5353
* build() is called, the tree of builders is called to create the complete settings object.
5454
*
55-
* <p>For example, to set the total timeout of getApprovalRequest to 30 seconds:
55+
* <p>For example, to set the
56+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
57+
* of getApprovalRequest:
5658
*
5759
* <pre>{@code
5860
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -69,11 +71,22 @@
6971
* .getApprovalRequestSettings()
7072
* .getRetrySettings()
7173
* .toBuilder()
72-
* .setTotalTimeout(Duration.ofSeconds(30))
74+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
75+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
76+
* .setMaxAttempts(5)
77+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
78+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
79+
* .setRetryDelayMultiplier(1.3)
80+
* .setRpcTimeoutMultiplier(1.5)
81+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
7382
* .build());
7483
* AccessApprovalAdminSettings accessApprovalAdminSettings =
7584
* accessApprovalAdminSettingsBuilder.build();
7685
* }</pre>
86+
*
87+
* Please refer to the [Client Side Retry
88+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
89+
* additional support in setting retries.
7790
*/
7891
@Generated("by gapic-generator-java")
7992
public class AccessApprovalAdminSettings extends ClientSettings<AccessApprovalAdminSettings> {

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

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@
8383
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
8484
* build() is called, the tree of builders is called to create the complete settings object.
8585
*
86-
* <p>For example, to set the total timeout of getApprovalRequest to 30 seconds:
86+
* <p>For example, to set the
87+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
88+
* of getApprovalRequest:
8789
*
8890
* <pre>{@code
8991
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -100,11 +102,22 @@
100102
* .getApprovalRequestSettings()
101103
* .getRetrySettings()
102104
* .toBuilder()
103-
* .setTotalTimeout(Duration.ofSeconds(30))
105+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
106+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
107+
* .setMaxAttempts(5)
108+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
109+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
110+
* .setRetryDelayMultiplier(1.3)
111+
* .setRpcTimeoutMultiplier(1.5)
112+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
104113
* .build());
105114
* AccessApprovalStubSettings accessApprovalAdminSettings =
106115
* accessApprovalAdminSettingsBuilder.build();
107116
* }</pre>
117+
*
118+
* Please refer to the [Client Side Retry
119+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
120+
* additional support in setting retries.
108121
*/
109122
@Generated("by gapic-generator-java")
110123
public class AccessApprovalStubSettings extends StubSettings<AccessApprovalStubSettings> {
@@ -170,9 +183,7 @@ public String extractNextToken(ListApprovalRequestsResponse payload) {
170183
@Override
171184
public Iterable<ApprovalRequest> extractResources(
172185
ListApprovalRequestsResponse payload) {
173-
return payload.getApprovalRequestsList() == null
174-
? ImmutableList.<ApprovalRequest>of()
175-
: payload.getApprovalRequestsList();
186+
return payload.getApprovalRequestsList();
176187
}
177188
};
178189

java-accessapproval/google-cloud-accessapproval/src/main/resources/META-INF/native-image/com.google.cloud.accessapproval.v1/reflect-config.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,24 @@
305305
"allDeclaredClasses": true,
306306
"allPublicClasses": true
307307
},
308+
{
309+
"name": "com.google.api.PythonSettings$ExperimentalFeatures",
310+
"queryAllDeclaredConstructors": true,
311+
"queryAllPublicConstructors": true,
312+
"queryAllDeclaredMethods": true,
313+
"allPublicMethods": true,
314+
"allDeclaredClasses": true,
315+
"allPublicClasses": true
316+
},
317+
{
318+
"name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder",
319+
"queryAllDeclaredConstructors": true,
320+
"queryAllPublicConstructors": true,
321+
"queryAllDeclaredMethods": true,
322+
"allPublicMethods": true,
323+
"allDeclaredClasses": true,
324+
"allPublicClasses": true
325+
},
308326
{
309327
"name": "com.google.api.ResourceDescriptor",
310328
"queryAllDeclaredConstructors": true,

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminsettings/getapprovalrequest/SyncGetApprovalRequest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ public static void syncGetApprovalRequest() throws Exception {
4141
.getApprovalRequestSettings()
4242
.getRetrySettings()
4343
.toBuilder()
44-
.setTotalTimeout(Duration.ofSeconds(30))
44+
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
45+
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
46+
.setMaxAttempts(5)
47+
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
48+
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
49+
.setRetryDelayMultiplier(1.3)
50+
.setRpcTimeoutMultiplier(1.5)
51+
.setTotalTimeoutDuration(Duration.ofSeconds(300))
4552
.build());
4653
AccessApprovalAdminSettings accessApprovalAdminSettings =
4754
accessApprovalAdminSettingsBuilder.build();

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/stub/accessapprovalstubsettings/getapprovalrequest/SyncGetApprovalRequest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ public static void syncGetApprovalRequest() throws Exception {
4141
.getApprovalRequestSettings()
4242
.getRetrySettings()
4343
.toBuilder()
44-
.setTotalTimeout(Duration.ofSeconds(30))
44+
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
45+
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
46+
.setMaxAttempts(5)
47+
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
48+
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
49+
.setRetryDelayMultiplier(1.3)
50+
.setRpcTimeoutMultiplier(1.5)
51+
.setTotalTimeoutDuration(Duration.ofSeconds(300))
4552
.build());
4653
AccessApprovalStubSettings accessApprovalAdminSettings =
4754
accessApprovalAdminSettingsBuilder.build();

java-accesscontextmanager/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.44.0</version>
23+
<version>26.46.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -32,6 +32,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
3232
<groupId>com.google.cloud</groupId>
3333
<artifactId>google-identity-accesscontextmanager</artifactId>
3434
</dependency>
35+
</dependencies>
3536
```
3637

3738
If you are using Maven without the BOM, add this to your dependencies:
@@ -195,7 +196,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195196
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196197
[stability-image]: https://img.shields.io/badge/stability-stable-green
197198
[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.48.0
199+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.50.0
199200
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200201
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201202
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/AccessContextManagerSettings.java

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
6363
* build() is called, the tree of builders is called to create the complete settings object.
6464
*
65-
* <p>For example, to set the total timeout of getAccessPolicy to 30 seconds:
65+
* <p>For example, to set the
66+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
67+
* of getAccessPolicy:
6668
*
6769
* <pre>{@code
6870
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -79,11 +81,48 @@
7981
* .getAccessPolicySettings()
8082
* .getRetrySettings()
8183
* .toBuilder()
82-
* .setTotalTimeout(Duration.ofSeconds(30))
84+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
85+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
86+
* .setMaxAttempts(5)
87+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
88+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
89+
* .setRetryDelayMultiplier(1.3)
90+
* .setRpcTimeoutMultiplier(1.5)
91+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
8392
* .build());
8493
* AccessContextManagerSettings accessContextManagerSettings =
8594
* accessContextManagerSettingsBuilder.build();
8695
* }</pre>
96+
*
97+
* Please refer to the [Client Side Retry
98+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
99+
* additional support in setting retries.
100+
*
101+
* <p>To configure the RetrySettings of a Long Running Operation method, create an
102+
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
103+
* configure the RetrySettings for createAccessPolicy:
104+
*
105+
* <pre>{@code
106+
* // This snippet has been automatically generated and should be regarded as a code template only.
107+
* // It will require modifications to work:
108+
* // - It may require correct/in-range values for request initialization.
109+
* // - It may require specifying regional endpoints when creating the service client as shown in
110+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
111+
* AccessContextManagerSettings.Builder accessContextManagerSettingsBuilder =
112+
* AccessContextManagerSettings.newBuilder();
113+
* TimedRetryAlgorithm timedRetryAlgorithm =
114+
* OperationalTimedPollAlgorithm.create(
115+
* RetrySettings.newBuilder()
116+
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
117+
* .setRetryDelayMultiplier(1.5)
118+
* .setMaxRetryDelay(Duration.ofMillis(5000))
119+
* .setTotalTimeoutDuration(Duration.ofHours(24))
120+
* .build());
121+
* accessContextManagerSettingsBuilder
122+
* .createClusterOperationSettings()
123+
* .setPollingAlgorithm(timedRetryAlgorithm)
124+
* .build();
125+
* }</pre>
87126
*/
88127
@Generated("by gapic-generator-java")
89128
public class AccessContextManagerSettings extends ClientSettings<AccessContextManagerSettings> {

java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/AccessContextManagerStubSettings.java

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@
118118
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
119119
* build() is called, the tree of builders is called to create the complete settings object.
120120
*
121-
* <p>For example, to set the total timeout of getAccessPolicy to 30 seconds:
121+
* <p>For example, to set the
122+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
123+
* of getAccessPolicy:
122124
*
123125
* <pre>{@code
124126
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -135,11 +137,48 @@
135137
* .getAccessPolicySettings()
136138
* .getRetrySettings()
137139
* .toBuilder()
138-
* .setTotalTimeout(Duration.ofSeconds(30))
140+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
141+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
142+
* .setMaxAttempts(5)
143+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
144+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
145+
* .setRetryDelayMultiplier(1.3)
146+
* .setRpcTimeoutMultiplier(1.5)
147+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
139148
* .build());
140149
* AccessContextManagerStubSettings accessContextManagerSettings =
141150
* accessContextManagerSettingsBuilder.build();
142151
* }</pre>
152+
*
153+
* Please refer to the [Client Side Retry
154+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
155+
* additional support in setting retries.
156+
*
157+
* <p>To configure the RetrySettings of a Long Running Operation method, create an
158+
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
159+
* configure the RetrySettings for createAccessPolicy:
160+
*
161+
* <pre>{@code
162+
* // This snippet has been automatically generated and should be regarded as a code template only.
163+
* // It will require modifications to work:
164+
* // - It may require correct/in-range values for request initialization.
165+
* // - It may require specifying regional endpoints when creating the service client as shown in
166+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
167+
* AccessContextManagerStubSettings.Builder accessContextManagerSettingsBuilder =
168+
* AccessContextManagerStubSettings.newBuilder();
169+
* TimedRetryAlgorithm timedRetryAlgorithm =
170+
* OperationalTimedPollAlgorithm.create(
171+
* RetrySettings.newBuilder()
172+
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
173+
* .setRetryDelayMultiplier(1.5)
174+
* .setMaxRetryDelay(Duration.ofMillis(5000))
175+
* .setTotalTimeoutDuration(Duration.ofHours(24))
176+
* .build());
177+
* accessContextManagerSettingsBuilder
178+
* .createClusterOperationSettings()
179+
* .setPollingAlgorithm(timedRetryAlgorithm)
180+
* .build();
181+
* }</pre>
143182
*/
144183
@Generated("by gapic-generator-java")
145184
public class AccessContextManagerStubSettings
@@ -288,9 +327,7 @@ public String extractNextToken(ListAccessPoliciesResponse payload) {
288327

289328
@Override
290329
public Iterable<AccessPolicy> extractResources(ListAccessPoliciesResponse payload) {
291-
return payload.getAccessPoliciesList() == null
292-
? ImmutableList.<AccessPolicy>of()
293-
: payload.getAccessPoliciesList();
330+
return payload.getAccessPoliciesList();
294331
}
295332
};
296333

@@ -328,9 +365,7 @@ public String extractNextToken(ListAccessLevelsResponse payload) {
328365

329366
@Override
330367
public Iterable<AccessLevel> extractResources(ListAccessLevelsResponse payload) {
331-
return payload.getAccessLevelsList() == null
332-
? ImmutableList.<AccessLevel>of()
333-
: payload.getAccessLevelsList();
368+
return payload.getAccessLevelsList();
334369
}
335370
};
336371

@@ -369,9 +404,7 @@ public String extractNextToken(ListServicePerimetersResponse payload) {
369404
@Override
370405
public Iterable<ServicePerimeter> extractResources(
371406
ListServicePerimetersResponse payload) {
372-
return payload.getServicePerimetersList() == null
373-
? ImmutableList.<ServicePerimeter>of()
374-
: payload.getServicePerimetersList();
407+
return payload.getServicePerimetersList();
375408
}
376409
};
377410

@@ -416,9 +449,7 @@ public String extractNextToken(ListGcpUserAccessBindingsResponse payload) {
416449
@Override
417450
public Iterable<GcpUserAccessBinding> extractResources(
418451
ListGcpUserAccessBindingsResponse payload) {
419-
return payload.getGcpUserAccessBindingsList() == null
420-
? ImmutableList.<GcpUserAccessBinding>of()
421-
: payload.getGcpUserAccessBindingsList();
452+
return payload.getGcpUserAccessBindingsList();
422453
}
423454
};
424455

0 commit comments

Comments
 (0)