Skip to content

Commit f02e450

Browse files
chore: use gapic-generator-python 0.65.2 (#352)
* 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> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent bda5ca7 commit f02e450

File tree

11 files changed

+443
-443
lines changed

11 files changed

+443
-443
lines changed

packages/google-cloud-vision/google/cloud/vision_v1/services/image_annotator/async_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,16 @@ async def batch_annotate_images(
225225
226226
from google.cloud import vision_v1
227227
228-
def sample_batch_annotate_images():
228+
async def sample_batch_annotate_images():
229229
# Create a client
230-
client = vision_v1.ImageAnnotatorClient()
230+
client = vision_v1.ImageAnnotatorAsyncClient()
231231
232232
# Initialize request argument(s)
233233
request = vision_v1.BatchAnnotateImagesRequest(
234234
)
235235
236236
# Make the request
237-
response = client.batch_annotate_images(request=request)
237+
response = await client.batch_annotate_images(request=request)
238238
239239
# Handle the response
240240
print(response)
@@ -330,16 +330,16 @@ async def batch_annotate_files(
330330
331331
from google.cloud import vision_v1
332332
333-
def sample_batch_annotate_files():
333+
async def sample_batch_annotate_files():
334334
# Create a client
335-
client = vision_v1.ImageAnnotatorClient()
335+
client = vision_v1.ImageAnnotatorAsyncClient()
336336
337337
# Initialize request argument(s)
338338
request = vision_v1.BatchAnnotateFilesRequest(
339339
)
340340
341341
# Make the request
342-
response = client.batch_annotate_files(request=request)
342+
response = await client.batch_annotate_files(request=request)
343343
344344
# Handle the response
345345
print(response)
@@ -440,9 +440,9 @@ async def async_batch_annotate_images(
440440
441441
from google.cloud import vision_v1
442442
443-
def sample_async_batch_annotate_images():
443+
async def sample_async_batch_annotate_images():
444444
# Create a client
445-
client = vision_v1.ImageAnnotatorClient()
445+
client = vision_v1.ImageAnnotatorAsyncClient()
446446
447447
# Initialize request argument(s)
448448
request = vision_v1.AsyncBatchAnnotateImagesRequest(
@@ -453,7 +453,7 @@ def sample_async_batch_annotate_images():
453453
454454
print("Waiting for operation to complete...")
455455
456-
response = operation.result()
456+
response = await operation.result()
457457
458458
# Handle the response
459459
print(response)
@@ -568,9 +568,9 @@ async def async_batch_annotate_files(
568568
569569
from google.cloud import vision_v1
570570
571-
def sample_async_batch_annotate_files():
571+
async def sample_async_batch_annotate_files():
572572
# Create a client
573-
client = vision_v1.ImageAnnotatorClient()
573+
client = vision_v1.ImageAnnotatorAsyncClient()
574574
575575
# Initialize request argument(s)
576576
request = vision_v1.AsyncBatchAnnotateFilesRequest(
@@ -581,7 +581,7 @@ def sample_async_batch_annotate_files():
581581
582582
print("Waiting for operation to complete...")
583583
584-
response = operation.result()
584+
response = await operation.result()
585585
586586
# Handle the response
587587
print(response)

0 commit comments

Comments
 (0)