3838 * calls that map to API methods. Sample code to get started:
3939 *
4040 * <pre>{@code
41- * // This snippet has been automatically generated for illustrative purposes only.
42- * // It may require modifications to work in your environment.
41+ * // This snippet has been automatically generated and should be regarded as a code template only.
42+ * // It will require modifications to work:
43+ * // - It may require correct/in-range values for request initialization.
44+ * // - It may require specifying regional endpoints when creating the service client as shown in
45+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4346 * try (SpeechClient speechClient = SpeechClient.create()) {
4447 * RecognitionConfig config = RecognitionConfig.newBuilder().build();
4548 * RecognitionAudio audio = RecognitionAudio.newBuilder().build();
7679 * <p>To customize credentials:
7780 *
7881 * <pre>{@code
79- * // This snippet has been automatically generated for illustrative purposes only.
80- * // It may require modifications to work in your environment.
82+ * // This snippet has been automatically generated and should be regarded as a code template only.
83+ * // It will require modifications to work:
84+ * // - It may require correct/in-range values for request initialization.
85+ * // - It may require specifying regional endpoints when creating the service client as shown in
86+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8187 * SpeechSettings speechSettings =
8288 * SpeechSettings.newBuilder()
8389 * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
8894 * <p>To customize the endpoint:
8995 *
9096 * <pre>{@code
91- * // This snippet has been automatically generated for illustrative purposes only.
92- * // It may require modifications to work in your environment.
97+ * // This snippet has been automatically generated and should be regarded as a code template only.
98+ * // It will require modifications to work:
99+ * // - It may require correct/in-range values for request initialization.
100+ * // - It may require specifying regional endpoints when creating the service client as shown in
101+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
93102 * SpeechSettings speechSettings = SpeechSettings.newBuilder().setEndpoint(myEndpoint).build();
94103 * SpeechClient speechClient = SpeechClient.create(speechSettings);
95104 * }</pre>
98107 * the wire:
99108 *
100109 * <pre>{@code
101- * // This snippet has been automatically generated for illustrative purposes only.
102- * // It may require modifications to work in your environment.
110+ * // This snippet has been automatically generated and should be regarded as a code template only.
111+ * // It will require modifications to work:
112+ * // - It may require correct/in-range values for request initialization.
113+ * // - It may require specifying regional endpoints when creating the service client as shown in
114+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
103115 * SpeechSettings speechSettings =
104116 * SpeechSettings.newBuilder()
105117 * .setTransportChannelProvider(
@@ -191,8 +203,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
191203 * <p>Sample code:
192204 *
193205 * <pre>{@code
194- * // This snippet has been automatically generated for illustrative purposes only.
195- * // It may require modifications to work in your environment.
206+ * // This snippet has been automatically generated and should be regarded as a code template only.
207+ * // It will require modifications to work:
208+ * // - It may require correct/in-range values for request initialization.
209+ * // - It may require specifying regional endpoints when creating the service client as shown in
210+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
196211 * try (SpeechClient speechClient = SpeechClient.create()) {
197212 * RecognitionConfig config = RecognitionConfig.newBuilder().build();
198213 * RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -219,8 +234,11 @@ public final RecognizeResponse recognize(RecognitionConfig config, RecognitionAu
219234 * <p>Sample code:
220235 *
221236 * <pre>{@code
222- * // This snippet has been automatically generated for illustrative purposes only.
223- * // It may require modifications to work in your environment.
237+ * // This snippet has been automatically generated and should be regarded as a code template only.
238+ * // It will require modifications to work:
239+ * // - It may require correct/in-range values for request initialization.
240+ * // - It may require specifying regional endpoints when creating the service client as shown in
241+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
224242 * try (SpeechClient speechClient = SpeechClient.create()) {
225243 * RecognizeRequest request =
226244 * RecognizeRequest.newBuilder()
@@ -246,8 +264,11 @@ public final RecognizeResponse recognize(RecognizeRequest request) {
246264 * <p>Sample code:
247265 *
248266 * <pre>{@code
249- * // This snippet has been automatically generated for illustrative purposes only.
250- * // It may require modifications to work in your environment.
267+ * // This snippet has been automatically generated and should be regarded as a code template only.
268+ * // It will require modifications to work:
269+ * // - It may require correct/in-range values for request initialization.
270+ * // - It may require specifying regional endpoints when creating the service client as shown in
271+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
251272 * try (SpeechClient speechClient = SpeechClient.create()) {
252273 * RecognizeRequest request =
253274 * RecognizeRequest.newBuilder()
@@ -274,8 +295,11 @@ public final UnaryCallable<RecognizeRequest, RecognizeResponse> recognizeCallabl
274295 * <p>Sample code:
275296 *
276297 * <pre>{@code
277- * // This snippet has been automatically generated for illustrative purposes only.
278- * // It may require modifications to work in your environment.
298+ * // This snippet has been automatically generated and should be regarded as a code template only.
299+ * // It will require modifications to work:
300+ * // - It may require correct/in-range values for request initialization.
301+ * // - It may require specifying regional endpoints when creating the service client as shown in
302+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
279303 * try (SpeechClient speechClient = SpeechClient.create()) {
280304 * RecognitionConfig config = RecognitionConfig.newBuilder().build();
281305 * RecognitionAudio audio = RecognitionAudio.newBuilder().build();
@@ -306,8 +330,11 @@ public final UnaryCallable<RecognizeRequest, RecognizeResponse> recognizeCallabl
306330 * <p>Sample code:
307331 *
308332 * <pre>{@code
309- * // This snippet has been automatically generated for illustrative purposes only.
310- * // It may require modifications to work in your environment.
333+ * // This snippet has been automatically generated and should be regarded as a code template only.
334+ * // It will require modifications to work:
335+ * // - It may require correct/in-range values for request initialization.
336+ * // - It may require specifying regional endpoints when creating the service client as shown in
337+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
311338 * try (SpeechClient speechClient = SpeechClient.create()) {
312339 * LongRunningRecognizeRequest request =
313340 * LongRunningRecognizeRequest.newBuilder()
@@ -337,8 +364,11 @@ public final UnaryCallable<RecognizeRequest, RecognizeResponse> recognizeCallabl
337364 * <p>Sample code:
338365 *
339366 * <pre>{@code
340- * // This snippet has been automatically generated for illustrative purposes only.
341- * // It may require modifications to work in your environment.
367+ * // This snippet has been automatically generated and should be regarded as a code template only.
368+ * // It will require modifications to work:
369+ * // - It may require correct/in-range values for request initialization.
370+ * // - It may require specifying regional endpoints when creating the service client as shown in
371+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
342372 * try (SpeechClient speechClient = SpeechClient.create()) {
343373 * LongRunningRecognizeRequest request =
344374 * LongRunningRecognizeRequest.newBuilder()
@@ -369,8 +399,11 @@ public final UnaryCallable<RecognizeRequest, RecognizeResponse> recognizeCallabl
369399 * <p>Sample code:
370400 *
371401 * <pre>{@code
372- * // This snippet has been automatically generated for illustrative purposes only.
373- * // It may require modifications to work in your environment.
402+ * // This snippet has been automatically generated and should be regarded as a code template only.
403+ * // It will require modifications to work:
404+ * // - It may require correct/in-range values for request initialization.
405+ * // - It may require specifying regional endpoints when creating the service client as shown in
406+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
374407 * try (SpeechClient speechClient = SpeechClient.create()) {
375408 * LongRunningRecognizeRequest request =
376409 * LongRunningRecognizeRequest.newBuilder()
@@ -397,8 +430,11 @@ public final UnaryCallable<RecognizeRequest, RecognizeResponse> recognizeCallabl
397430 * <p>Sample code:
398431 *
399432 * <pre>{@code
400- * // This snippet has been automatically generated for illustrative purposes only.
401- * // It may require modifications to work in your environment.
433+ * // This snippet has been automatically generated and should be regarded as a code template only.
434+ * // It will require modifications to work:
435+ * // - It may require correct/in-range values for request initialization.
436+ * // - It may require specifying regional endpoints when creating the service client as shown in
437+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
402438 * try (SpeechClient speechClient = SpeechClient.create()) {
403439 * BidiStream<StreamingRecognizeRequest, StreamingRecognizeResponse> bidiStream =
404440 * speechClient.streamingRecognizeCallable().call();
0 commit comments