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

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: use gapic-generator-python 0.52.0 (#239)
- [ ] Regenerate this pull request now.

fix: improper types in pagers generation
PiperOrigin-RevId: 399773015

Source-Link: googleapis/googleapis@410c184

Source-Link: googleapis/googleapis-gen@290e883
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwZTg4MzU0NWUzYWM5ZmYyYmQwMGNkMGRhY2IyOGYxYjhjYTk0NSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 30, 2021
1 parent 49d5cb4 commit 29b57f6
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 54 deletions.
36 changes: 18 additions & 18 deletions google/cloud/vision_v1/services/product_search/pagers.py
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.vision_v1.types import product_search_service
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[product_search_service.ListProductSetsResponse]:
def pages(self) -> Iterator[product_search_service.ListProductSetsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[product_search_service.ProductSet]:
def __iter__(self) -> Iterator[product_search_service.ProductSet]:
for page in self.pages:
yield from page.product_sets

Expand Down Expand Up @@ -140,14 +140,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[product_search_service.ListProductSetsResponse]:
) -> AsyncIterator[product_search_service.ListProductSetsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[product_search_service.ProductSet]:
def __aiter__(self) -> AsyncIterator[product_search_service.ProductSet]:
async def async_generator():
async for page in self.pages:
for response in page.product_sets:
Expand Down Expand Up @@ -206,14 +206,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[product_search_service.ListProductsResponse]:
def pages(self) -> Iterator[product_search_service.ListProductsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[product_search_service.Product]:
def __iter__(self) -> Iterator[product_search_service.Product]:
for page in self.pages:
yield from page.products

Expand Down Expand Up @@ -268,14 +268,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[product_search_service.ListProductsResponse]:
async def pages(self) -> AsyncIterator[product_search_service.ListProductsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[product_search_service.Product]:
def __aiter__(self) -> AsyncIterator[product_search_service.Product]:
async def async_generator():
async for page in self.pages:
for response in page.products:
Expand Down Expand Up @@ -334,14 +334,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[product_search_service.ListReferenceImagesResponse]:
def pages(self) -> Iterator[product_search_service.ListReferenceImagesResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[product_search_service.ReferenceImage]:
def __iter__(self) -> Iterator[product_search_service.ReferenceImage]:
for page in self.pages:
yield from page.reference_images

Expand Down Expand Up @@ -400,14 +400,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[product_search_service.ListReferenceImagesResponse]:
) -> AsyncIterator[product_search_service.ListReferenceImagesResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[product_search_service.ReferenceImage]:
def __aiter__(self) -> AsyncIterator[product_search_service.ReferenceImage]:
async def async_generator():
async for page in self.pages:
for response in page.reference_images:
Expand Down Expand Up @@ -468,14 +468,14 @@ def __getattr__(self, name: str) -> Any:
@property
def pages(
self,
) -> Iterable[product_search_service.ListProductsInProductSetResponse]:
) -> Iterator[product_search_service.ListProductsInProductSetResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[product_search_service.Product]:
def __iter__(self) -> Iterator[product_search_service.Product]:
for page in self.pages:
yield from page.products

Expand Down Expand Up @@ -534,14 +534,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[product_search_service.ListProductsInProductSetResponse]:
) -> AsyncIterator[product_search_service.ListProductsInProductSetResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[product_search_service.Product]:
def __aiter__(self) -> AsyncIterator[product_search_service.Product]:
async def async_generator():
async for page in self.pages:
for response in page.products:
Expand Down
36 changes: 18 additions & 18 deletions google/cloud/vision_v1p3beta1/services/product_search/pagers.py
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.vision_v1p3beta1.types import product_search_service
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[product_search_service.ListProductSetsResponse]:
def pages(self) -> Iterator[product_search_service.ListProductSetsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[product_search_service.ProductSet]:
def __iter__(self) -> Iterator[product_search_service.ProductSet]:
for page in self.pages:
yield from page.product_sets

Expand Down Expand Up @@ -140,14 +140,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[product_search_service.ListProductSetsResponse]:
) -> AsyncIterator[product_search_service.ListProductSetsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[product_search_service.ProductSet]:
def __aiter__(self) -> AsyncIterator[product_search_service.ProductSet]:
async def async_generator():
async for page in self.pages:
for response in page.product_sets:
Expand Down Expand Up @@ -206,14 +206,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[product_search_service.ListProductsResponse]:
def pages(self) -> Iterator[product_search_service.ListProductsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[product_search_service.Product]:
def __iter__(self) -> Iterator[product_search_service.Product]:
for page in self.pages:
yield from page.products

Expand Down Expand Up @@ -268,14 +268,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[product_search_service.ListProductsResponse]:
async def pages(self) -> AsyncIterator[product_search_service.ListProductsResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[product_search_service.Product]:
def __aiter__(self) -> AsyncIterator[product_search_service.Product]:
async def async_generator():
async for page in self.pages:
for response in page.products:
Expand Down Expand Up @@ -334,14 +334,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[product_search_service.ListReferenceImagesResponse]:
def pages(self) -> Iterator[product_search_service.ListReferenceImagesResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[product_search_service.ReferenceImage]:
def __iter__(self) -> Iterator[product_search_service.ReferenceImage]:
for page in self.pages:
yield from page.reference_images

Expand Down Expand Up @@ -400,14 +400,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[product_search_service.ListReferenceImagesResponse]:
) -> AsyncIterator[product_search_service.ListReferenceImagesResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[product_search_service.ReferenceImage]:
def __aiter__(self) -> AsyncIterator[product_search_service.ReferenceImage]:
async def async_generator():
async for page in self.pages:
for response in page.reference_images:
Expand Down Expand Up @@ -468,14 +468,14 @@ def __getattr__(self, name: str) -> Any:
@property
def pages(
self,
) -> Iterable[product_search_service.ListProductsInProductSetResponse]:
) -> Iterator[product_search_service.ListProductsInProductSetResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[product_search_service.Product]:
def __iter__(self) -> Iterator[product_search_service.Product]:
for page in self.pages:
yield from page.products

Expand Down Expand Up @@ -534,14 +534,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[product_search_service.ListProductsInProductSetResponse]:
) -> AsyncIterator[product_search_service.ListProductsInProductSetResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[product_search_service.Product]:
def __aiter__(self) -> AsyncIterator[product_search_service.Product]:
async def async_generator():
async for page in self.pages:
for response in page.products:
Expand Down

0 comments on commit 29b57f6

Please sign in to comment.