Search field names for one like a page token. Args: fields: container of string, names of fields. Returns: First name that is either 'pageToken' or 'nextPageToken' if one exists, otherwise None.
(fields)
| 1635 | |
| 1636 | |
| 1637 | def _findPageTokenName(fields): |
| 1638 | """Search field names for one like a page token. |
| 1639 | |
| 1640 | Args: |
| 1641 | fields: container of string, names of fields. |
| 1642 | |
| 1643 | Returns: |
| 1644 | First name that is either 'pageToken' or 'nextPageToken' if one exists, |
| 1645 | otherwise None. |
| 1646 | """ |
| 1647 | return next( |
| 1648 | (tokenName for tokenName in _PAGE_TOKEN_NAMES if tokenName in fields), None |
| 1649 | ) |
| 1650 | |
| 1651 | |
| 1652 | def _methodProperties(methodDesc, schema, name): |
no outgoing calls
no test coverage detected
searching dependent graphs…