Skip to content

Commit

Permalink
feat: added support for TelephonyTransferCall in Participant Response…
Browse files Browse the repository at this point in the history
…Message (#406)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 399792725

Source-Link: googleapis/googleapis@ee3c7eb

Source-Link: googleapis/googleapis-gen@9203bde
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTIwM2JkZTZlN2E0YTQ3YWFhY2IxNDAxZTcyYTI0MTcyZGM3MWQyMiJ9

chore: use gapic-generator-python 0.52.0
fix: improper types in pagers generation
  • Loading branch information
gcf-owl-bot[bot] authored Sep 30, 2021
1 parent bb562f2 commit 58d859a
Show file tree
Hide file tree
Showing 27 changed files with 198 additions and 176 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[agent.SearchAgentsResponse]:
def pages(self) -> Iterator[agent.SearchAgentsResponse]:
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[agent.Agent]:
def __iter__(self) -> Iterator[agent.Agent]:
for page in self.pages:
yield from page.agents

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

@property
async def pages(self) -> AsyncIterable[agent.SearchAgentsResponse]:
async def pages(self) -> AsyncIterator[agent.SearchAgentsResponse]:
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[agent.Agent]:
def __aiter__(self) -> AsyncIterator[agent.Agent]:
async def async_generator():
async for page in self.pages:
for response in page.agents:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[answer_record.ListAnswerRecordsResponse]:
def pages(self) -> Iterator[answer_record.ListAnswerRecordsResponse]:
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[answer_record.AnswerRecord]:
def __iter__(self) -> Iterator[answer_record.AnswerRecord]:
for page in self.pages:
yield from page.answer_records

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

@property
async def pages(self) -> AsyncIterable[answer_record.ListAnswerRecordsResponse]:
async def pages(self) -> AsyncIterator[answer_record.ListAnswerRecordsResponse]:
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[answer_record.AnswerRecord]:
def __aiter__(self) -> AsyncIterator[answer_record.AnswerRecord]:
async def async_generator():
async for page in self.pages:
for response in page.answer_records:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[context.ListContextsResponse]:
def pages(self) -> Iterator[context.ListContextsResponse]:
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[context.Context]:
def __iter__(self) -> Iterator[context.Context]:
for page in self.pages:
yield from page.contexts

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

@property
async def pages(self) -> AsyncIterable[context.ListContextsResponse]:
async def pages(self) -> AsyncIterator[context.ListContextsResponse]:
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[context.Context]:
def __aiter__(self) -> AsyncIterator[context.Context]:
async def async_generator():
async for page in self.pages:
for response in page.contexts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[conversation_profile.ListConversationProfilesResponse]:
def pages(self) -> Iterator[conversation_profile.ListConversationProfilesResponse]:
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[conversation_profile.ConversationProfile]:
def __iter__(self) -> Iterator[conversation_profile.ConversationProfile]:
for page in self.pages:
yield from page.conversation_profiles

Expand Down Expand Up @@ -140,14 +140,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[conversation_profile.ListConversationProfilesResponse]:
) -> AsyncIterator[conversation_profile.ListConversationProfilesResponse]:
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[conversation_profile.ConversationProfile]:
def __aiter__(self) -> AsyncIterator[conversation_profile.ConversationProfile]:
async def async_generator():
async for page in self.pages:
for response in page.conversation_profiles:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[conversation.ListConversationsResponse]:
def pages(self) -> Iterator[conversation.ListConversationsResponse]:
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[conversation.Conversation]:
def __iter__(self) -> Iterator[conversation.Conversation]:
for page in self.pages:
yield from page.conversations

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

@property
async def pages(self) -> AsyncIterable[conversation.ListConversationsResponse]:
async def pages(self) -> AsyncIterator[conversation.ListConversationsResponse]:
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[conversation.Conversation]:
def __aiter__(self) -> AsyncIterator[conversation.Conversation]:
async def async_generator():
async for page in self.pages:
for response in page.conversations:
Expand Down Expand Up @@ -203,14 +203,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[conversation.ListMessagesResponse]:
def pages(self) -> Iterator[conversation.ListMessagesResponse]:
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[participant.Message]:
def __iter__(self) -> Iterator[participant.Message]:
for page in self.pages:
yield from page.messages

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

@property
async def pages(self) -> AsyncIterable[conversation.ListMessagesResponse]:
async def pages(self) -> AsyncIterator[conversation.ListMessagesResponse]:
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[participant.Message]:
def __aiter__(self) -> AsyncIterator[participant.Message]:
async def async_generator():
async for page in self.pages:
for response in page.messages:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[document.ListDocumentsResponse]:
def pages(self) -> Iterator[document.ListDocumentsResponse]:
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[document.Document]:
def __iter__(self) -> Iterator[document.Document]:
for page in self.pages:
yield from page.documents

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

@property
async def pages(self) -> AsyncIterable[document.ListDocumentsResponse]:
async def pages(self) -> AsyncIterator[document.ListDocumentsResponse]:
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[document.Document]:
def __aiter__(self) -> AsyncIterator[document.Document]:
async def async_generator():
async for page in self.pages:
for response in page.documents:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[entity_type.ListEntityTypesResponse]:
def pages(self) -> Iterator[entity_type.ListEntityTypesResponse]:
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[entity_type.EntityType]:
def __iter__(self) -> Iterator[entity_type.EntityType]:
for page in self.pages:
yield from page.entity_types

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

@property
async def pages(self) -> AsyncIterable[entity_type.ListEntityTypesResponse]:
async def pages(self) -> AsyncIterator[entity_type.ListEntityTypesResponse]:
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[entity_type.EntityType]:
def __aiter__(self) -> AsyncIterator[entity_type.EntityType]:
async def async_generator():
async for page in self.pages:
for response in page.entity_types:
Expand Down
Loading

0 comments on commit 58d859a

Please sign in to comment.