diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/adaptation/async_client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/adaptation/async_client.py index 3ee2316dbe4a..dd95e360970a 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/adaptation/async_client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/adaptation/async_client.py @@ -218,6 +218,13 @@ async def create_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_create_phrase_set(): @@ -347,6 +354,13 @@ async def get_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_get_phrase_set(): @@ -453,6 +467,13 @@ async def list_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_list_phrase_set(): @@ -572,6 +593,13 @@ async def update_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_update_phrase_set(): @@ -688,6 +716,13 @@ async def delete_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_delete_phrase_set(): @@ -774,6 +809,13 @@ async def create_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_create_custom_class(): @@ -907,6 +949,13 @@ async def get_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_get_custom_class(): @@ -1009,6 +1058,13 @@ async def list_custom_classes( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_list_custom_classes(): @@ -1128,6 +1184,13 @@ async def update_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_update_custom_class(): @@ -1248,6 +1311,13 @@ async def delete_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_delete_custom_class(): diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/adaptation/client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/adaptation/client.py index 6259c4a0dc50..93edbcf3d000 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/adaptation/client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/adaptation/client.py @@ -467,6 +467,13 @@ def create_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_create_phrase_set(): @@ -596,6 +603,13 @@ def get_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_get_phrase_set(): @@ -702,6 +716,13 @@ def list_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_list_phrase_set(): @@ -821,6 +842,13 @@ def update_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_update_phrase_set(): @@ -937,6 +965,13 @@ def delete_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_delete_phrase_set(): @@ -1023,6 +1058,13 @@ def create_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_create_custom_class(): @@ -1156,6 +1198,13 @@ def get_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_get_custom_class(): @@ -1258,6 +1307,13 @@ def list_custom_classes( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_list_custom_classes(): @@ -1377,6 +1433,13 @@ def update_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_update_custom_class(): @@ -1497,6 +1560,13 @@ def delete_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_delete_custom_class(): diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/async_client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/async_client.py index 542000fb2737..8acf92469fdd 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/async_client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/async_client.py @@ -223,6 +223,13 @@ async def recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_recognize(): @@ -346,6 +353,13 @@ async def long_running_recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_long_running_recognize(): @@ -471,6 +485,13 @@ def streaming_recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 async def sample_streaming_recognize(): diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/client.py index f38e2083bc21..5fea47b06920 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1/services/speech/client.py @@ -475,6 +475,13 @@ def recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_recognize(): @@ -588,6 +595,13 @@ def long_running_recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_long_running_recognize(): @@ -713,6 +727,13 @@ def streaming_recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 def sample_streaming_recognize(): diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/adaptation/async_client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/adaptation/async_client.py index b5209cbd1301..ecbc2a1dfccd 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/adaptation/async_client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/adaptation/async_client.py @@ -218,6 +218,13 @@ async def create_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_create_phrase_set(): @@ -347,6 +354,13 @@ async def get_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_get_phrase_set(): @@ -453,6 +467,13 @@ async def list_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_list_phrase_set(): @@ -572,6 +593,13 @@ async def update_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_update_phrase_set(): @@ -688,6 +716,13 @@ async def delete_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_delete_phrase_set(): @@ -774,6 +809,13 @@ async def create_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_create_custom_class(): @@ -907,6 +949,13 @@ async def get_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_get_custom_class(): @@ -1009,6 +1058,13 @@ async def list_custom_classes( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_list_custom_classes(): @@ -1128,6 +1184,13 @@ async def update_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_update_custom_class(): @@ -1248,6 +1311,13 @@ async def delete_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_delete_custom_class(): diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/adaptation/client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/adaptation/client.py index 6fa54afa994e..cc96dd2ad583 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/adaptation/client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/adaptation/client.py @@ -467,6 +467,13 @@ def create_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_create_phrase_set(): @@ -596,6 +603,13 @@ def get_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_get_phrase_set(): @@ -702,6 +716,13 @@ def list_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_list_phrase_set(): @@ -821,6 +842,13 @@ def update_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_update_phrase_set(): @@ -937,6 +965,13 @@ def delete_phrase_set( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_delete_phrase_set(): @@ -1023,6 +1058,13 @@ def create_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_create_custom_class(): @@ -1156,6 +1198,13 @@ def get_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_get_custom_class(): @@ -1258,6 +1307,13 @@ def list_custom_classes( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_list_custom_classes(): @@ -1377,6 +1433,13 @@ def update_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_update_custom_class(): @@ -1497,6 +1560,13 @@ def delete_custom_class( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_delete_custom_class(): diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/async_client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/async_client.py index 31f2a7803a11..47e99dfa2bd4 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/async_client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/async_client.py @@ -223,6 +223,13 @@ async def recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_recognize(): @@ -346,6 +353,13 @@ async def long_running_recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_long_running_recognize(): @@ -471,6 +485,13 @@ def streaming_recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 async def sample_streaming_recognize(): diff --git a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/client.py b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/client.py index ef4c3c2177a9..e24f61ae2544 100644 --- a/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/client.py +++ b/packages/google-cloud-python-speech/google/cloud/speech_v1p1beta1/services/speech/client.py @@ -475,6 +475,13 @@ def recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_recognize(): @@ -588,6 +595,13 @@ def long_running_recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_long_running_recognize(): @@ -713,6 +727,13 @@ def streaming_recognize( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 def sample_streaming_recognize(): diff --git a/packages/google-cloud-python-speech/mypy.ini b/packages/google-cloud-python-speech/mypy.ini index 4505b485436b..574c5aed394b 100644 --- a/packages/google-cloud-python-speech/mypy.ini +++ b/packages/google-cloud-python-speech/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.6 +python_version = 3.7 namespace_packages = True diff --git a/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1.json b/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1.json index f1d0a48495ab..fef347d79dea 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1.json +++ b/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1.json @@ -67,33 +67,33 @@ "regionTag": "speech_v1_generated_Adaptation_CreateCustomClass_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -155,33 +155,33 @@ "regionTag": "speech_v1_generated_Adaptation_CreateCustomClass_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -244,33 +244,33 @@ "regionTag": "speech_v1_generated_Adaptation_CreatePhraseSet_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -332,33 +332,33 @@ "regionTag": "speech_v1_generated_Adaptation_CreatePhraseSet_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -412,31 +412,31 @@ "regionTag": "speech_v1_generated_Adaptation_DeleteCustomClass_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -489,31 +489,31 @@ "regionTag": "speech_v1_generated_Adaptation_DeleteCustomClass_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -567,31 +567,31 @@ "regionTag": "speech_v1_generated_Adaptation_DeletePhraseSet_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -644,31 +644,31 @@ "regionTag": "speech_v1_generated_Adaptation_DeletePhraseSet_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -723,33 +723,33 @@ "regionTag": "speech_v1_generated_Adaptation_GetCustomClass_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -803,33 +803,33 @@ "regionTag": "speech_v1_generated_Adaptation_GetCustomClass_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -884,33 +884,33 @@ "regionTag": "speech_v1_generated_Adaptation_GetPhraseSet_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -964,33 +964,33 @@ "regionTag": "speech_v1_generated_Adaptation_GetPhraseSet_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1045,33 +1045,33 @@ "regionTag": "speech_v1_generated_Adaptation_ListCustomClasses_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1125,33 +1125,33 @@ "regionTag": "speech_v1_generated_Adaptation_ListCustomClasses_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1206,33 +1206,33 @@ "regionTag": "speech_v1_generated_Adaptation_ListPhraseSet_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1286,33 +1286,33 @@ "regionTag": "speech_v1_generated_Adaptation_ListPhraseSet_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1371,33 +1371,33 @@ "regionTag": "speech_v1_generated_Adaptation_UpdateCustomClass_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -1455,33 +1455,33 @@ "regionTag": "speech_v1_generated_Adaptation_UpdateCustomClass_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -1540,33 +1540,33 @@ "regionTag": "speech_v1_generated_Adaptation_UpdatePhraseSet_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -1624,33 +1624,33 @@ "regionTag": "speech_v1_generated_Adaptation_UpdatePhraseSet_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -1709,33 +1709,33 @@ "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_async", "segments": [ { - "end": 55, + "end": 62, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 62, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 45, - "start": 34, + "end": 52, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 52, - "start": 46, + "end": 59, + "start": 53, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 63, + "start": 60, "type": "RESPONSE_HANDLING" } ], @@ -1793,33 +1793,33 @@ "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_sync", "segments": [ { - "end": 55, + "end": 62, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 62, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 45, - "start": 34, + "end": 52, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 52, - "start": 46, + "end": 59, + "start": 53, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 63, + "start": 60, "type": "RESPONSE_HANDLING" } ], @@ -1878,33 +1878,33 @@ "regionTag": "speech_v1_generated_Speech_Recognize_async", "segments": [ { - "end": 51, + "end": 58, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 58, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 45, - "start": 34, + "end": 52, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 55, + "start": 53, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 59, + "start": 56, "type": "RESPONSE_HANDLING" } ], @@ -1962,33 +1962,33 @@ "regionTag": "speech_v1_generated_Speech_Recognize_sync", "segments": [ { - "end": 51, + "end": 58, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 58, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 45, - "start": 34, + "end": 52, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 55, + "start": 53, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 59, + "start": 56, "type": "RESPONSE_HANDLING" } ], @@ -2039,33 +2039,33 @@ "regionTag": "speech_v1_generated_Speech_StreamingRecognize_async", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 51, - "start": 34, + "end": 58, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 54, - "start": 52, + "end": 61, + "start": 59, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 55, + "end": 66, + "start": 62, "type": "RESPONSE_HANDLING" } ], @@ -2115,33 +2115,33 @@ "regionTag": "speech_v1_generated_Speech_StreamingRecognize_sync", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 51, - "start": 34, + "end": 58, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 54, - "start": 52, + "end": 61, + "start": 59, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 55, + "end": 66, + "start": 62, "type": "RESPONSE_HANDLING" } ], diff --git a/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1p1beta1.json b/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1p1beta1.json index e3efb2c67d61..4d8a8b90c001 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1p1beta1.json +++ b/packages/google-cloud-python-speech/samples/generated_samples/snippet_metadata_speech_v1p1beta1.json @@ -67,33 +67,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -155,33 +155,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -244,33 +244,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -332,33 +332,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -412,31 +412,31 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -489,31 +489,31 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -567,31 +567,31 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -644,31 +644,31 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -723,33 +723,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -803,33 +803,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -884,33 +884,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -964,33 +964,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1045,33 +1045,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1125,33 +1125,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1206,33 +1206,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1286,33 +1286,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1371,33 +1371,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -1455,33 +1455,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -1540,33 +1540,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -1624,33 +1624,33 @@ "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -1709,33 +1709,33 @@ "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_async", "segments": [ { - "end": 55, + "end": 62, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 62, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 45, - "start": 34, + "end": 52, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 52, - "start": 46, + "end": 59, + "start": 53, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 63, + "start": 60, "type": "RESPONSE_HANDLING" } ], @@ -1793,33 +1793,33 @@ "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_sync", "segments": [ { - "end": 55, + "end": 62, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 62, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 45, - "start": 34, + "end": 52, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 52, - "start": 46, + "end": 59, + "start": 53, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 63, + "start": 60, "type": "RESPONSE_HANDLING" } ], @@ -1878,33 +1878,33 @@ "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_async", "segments": [ { - "end": 51, + "end": 58, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 58, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 45, - "start": 34, + "end": 52, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 55, + "start": 53, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 59, + "start": 56, "type": "RESPONSE_HANDLING" } ], @@ -1962,33 +1962,33 @@ "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_sync", "segments": [ { - "end": 51, + "end": 58, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 58, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 45, - "start": 34, + "end": 52, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 48, - "start": 46, + "end": 55, + "start": 53, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 59, + "start": 56, "type": "RESPONSE_HANDLING" } ], @@ -2039,33 +2039,33 @@ "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_async", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 51, - "start": 34, + "end": 58, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 54, - "start": 52, + "end": 61, + "start": 59, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 55, + "end": 66, + "start": 62, "type": "RESPONSE_HANDLING" } ], @@ -2115,33 +2115,33 @@ "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_sync", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 51, - "start": 34, + "end": 58, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 54, - "start": 52, + "end": 61, + "start": 59, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 55, + "end": 66, + "start": 62, "type": "RESPONSE_HANDLING" } ], diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_custom_class_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_custom_class_async.py index bcd4a7465f98..d8b70b32bcff 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_custom_class_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_custom_class_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_CreateCustomClass_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_custom_class_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_custom_class_sync.py index 25de6266d0fe..9add696c4dba 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_custom_class_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_custom_class_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_CreateCustomClass_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_phrase_set_async.py index df793036cf7b..aa931e4b3a71 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_CreatePhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_phrase_set_sync.py index b09632c19149..46e78bb84b65 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_create_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_CreatePhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_custom_class_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_custom_class_async.py index 09e15814fb7f..6b1815734627 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_custom_class_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_custom_class_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_DeleteCustomClass_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_custom_class_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_custom_class_sync.py index 811d1087eea4..fe82260db4a7 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_custom_class_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_custom_class_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_DeleteCustomClass_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_phrase_set_async.py index c89ecaf3c8a8..9550d320ed76 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_DeletePhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_phrase_set_sync.py index f510b7800fe7..9138283864e9 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_delete_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_DeletePhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_custom_class_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_custom_class_async.py index 0307b77f0e84..ec8c56cda816 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_custom_class_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_custom_class_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_GetCustomClass_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_custom_class_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_custom_class_sync.py index 93db88968ed3..e04ec4a3665c 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_custom_class_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_custom_class_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_GetCustomClass_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_phrase_set_async.py index cfd9966c91d5..2bcdcbf1f45d 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_GetPhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_phrase_set_sync.py index dd9316546e76..55d63924fd35 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_get_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_GetPhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_custom_classes_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_custom_classes_async.py index dd7afda5567a..57863ba3c50c 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_custom_classes_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_custom_classes_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_ListCustomClasses_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_custom_classes_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_custom_classes_sync.py index 422c7bc79d5e..59e1689c1d74 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_custom_classes_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_custom_classes_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_ListCustomClasses_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_phrase_set_async.py index 6bc6e66c2870..0be3aeaf4bc9 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_ListPhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_phrase_set_sync.py index eb1207004f33..62cc04f6182a 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_list_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_ListPhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_custom_class_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_custom_class_async.py index eb8d899dd173..86a595ac16e4 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_custom_class_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_custom_class_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_UpdateCustomClass_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_custom_class_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_custom_class_sync.py index 3024bf42834c..76bda1c0ee3e 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_custom_class_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_custom_class_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_UpdateCustomClass_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_phrase_set_async.py index 77fe8b84005e..564931af553e 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_UpdatePhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_phrase_set_sync.py index 04418ecb34a4..9fe3398828a6 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_adaptation_update_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Adaptation_UpdatePhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_long_running_recognize_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_long_running_recognize_async.py index 223b085455b9..98af31d837b9 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_long_running_recognize_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_long_running_recognize_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Speech_LongRunningRecognize_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_long_running_recognize_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_long_running_recognize_sync.py index 6fc5d6a93d6a..4ab3582dac40 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_long_running_recognize_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_long_running_recognize_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Speech_LongRunningRecognize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_recognize_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_recognize_async.py index 4cc7e270d0ad..bcc383b39f12 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_recognize_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_recognize_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Speech_Recognize_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_recognize_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_recognize_sync.py index 3a12ac12da64..fcb28d474239 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_recognize_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_recognize_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Speech_Recognize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_streaming_recognize_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_streaming_recognize_async.py index 094b3fb567ac..7e42c887ef8c 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_streaming_recognize_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_streaming_recognize_async.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Speech_StreamingRecognize_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_streaming_recognize_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_streaming_recognize_sync.py index a33e468f3325..7ef9841c3ef5 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_streaming_recognize_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1_generated_speech_streaming_recognize_sync.py @@ -24,6 +24,13 @@ # [START speech_v1_generated_Speech_StreamingRecognize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_custom_class_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_custom_class_async.py index c35ca34b12a9..f25ba8e67787 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_custom_class_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_custom_class_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_custom_class_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_custom_class_sync.py index 464c568bdb55..dbe8abf2de17 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_custom_class_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_custom_class_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_CreateCustomClass_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_phrase_set_async.py index 2533f58275a3..2faaa6ebd0ae 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_phrase_set_sync.py index 28d7c09569e3..28c527548b97 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_create_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_custom_class_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_custom_class_async.py index b7cfaf2d020a..7bba517ad717 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_custom_class_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_custom_class_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_custom_class_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_custom_class_sync.py index 44bba044fc5c..c58147d3b432 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_custom_class_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_custom_class_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_phrase_set_async.py index 4951a6b6ba70..0b0b23ac13cb 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_phrase_set_sync.py index 3340d9f12024..ccf47ada4bb2 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_delete_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_custom_class_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_custom_class_async.py index d1016dd4ce52..09882527915f 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_custom_class_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_custom_class_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_GetCustomClass_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_custom_class_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_custom_class_sync.py index b5e94a262b42..c75b59b07125 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_custom_class_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_custom_class_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_GetCustomClass_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_phrase_set_async.py index dd999bc9b4be..095c79956f91 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_phrase_set_sync.py index 09e4c1251a77..274c1b142941 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_get_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_GetPhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_custom_classes_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_custom_classes_async.py index a34f77b1a5bb..0c332193d016 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_custom_classes_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_custom_classes_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_custom_classes_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_custom_classes_sync.py index 4f1ff01fe869..2249bcf26ac7 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_custom_classes_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_custom_classes_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_ListCustomClasses_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_phrase_set_async.py index f7fc80a03be4..4b2e06b079cb 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_phrase_set_sync.py index e8fa851a8a67..28001359bb92 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_list_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_ListPhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_custom_class_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_custom_class_async.py index 67d2aeb26b16..42e68d4091ec 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_custom_class_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_custom_class_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_custom_class_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_custom_class_sync.py index 20f2caa3c0a2..823b8b069da3 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_custom_class_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_custom_class_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_phrase_set_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_phrase_set_async.py index 4f0f3605a931..f7550d1db966 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_phrase_set_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_phrase_set_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_phrase_set_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_phrase_set_sync.py index 66908df49870..dcd673284ec4 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_phrase_set_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_adaptation_update_phrase_set_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_long_running_recognize_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_long_running_recognize_async.py index 7f22e235196b..cd291d9eff05 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_long_running_recognize_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_long_running_recognize_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Speech_LongRunningRecognize_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_long_running_recognize_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_long_running_recognize_sync.py index e20884a49518..9cb4eedbd939 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_long_running_recognize_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_long_running_recognize_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Speech_LongRunningRecognize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_recognize_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_recognize_async.py index a21579e7a51d..68cce8f75074 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_recognize_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_recognize_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Speech_Recognize_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_recognize_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_recognize_sync.py index 18eb0020d5eb..ffc173493f0a 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_recognize_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_recognize_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Speech_Recognize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_streaming_recognize_async.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_streaming_recognize_async.py index 9ad96c5f5fd0..3f318c4de5ce 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_streaming_recognize_async.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_streaming_recognize_async.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Speech_StreamingRecognize_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1 diff --git a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_streaming_recognize_sync.py b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_streaming_recognize_sync.py index ffd2a08454cb..1633617e4417 100644 --- a/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_streaming_recognize_sync.py +++ b/packages/google-cloud-python-speech/samples/generated_samples/speech_v1p1beta1_generated_speech_streaming_recognize_sync.py @@ -24,6 +24,13 @@ # [START speech_v1p1beta1_generated_Speech_StreamingRecognize_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import speech_v1p1beta1