Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.51.2 (#236)
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot committed Sep 27, 2021
1 parent 54a1e0e commit 87ad0eabbba08754320fd836c5e76fba48222b5c
Showing with 220 additions and 202 deletions.
  1. +9 −9 google/cloud/vision_v1/services/image_annotator/client.py
  2. +1 −1 google/cloud/vision_v1/services/image_annotator/transports/base.py
  3. +3 −3 google/cloud/vision_v1/services/image_annotator/transports/grpc.py
  4. +3 −3 google/cloud/vision_v1/services/image_annotator/transports/grpc_asyncio.py
  5. +45 −39 google/cloud/vision_v1/services/product_search/client.py
  6. +1 −1 google/cloud/vision_v1/services/product_search/transports/base.py
  7. +3 −3 google/cloud/vision_v1/services/product_search/transports/grpc.py
  8. +3 −3 google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py
  9. +3 −3 google/cloud/vision_v1p1beta1/services/image_annotator/client.py
  10. +1 −1 google/cloud/vision_v1p1beta1/services/image_annotator/transports/base.py
  11. +3 −3 google/cloud/vision_v1p1beta1/services/image_annotator/transports/grpc.py
  12. +3 −3 google/cloud/vision_v1p1beta1/services/image_annotator/transports/grpc_asyncio.py
  13. +5 −5 google/cloud/vision_v1p2beta1/services/image_annotator/client.py
  14. +1 −1 google/cloud/vision_v1p2beta1/services/image_annotator/transports/base.py
  15. +3 −3 google/cloud/vision_v1p2beta1/services/image_annotator/transports/grpc.py
  16. +3 −3 google/cloud/vision_v1p2beta1/services/image_annotator/transports/grpc_asyncio.py
  17. +5 −5 google/cloud/vision_v1p3beta1/services/image_annotator/client.py
  18. +1 −1 google/cloud/vision_v1p3beta1/services/image_annotator/transports/base.py
  19. +3 −3 google/cloud/vision_v1p3beta1/services/image_annotator/transports/grpc.py
  20. +3 −3 google/cloud/vision_v1p3beta1/services/image_annotator/transports/grpc_asyncio.py
  21. +43 −37 google/cloud/vision_v1p3beta1/services/product_search/client.py
  22. +1 −1 google/cloud/vision_v1p3beta1/services/product_search/transports/base.py
  23. +3 −3 google/cloud/vision_v1p3beta1/services/product_search/transports/grpc.py
  24. +3 −3 google/cloud/vision_v1p3beta1/services/product_search/transports/grpc_asyncio.py
  25. +9 −9 google/cloud/vision_v1p4beta1/services/image_annotator/client.py
  26. +1 −1 google/cloud/vision_v1p4beta1/services/image_annotator/transports/base.py
  27. +3 −3 google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc.py
  28. +3 −3 google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc_asyncio.py
  29. +45 −39 google/cloud/vision_v1p4beta1/services/product_search/client.py
  30. +1 −1 google/cloud/vision_v1p4beta1/services/product_search/transports/base.py
  31. +3 −3 google/cloud/vision_v1p4beta1/services/product_search/transports/grpc.py
  32. +3 −3 google/cloud/vision_v1p4beta1/services/product_search/transports/grpc_asyncio.py
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
@@ -373,7 +373,7 @@ def __init__(

def batch_annotate_images(
self,
request: image_annotator.BatchAnnotateImagesRequest = None,
request: Union[image_annotator.BatchAnnotateImagesRequest, dict] = None,
*,
requests: Sequence[image_annotator.AnnotateImageRequest] = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -384,7 +384,7 @@ def batch_annotate_images(
images.
Args:
request (google.cloud.vision_v1.types.BatchAnnotateImagesRequest):
request (Union[google.cloud.vision_v1.types.BatchAnnotateImagesRequest, dict]):
The request object. Multiple image annotation requests
are batched into a single service call.
requests (Sequence[google.cloud.vision_v1.types.AnnotateImageRequest]):
@@ -442,7 +442,7 @@ def batch_annotate_images(

def batch_annotate_files(
self,
request: image_annotator.BatchAnnotateFilesRequest = None,
request: Union[image_annotator.BatchAnnotateFilesRequest, dict] = None,
*,
requests: Sequence[image_annotator.AnnotateFileRequest] = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -459,7 +459,7 @@ def batch_annotate_files(
extracted.
Args:
request (google.cloud.vision_v1.types.BatchAnnotateFilesRequest):
request (Union[google.cloud.vision_v1.types.BatchAnnotateFilesRequest, dict]):
The request object. A list of requests to annotate files
using the BatchAnnotateFiles API.
requests (Sequence[google.cloud.vision_v1.types.AnnotateFileRequest]):
@@ -517,7 +517,7 @@ def batch_annotate_files(

def async_batch_annotate_images(
self,
request: image_annotator.AsyncBatchAnnotateImagesRequest = None,
request: Union[image_annotator.AsyncBatchAnnotateImagesRequest, dict] = None,
*,
requests: Sequence[image_annotator.AnnotateImageRequest] = None,
output_config: image_annotator.OutputConfig = None,
@@ -539,7 +539,7 @@ def async_batch_annotate_images(
BatchAnnotateImagesResponse proto.
Args:
request (google.cloud.vision_v1.types.AsyncBatchAnnotateImagesRequest):
request (Union[google.cloud.vision_v1.types.AsyncBatchAnnotateImagesRequest, dict]):
The request object. Request for async image annotation
for a list of images.
requests (Sequence[google.cloud.vision_v1.types.AnnotateImageRequest]):
@@ -619,7 +619,7 @@ def async_batch_annotate_images(

def async_batch_annotate_files(
self,
request: image_annotator.AsyncBatchAnnotateFilesRequest = None,
request: Union[image_annotator.AsyncBatchAnnotateFilesRequest, dict] = None,
*,
requests: Sequence[image_annotator.AsyncAnnotateFileRequest] = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -635,7 +635,7 @@ def async_batch_annotate_files(
``AsyncBatchAnnotateFilesResponse`` (results).
Args:
request (google.cloud.vision_v1.types.AsyncBatchAnnotateFilesRequest):
request (Union[google.cloud.vision_v1.types.AsyncBatchAnnotateFilesRequest, dict]):
The request object. Multiple async file annotation
requests are batched into a single service call.
requests (Sequence[google.cloud.vision_v1.types.AsyncAnnotateFileRequest]):
@@ -120,7 +120,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -85,16 +85,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -132,16 +132,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Loading

0 comments on commit 87ad0ea

Please sign in to comment.