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

Commit 09e59c1

Browse files
chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 (#881)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 446250659 Source-Link: googleapis/googleapis@dc4ef31 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 docs: Add documentation for latest models to RecognitionConfig PiperOrigin-RevId: 446200223 Source-Link: googleapis/googleapis@4f586ea Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ffe3d9fdff3cc55da70a56a8c643587e16e2fe8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZmZTNkOWZkZmYzY2M1NWRhNzBhNTZhOGM2NDM1ODdlMTZlMmZlOCJ9
1 parent 45f8d0f commit 09e59c1

File tree

60 files changed

+801
-352
lines changed

Some content is hidden

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

60 files changed

+801
-352
lines changed

google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,6 +38,8 @@
3838
* calls that map to API methods. Sample code to get started:
3939
*
4040
*
{@code
41+
* // This snippet has been automatically generated for illustrative purposes only.
42+
* // It may require modifications to work in your environment.
4143
* try (SpeechClient speechClient = SpeechClient.create()) {
4244
* RecognitionConfig config = RecognitionConfig.newBuilder().build();
4345
* RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -74,6 +76,8 @@
7476
*

To customize credentials:

7577
*
7678
*
{@code
79+
* // This snippet has been automatically generated for illustrative purposes only.
80+
* // It may require modifications to work in your environment.
7781
* SpeechSettings speechSettings =
7882
* SpeechSettings.newBuilder()
7983
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -84,6 +88,8 @@
8488
*

To customize the endpoint:

8589
*
8690
*
{@code
91+
* // This snippet has been automatically generated for illustrative purposes only.
92+
* // It may require modifications to work in your environment.
8793
* SpeechSettings speechSettings = SpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
8894
* SpeechClient speechClient = SpeechClient.create(speechSettings);
8995
* }
@@ -160,6 +166,8 @@ public final OperationsClient getOperationsClient() {
160166
*

Sample code:

161167
*
162168
*
{@code
169+
* // This snippet has been automatically generated for illustrative purposes only.
170+
* // It may require modifications to work in your environment.
163171
* try (SpeechClient speechClient = SpeechClient.create()) {
164172
* RecognitionConfig config = RecognitionConfig.newBuilder().build();
165173
* RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -186,6 +194,8 @@ public final RecognizeResponse recognize(RecognitionConfig config, RecognitionAu
186194
*

Sample code:

187195
*
188196
*
{@code
197+
* // This snippet has been automatically generated for illustrative purposes only.
198+
* // It may require modifications to work in your environment.
189199
* try (SpeechClient speechClient = SpeechClient.create()) {
190200
* RecognizeRequest request =
191201
* RecognizeRequest.newBuilder()
@@ -211,6 +221,8 @@ public final RecognizeResponse recognize(RecognizeRequest request) {
211221
*

Sample code:

212222
*
213223
*
{@code
224+
* // This snippet has been automatically generated for illustrative purposes only.
225+
* // It may require modifications to work in your environment.
214226
* try (SpeechClient speechClient = SpeechClient.create()) {
215227
* RecognizeRequest request =
216228
* RecognizeRequest.newBuilder()
@@ -237,6 +249,8 @@ public final UnaryCallable recognizeCallabl
237249
*

Sample code:

238250
*
239251
*
{@code
252+
* // This snippet has been automatically generated for illustrative purposes only.
253+
* // It may require modifications to work in your environment.
240254
* try (SpeechClient speechClient = SpeechClient.create()) {
241255
* RecognitionConfig config = RecognitionConfig.newBuilder().build();
242256
* RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -267,6 +281,8 @@ public final UnaryCallable recognizeCallabl
267281
*

Sample code:

268282
*
269283
*
{@code
284+
* // This snippet has been automatically generated for illustrative purposes only.
285+
* // It may require modifications to work in your environment.
270286
* try (SpeechClient speechClient = SpeechClient.create()) {
271287
* LongRunningRecognizeRequest request =
272288
* LongRunningRecognizeRequest.newBuilder()
@@ -296,6 +312,8 @@ public final UnaryCallable recognizeCallabl
296312
*

Sample code:

297313
*
298314
*
{@code
315+
* // This snippet has been automatically generated for illustrative purposes only.
316+
* // It may require modifications to work in your environment.
299317
* try (SpeechClient speechClient = SpeechClient.create()) {
300318
* LongRunningRecognizeRequest request =
301319
* LongRunningRecognizeRequest.newBuilder()
@@ -326,6 +344,8 @@ public final UnaryCallable recognizeCallabl
326344
*

Sample code:

327345
*
328346
*
{@code
347+
* // This snippet has been automatically generated for illustrative purposes only.
348+
* // It may require modifications to work in your environment.
329349
* try (SpeechClient speechClient = SpeechClient.create()) {
330350
* LongRunningRecognizeRequest request =
331351
* LongRunningRecognizeRequest.newBuilder()
@@ -352,6 +372,8 @@ public final UnaryCallable recognizeCallabl
352372
*

Sample code:

353373
*
354374
*
{@code
375+
* // This snippet has been automatically generated for illustrative purposes only.
376+
* // It may require modifications to work in your environment.
355377
* try (SpeechClient speechClient = SpeechClient.create()) {
356378
* BidiStream bidiStream =
357379
* speechClient.streamingRecognizeCallable().call();

google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,6 +52,8 @@
5252
*

For example, to set the total timeout of recognize to 30 seconds:

5353
*
5454
*
{@code
55+
* // This snippet has been automatically generated for illustrative purposes only.
56+
* // It may require modifications to work in your environment.
5557
* SpeechSettings.Builder speechSettingsBuilder = SpeechSettings.newBuilder();
5658
* speechSettingsBuilder
5759
* .recognizeSettings()

google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,6 +26,8 @@
2626
*

Sample for SpeechClient:

2727
*
2828
*
{@code
29+
* // This snippet has been automatically generated for illustrative purposes only.
30+
* // It may require modifications to work in your environment.
2931
* try (SpeechClient speechClient = SpeechClient.create()) {
3032
* RecognitionConfig config = RecognitionConfig.newBuilder().build();
3133
* RecognitionAudio audio = RecognitionAudio.newBuilder().build();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

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
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021 Google LLC
2+
* Copyright 2022 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -71,6 +71,8 @@
7171
*

For example, to set the total timeout of recognize to 30 seconds:

7272
*
7373
*
{@code
74+
* // This snippet has been automatically generated for illustrative purposes only.
75+
* // It may require modifications to work in your environment.
7476
* SpeechStubSettings.Builder speechSettingsBuilder = SpeechStubSettings.newBuilder();
7577
* speechSettingsBuilder
7678
* .recognizeSettings()

0 commit comments

Comments
 (0)