Skip to content

Commit

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

PiperOrigin-RevId: 441524537

Source-Link: googleapis/googleapis@2a27391

Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9

* 🦉 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>
  • Loading branch information
3 people authored Apr 14, 2022
1 parent 8b7ca9d commit 45eea75
Show file tree
Hide file tree
Showing 188 changed files with 6,291 additions and 729 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -221,7 +221,6 @@ async def batch_annotate_images(
r"""Run image detection and annotation for a batch of
images.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -327,7 +326,6 @@ async def batch_annotate_files(
perform detection and annotation for each image
extracted.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -438,7 +436,6 @@ async def async_batch_annotate_images(
in customer GCS bucket, each json file containing
BatchAnnotateImagesResponse proto.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -567,7 +564,6 @@ async def async_batch_annotate_files(
(metadata). ``Operation.response`` contains
``AsyncBatchAnnotateFilesResponse`` (results).
.. code-block:: python
from google.cloud import vision_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -467,7 +467,6 @@ def batch_annotate_images(
r"""Run image detection and annotation for a batch of
images.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -566,7 +565,6 @@ def batch_annotate_files(
perform detection and annotation for each image
extracted.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -670,7 +668,6 @@ def async_batch_annotate_images(
in customer GCS bucket, each json file containing
BatchAnnotateImagesResponse proto.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -794,7 +791,6 @@ def async_batch_annotate_files(
(metadata). ``Operation.response`` contains
``AsyncBatchAnnotateFilesResponse`` (results).
.. code-block:: python
from google.cloud import vision_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -243,5 +244,9 @@ def async_batch_annotate_files(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("ImageAnnotatorTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,9 @@ def async_batch_annotate_files(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("ImageAnnotatorGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -251,7 +251,6 @@ async def create_product_set(
- Returns INVALID_ARGUMENT if display_name is missing, or is
longer than 4096 characters.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -383,7 +382,6 @@ async def list_product_sets(
- Returns INVALID_ARGUMENT if page_size is greater than 100, or
less than 1.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -507,7 +505,6 @@ async def get_product_set(
- Returns NOT_FOUND if the ProductSet does not exist.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -627,7 +624,6 @@ async def update_product_set(
update_mask but missing from the request or longer than 4096
characters.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -751,7 +747,6 @@ async def delete_product_set(
The actual image files are not deleted from Google Cloud
Storage.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -858,7 +853,6 @@ async def create_product(
- Returns INVALID_ARGUMENT if product_category is missing or
invalid.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -985,7 +979,6 @@ async def list_products(
- Returns INVALID_ARGUMENT if page_size is greater than 100 or
less than 1.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -1109,7 +1102,6 @@ async def get_product(
- Returns NOT_FOUND if the Product does not exist.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -1231,7 +1223,6 @@ async def update_product(
- Returns INVALID_ARGUMENT if product_category is present in
update_mask.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -1354,7 +1345,6 @@ async def delete_product(
ProductSets containing the product may still work until
all related caches are refreshed.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -1473,7 +1463,6 @@ async def create_reference_image(
- Returns INVALID_ARGUMENT if bounding_poly contains more than
10 polygons.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -1611,7 +1600,6 @@ async def delete_reference_image(
The actual image files are not deleted from Google Cloud
Storage.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -1714,7 +1702,6 @@ async def list_reference_images(
- Returns INVALID_ARGUMENT if the page_size is greater than
100, or less than 1.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -1839,7 +1826,6 @@ async def get_reference_image(
- Returns NOT_FOUND if the specified image does not exist.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -1959,7 +1945,6 @@ async def add_product_to_product_set(
- Returns NOT_FOUND if the Product or the ProductSet doesn't
exist.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -2190,7 +2175,6 @@ async def list_products_in_product_set(
- Returns INVALID_ARGUMENT if page_size is greater than 100 or
less than 1.
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -2324,7 +2308,6 @@ async def import_product_sets(
Storage. For the format of the csv file please see
[ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].
.. code-block:: python
from google.cloud import vision_v1
Expand Down Expand Up @@ -2485,7 +2468,6 @@ async def purge_products(
request. ``Operation.metadata`` contains
``BatchOperationMetadata``. (progress)
.. code-block:: python
from google.cloud import vision_v1
Expand Down
Loading

0 comments on commit 45eea75

Please sign in to comment.