Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
regenerate client with workarounds removed
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed May 25, 2023
1 parent f06b664 commit 61e0b63
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 44 deletions.
12 changes: 0 additions & 12 deletions google/cloud/vision_v1/services/image_annotator/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,6 @@ def sample_batch_annotate_images():
# there are no flattened fields.
if not isinstance(request, image_annotator.BatchAnnotateImagesRequest):
request = image_annotator.BatchAnnotateImagesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateImageRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down Expand Up @@ -658,9 +655,6 @@ def sample_batch_annotate_files():
# there are no flattened fields.
if not isinstance(request, image_annotator.BatchAnnotateFilesRequest):
request = image_annotator.BatchAnnotateFilesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateFileRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down Expand Up @@ -786,9 +780,6 @@ def sample_async_batch_annotate_images():
# there are no flattened fields.
if not isinstance(request, image_annotator.AsyncBatchAnnotateImagesRequest):
request = image_annotator.AsyncBatchAnnotateImagesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateImageRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down Expand Up @@ -914,9 +905,6 @@ def sample_async_batch_annotate_files():
# there are no flattened fields.
if not isinstance(request, image_annotator.AsyncBatchAnnotateFilesRequest):
request = image_annotator.AsyncBatchAnnotateFilesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AsyncAnnotateFileRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,6 @@ def sample_batch_annotate_images():
# there are no flattened fields.
if not isinstance(request, image_annotator.BatchAnnotateImagesRequest):
request = image_annotator.BatchAnnotateImagesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateImageRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,6 @@ def sample_batch_annotate_images():
# there are no flattened fields.
if not isinstance(request, image_annotator.BatchAnnotateImagesRequest):
request = image_annotator.BatchAnnotateImagesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateImageRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down Expand Up @@ -621,9 +618,6 @@ def sample_async_batch_annotate_files():
# there are no flattened fields.
if not isinstance(request, image_annotator.AsyncBatchAnnotateFilesRequest):
request = image_annotator.AsyncBatchAnnotateFilesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AsyncAnnotateFileRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,6 @@ def sample_batch_annotate_images():
# there are no flattened fields.
if not isinstance(request, image_annotator.BatchAnnotateImagesRequest):
request = image_annotator.BatchAnnotateImagesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateImageRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down Expand Up @@ -667,9 +664,6 @@ def sample_async_batch_annotate_files():
# there are no flattened fields.
if not isinstance(request, image_annotator.AsyncBatchAnnotateFilesRequest):
request = image_annotator.AsyncBatchAnnotateFilesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AsyncAnnotateFileRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down
12 changes: 0 additions & 12 deletions google/cloud/vision_v1p4beta1/services/image_annotator/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,6 @@ def sample_batch_annotate_images():
# there are no flattened fields.
if not isinstance(request, image_annotator.BatchAnnotateImagesRequest):
request = image_annotator.BatchAnnotateImagesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateImageRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down Expand Up @@ -658,9 +655,6 @@ def sample_batch_annotate_files():
# there are no flattened fields.
if not isinstance(request, image_annotator.BatchAnnotateFilesRequest):
request = image_annotator.BatchAnnotateFilesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateFileRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down Expand Up @@ -786,9 +780,6 @@ def sample_async_batch_annotate_images():
# there are no flattened fields.
if not isinstance(request, image_annotator.AsyncBatchAnnotateImagesRequest):
request = image_annotator.AsyncBatchAnnotateImagesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AnnotateImageRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down Expand Up @@ -914,9 +905,6 @@ def sample_async_batch_annotate_files():
# there are no flattened fields.
if not isinstance(request, image_annotator.AsyncBatchAnnotateFilesRequest):
request = image_annotator.AsyncBatchAnnotateFilesRequest(request)
if requests is not None:
for i in range(len(requests)):
requests[i] = image_annotator.AsyncAnnotateFileRequest(requests[i])
# If we have keyword arguments corresponding to fields on the
# request, apply these.
if requests is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-vision",
"version": "3.4.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-vision",
"version": "3.4.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-vision",
"version": "3.4.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-vision",
"version": "3.4.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-vision",
"version": "3.4.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 61e0b63

Please sign in to comment.