Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.2 (#366)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.2

PiperOrigin-RevId: 444333013

Source-Link: googleapis/googleapis@f91b6cf

Source-Link: googleapis/googleapis-gen@16eb360
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 28, 2022
1 parent 05b3c88 commit 64f5beb
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ async def recognize(
from google.cloud import speech_v1
def sample_recognize():
async def sample_recognize():
# Create a client
client = speech_v1.SpeechClient()
client = speech_v1.SpeechAsyncClient()
# Initialize request argument(s)
config = speech_v1.RecognitionConfig()
Expand All @@ -242,7 +242,7 @@ def sample_recognize():
)
# Make the request
response = client.recognize(request=request)
response = await client.recognize(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -348,9 +348,9 @@ async def long_running_recognize(
from google.cloud import speech_v1
def sample_long_running_recognize():
async def sample_long_running_recognize():
# Create a client
client = speech_v1.SpeechClient()
client = speech_v1.SpeechAsyncClient()
# Initialize request argument(s)
config = speech_v1.RecognitionConfig()
Expand All @@ -369,7 +369,7 @@ def sample_long_running_recognize():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -473,9 +473,9 @@ def streaming_recognize(
from google.cloud import speech_v1
def sample_streaming_recognize():
async def sample_streaming_recognize():
# Create a client
client = speech_v1.SpeechClient()
client = speech_v1.SpeechAsyncClient()
# Initialize request argument(s)
streaming_config = speech_v1.StreamingRecognitionConfig()
Expand All @@ -496,10 +496,10 @@ def request_generator():
yield request
# Make the request
stream = client.streaming_recognize(requests=request_generator())
stream = await client.streaming_recognize(requests=request_generator())
# Handle the response
for response in stream:
async for response in stream:
print(response)
Args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ async def create_phrase_set(
from google.cloud import speech_v1p1beta1
def sample_create_phrase_set():
async def sample_create_phrase_set():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.CreatePhraseSetRequest(
Expand All @@ -231,7 +231,7 @@ def sample_create_phrase_set():
)
# Make the request
response = client.create_phrase_set(request=request)
response = await client.create_phrase_set(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -347,17 +347,17 @@ async def get_phrase_set(
from google.cloud import speech_v1p1beta1
def sample_get_phrase_set():
async def sample_get_phrase_set():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.GetPhraseSetRequest(
name="name_value",
)
# Make the request
response = client.get_phrase_set(request=request)
response = await client.get_phrase_set(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -453,9 +453,9 @@ async def list_phrase_set(
from google.cloud import speech_v1p1beta1
def sample_list_phrase_set():
async def sample_list_phrase_set():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.ListPhraseSetRequest(
Expand All @@ -466,7 +466,7 @@ def sample_list_phrase_set():
page_result = client.list_phrase_set(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -572,16 +572,16 @@ async def update_phrase_set(
from google.cloud import speech_v1p1beta1
def sample_update_phrase_set():
async def sample_update_phrase_set():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.UpdatePhraseSetRequest(
)
# Make the request
response = client.update_phrase_set(request=request)
response = await client.update_phrase_set(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -688,17 +688,17 @@ async def delete_phrase_set(
from google.cloud import speech_v1p1beta1
def sample_delete_phrase_set():
async def sample_delete_phrase_set():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.DeletePhraseSetRequest(
name="name_value",
)
# Make the request
client.delete_phrase_set(request=request)
await client.delete_phrase_set(request=request)
Args:
request (Union[google.cloud.speech_v1p1beta1.types.DeletePhraseSetRequest, dict]):
Expand Down Expand Up @@ -774,9 +774,9 @@ async def create_custom_class(
from google.cloud import speech_v1p1beta1
def sample_create_custom_class():
async def sample_create_custom_class():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.CreateCustomClassRequest(
Expand All @@ -785,7 +785,7 @@ def sample_create_custom_class():
)
# Make the request
response = client.create_custom_class(request=request)
response = await client.create_custom_class(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -905,17 +905,17 @@ async def get_custom_class(
from google.cloud import speech_v1p1beta1
def sample_get_custom_class():
async def sample_get_custom_class():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.GetCustomClassRequest(
name="name_value",
)
# Make the request
response = client.get_custom_class(request=request)
response = await client.get_custom_class(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1007,9 +1007,9 @@ async def list_custom_classes(
from google.cloud import speech_v1p1beta1
def sample_list_custom_classes():
async def sample_list_custom_classes():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.ListCustomClassesRequest(
Expand All @@ -1020,7 +1020,7 @@ def sample_list_custom_classes():
page_result = client.list_custom_classes(request=request)
# Handle the response
for response in page_result:
async for response in page_result:
print(response)
Args:
Expand Down Expand Up @@ -1126,16 +1126,16 @@ async def update_custom_class(
from google.cloud import speech_v1p1beta1
def sample_update_custom_class():
async def sample_update_custom_class():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.UpdateCustomClassRequest(
)
# Make the request
response = client.update_custom_class(request=request)
response = await client.update_custom_class(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -1246,17 +1246,17 @@ async def delete_custom_class(
from google.cloud import speech_v1p1beta1
def sample_delete_custom_class():
async def sample_delete_custom_class():
# Create a client
client = speech_v1p1beta1.AdaptationClient()
client = speech_v1p1beta1.AdaptationAsyncClient()
# Initialize request argument(s)
request = speech_v1p1beta1.DeleteCustomClassRequest(
name="name_value",
)
# Make the request
client.delete_custom_class(request=request)
await client.delete_custom_class(request=request)
Args:
request (Union[google.cloud.speech_v1p1beta1.types.DeleteCustomClassRequest, dict]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ async def recognize(
from google.cloud import speech_v1p1beta1
def sample_recognize():
async def sample_recognize():
# Create a client
client = speech_v1p1beta1.SpeechClient()
client = speech_v1p1beta1.SpeechAsyncClient()
# Initialize request argument(s)
config = speech_v1p1beta1.RecognitionConfig()
Expand All @@ -242,7 +242,7 @@ def sample_recognize():
)
# Make the request
response = client.recognize(request=request)
response = await client.recognize(request=request)
# Handle the response
print(response)
Expand Down Expand Up @@ -348,9 +348,9 @@ async def long_running_recognize(
from google.cloud import speech_v1p1beta1
def sample_long_running_recognize():
async def sample_long_running_recognize():
# Create a client
client = speech_v1p1beta1.SpeechClient()
client = speech_v1p1beta1.SpeechAsyncClient()
# Initialize request argument(s)
config = speech_v1p1beta1.RecognitionConfig()
Expand All @@ -369,7 +369,7 @@ def sample_long_running_recognize():
print("Waiting for operation to complete...")
response = operation.result()
response = await operation.result()
# Handle the response
print(response)
Expand Down Expand Up @@ -473,9 +473,9 @@ def streaming_recognize(
from google.cloud import speech_v1p1beta1
def sample_streaming_recognize():
async def sample_streaming_recognize():
# Create a client
client = speech_v1p1beta1.SpeechClient()
client = speech_v1p1beta1.SpeechAsyncClient()
# Initialize request argument(s)
streaming_config = speech_v1p1beta1.StreamingRecognitionConfig()
Expand All @@ -496,10 +496,10 @@ def request_generator():
yield request
# Make the request
stream = client.streaming_recognize(requests=request_generator())
stream = await client.streaming_recognize(requests=request_generator())
# Handle the response
for response in stream:
async for response in stream:
print(response)
Args:
Expand Down
Loading

0 comments on commit 64f5beb

Please sign in to comment.