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

Commit 548860a

Browse files
feat: Add transcript normalization (#633)
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: 391603958 Source-Link: googleapis/googleapis@76bed90 PiperOrigin-RevId: 391407209 Source-Link: googleapis/googleapis@e1738ee feat!: java8 migration
1 parent fa9c6ac commit 548860a

File tree

12 files changed

+2738
-150
lines changed

12 files changed

+2738
-150
lines changed

google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ public static List<String> getDefaultServiceScopes() {
156156

157157
/** Returns a builder for the default credentials for this service. */
158158
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
159-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
159+
return GoogleCredentialsProvider.newBuilder()
160+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
161+
.setUseJwtAccessWithScope(true);
160162
}
161163

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

google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ public static List<String> getDefaultServiceScopes() {
318318

319319
/** Returns a builder for the default credentials for this service. */
320320
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
321-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
321+
return GoogleCredentialsProvider.newBuilder()
322+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
323+
.setUseJwtAccessWithScope(true);
322324
}
323325

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

google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ public static List<String> getDefaultServiceScopes() {
157157

158158
/** Returns a builder for the default credentials for this service. */
159159
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
160-
return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES);
160+
return GoogleCredentialsProvider.newBuilder()
161+
.setScopesToApply(DEFAULT_SERVICE_SCOPES)
162+
.setUseJwtAccessWithScope(true);
161163
}
162164

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

0 commit comments

Comments
 (0)