diff --git a/packages/google-cloud-language/google/cloud/language_v1/services/language_service/async_client.py b/packages/google-cloud-language/google/cloud/language_v1/services/language_service/async_client.py index cf38f87c113f..3c778545fac0 100644 --- a/packages/google-cloud-language/google/cloud/language_v1/services/language_service/async_client.py +++ b/packages/google-cloud-language/google/cloud/language_v1/services/language_service/async_client.py @@ -218,9 +218,9 @@ async def analyze_sentiment( from google.cloud import language_v1 - def sample_analyze_sentiment(): + async def sample_analyze_sentiment(): # Create a client - client = language_v1.LanguageServiceClient() + client = language_v1.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1.Document() @@ -231,7 +231,7 @@ def sample_analyze_sentiment(): ) # Make the request - response = client.analyze_sentiment(request=request) + response = await client.analyze_sentiment(request=request) # Handle the response print(response) @@ -331,9 +331,9 @@ async def analyze_entities( from google.cloud import language_v1 - def sample_analyze_entities(): + async def sample_analyze_entities(): # Create a client - client = language_v1.LanguageServiceClient() + client = language_v1.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1.Document() @@ -344,7 +344,7 @@ def sample_analyze_entities(): ) # Make the request - response = client.analyze_entities(request=request) + response = await client.analyze_entities(request=request) # Handle the response print(response) @@ -441,9 +441,9 @@ async def analyze_entity_sentiment( from google.cloud import language_v1 - def sample_analyze_entity_sentiment(): + async def sample_analyze_entity_sentiment(): # Create a client - client = language_v1.LanguageServiceClient() + client = language_v1.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1.Document() @@ -454,7 +454,7 @@ def sample_analyze_entity_sentiment(): ) # Make the request - response = client.analyze_entity_sentiment(request=request) + response = await client.analyze_entity_sentiment(request=request) # Handle the response print(response) @@ -553,9 +553,9 @@ async def analyze_syntax( from google.cloud import language_v1 - def sample_analyze_syntax(): + async def sample_analyze_syntax(): # Create a client - client = language_v1.LanguageServiceClient() + client = language_v1.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1.Document() @@ -566,7 +566,7 @@ def sample_analyze_syntax(): ) # Make the request - response = client.analyze_syntax(request=request) + response = await client.analyze_syntax(request=request) # Handle the response print(response) @@ -659,9 +659,9 @@ async def classify_text( from google.cloud import language_v1 - def sample_classify_text(): + async def sample_classify_text(): # Create a client - client = language_v1.LanguageServiceClient() + client = language_v1.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1.Document() @@ -672,7 +672,7 @@ def sample_classify_text(): ) # Make the request - response = client.classify_text(request=request) + response = await client.classify_text(request=request) # Handle the response print(response) @@ -763,9 +763,9 @@ async def annotate_text( from google.cloud import language_v1 - def sample_annotate_text(): + async def sample_annotate_text(): # Create a client - client = language_v1.LanguageServiceClient() + client = language_v1.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1.Document() @@ -776,7 +776,7 @@ def sample_annotate_text(): ) # Make the request - response = client.annotate_text(request=request) + response = await client.annotate_text(request=request) # Handle the response print(response) diff --git a/packages/google-cloud-language/google/cloud/language_v1beta2/services/language_service/async_client.py b/packages/google-cloud-language/google/cloud/language_v1beta2/services/language_service/async_client.py index abeaf9e3d8a5..52542d57536d 100644 --- a/packages/google-cloud-language/google/cloud/language_v1beta2/services/language_service/async_client.py +++ b/packages/google-cloud-language/google/cloud/language_v1beta2/services/language_service/async_client.py @@ -218,9 +218,9 @@ async def analyze_sentiment( from google.cloud import language_v1beta2 - def sample_analyze_sentiment(): + async def sample_analyze_sentiment(): # Create a client - client = language_v1beta2.LanguageServiceClient() + client = language_v1beta2.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1beta2.Document() @@ -231,7 +231,7 @@ def sample_analyze_sentiment(): ) # Make the request - response = client.analyze_sentiment(request=request) + response = await client.analyze_sentiment(request=request) # Handle the response print(response) @@ -332,9 +332,9 @@ async def analyze_entities( from google.cloud import language_v1beta2 - def sample_analyze_entities(): + async def sample_analyze_entities(): # Create a client - client = language_v1beta2.LanguageServiceClient() + client = language_v1beta2.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1beta2.Document() @@ -345,7 +345,7 @@ def sample_analyze_entities(): ) # Make the request - response = client.analyze_entities(request=request) + response = await client.analyze_entities(request=request) # Handle the response print(response) @@ -442,9 +442,9 @@ async def analyze_entity_sentiment( from google.cloud import language_v1beta2 - def sample_analyze_entity_sentiment(): + async def sample_analyze_entity_sentiment(): # Create a client - client = language_v1beta2.LanguageServiceClient() + client = language_v1beta2.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1beta2.Document() @@ -455,7 +455,7 @@ def sample_analyze_entity_sentiment(): ) # Make the request - response = client.analyze_entity_sentiment(request=request) + response = await client.analyze_entity_sentiment(request=request) # Handle the response print(response) @@ -554,9 +554,9 @@ async def analyze_syntax( from google.cloud import language_v1beta2 - def sample_analyze_syntax(): + async def sample_analyze_syntax(): # Create a client - client = language_v1beta2.LanguageServiceClient() + client = language_v1beta2.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1beta2.Document() @@ -567,7 +567,7 @@ def sample_analyze_syntax(): ) # Make the request - response = client.analyze_syntax(request=request) + response = await client.analyze_syntax(request=request) # Handle the response print(response) @@ -660,9 +660,9 @@ async def classify_text( from google.cloud import language_v1beta2 - def sample_classify_text(): + async def sample_classify_text(): # Create a client - client = language_v1beta2.LanguageServiceClient() + client = language_v1beta2.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1beta2.Document() @@ -673,7 +673,7 @@ def sample_classify_text(): ) # Make the request - response = client.classify_text(request=request) + response = await client.classify_text(request=request) # Handle the response print(response) @@ -764,9 +764,9 @@ async def annotate_text( from google.cloud import language_v1beta2 - def sample_annotate_text(): + async def sample_annotate_text(): # Create a client - client = language_v1beta2.LanguageServiceClient() + client = language_v1beta2.LanguageServiceAsyncClient() # Initialize request argument(s) document = language_v1beta2.Document() @@ -777,7 +777,7 @@ def sample_annotate_text(): ) # Make the request - response = client.annotate_text(request=request) + response = await client.annotate_text(request=request) # Handle the response print(response) diff --git a/packages/google-cloud-language/language-v1beta2-py.tar.gz b/packages/google-cloud-language/language-v1beta2-py.tar.gz new file mode 100644 index 000000000000..e69de29bb2d1