Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 14bbd43

Browse files
chore: update gapic-generator-java version to 2.1.0 (#499)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/93e35f18-d7eb-43c5-9c14-7d89d6214a02/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 391407209 Source-Link: googleapis/googleapis@e1738ee
1 parent 763c06a commit 14bbd43

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ public static List<String> getDefaultServiceScopes() {
353353

354354
/** Returns a builder for the default credentials for this service. */
355355
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
356-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
356+
return GoogleCredentialsProvider.newBuilder()
357+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
358+
.setUseJwtAccessWithScope(true);
357359
}
358360

359361
/** Returns a builder for the default ChannelProvider for this service. */

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ public static List<String> getDefaultServiceScopes() {
383383

384384
/** Returns a builder for the default credentials for this service. */
385385
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
386-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
386+
return GoogleCredentialsProvider.newBuilder()
387+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
388+
.setUseJwtAccessWithScope(true);
387389
}
388390

389391
/** Returns a builder for the default ChannelProvider for this service. */

google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ public static List<String> getDefaultServiceScopes() {
354354

355355
/** Returns a builder for the default credentials for this service. */
356356
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
357-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
357+
return GoogleCredentialsProvider.newBuilder()
358+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
359+
.setUseJwtAccessWithScope(true);
358360
}
359361

360362
/** Returns a builder for the default ChannelProvider for this service. */

synth.metadata

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "a739464cacb3aa6d375683aefe16b79c21da1bb0",
15-
"internalRef": "389657692"
14+
"sha": "e1738ee972b49fd0c4d4718b035444495142b781",
15+
"internalRef": "391407209"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)