|
| 1 | +""" |
| 2 | +@generated by mypy-protobuf. Do not edit manually! |
| 3 | +isort:skip_file |
| 4 | +""" |
| 5 | + |
| 6 | +import builtins |
| 7 | +import google.protobuf.descriptor |
| 8 | +import google.protobuf.internal.enum_type_wrapper |
| 9 | +import google.protobuf.message |
| 10 | +import sys |
| 11 | +import typing |
| 12 | + |
| 13 | +if sys.version_info >= (3, 10): |
| 14 | + import typing as typing_extensions |
| 15 | +else: |
| 16 | + import typing_extensions |
| 17 | + |
| 18 | +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor |
| 19 | + |
| 20 | +@typing.final |
| 21 | +class SearchQuery(google.protobuf.message.Message): |
| 22 | + DESCRIPTOR: google.protobuf.descriptor.Descriptor |
| 23 | + |
| 24 | + class _SearchType: |
| 25 | + ValueType = typing.NewType("ValueType", builtins.int) |
| 26 | + V: typing_extensions.TypeAlias = ValueType |
| 27 | + |
| 28 | + class _SearchTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SearchQuery._SearchType.ValueType], builtins.type): |
| 29 | + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor |
| 30 | + SEARCH_TYPE_UNSPECIFIED: SearchQuery._SearchType.ValueType # 0 |
| 31 | + SEARCH_TYPE_RU: SearchQuery._SearchType.ValueType # 1 |
| 32 | + """Russian search type (default), yandex.ru search domain name will be used.""" |
| 33 | + SEARCH_TYPE_TR: SearchQuery._SearchType.ValueType # 2 |
| 34 | + """Turkish search type, yandex.tr search domain name will be used.""" |
| 35 | + SEARCH_TYPE_COM: SearchQuery._SearchType.ValueType # 3 |
| 36 | + """International search type, yandex.com search domain name will be used.""" |
| 37 | + |
| 38 | + class SearchType(_SearchType, metaclass=_SearchTypeEnumTypeWrapper): ... |
| 39 | + SEARCH_TYPE_UNSPECIFIED: SearchQuery.SearchType.ValueType # 0 |
| 40 | + SEARCH_TYPE_RU: SearchQuery.SearchType.ValueType # 1 |
| 41 | + """Russian search type (default), yandex.ru search domain name will be used.""" |
| 42 | + SEARCH_TYPE_TR: SearchQuery.SearchType.ValueType # 2 |
| 43 | + """Turkish search type, yandex.tr search domain name will be used.""" |
| 44 | + SEARCH_TYPE_COM: SearchQuery.SearchType.ValueType # 3 |
| 45 | + """International search type, yandex.com search domain name will be used.""" |
| 46 | + |
| 47 | + class _FamilyMode: |
| 48 | + ValueType = typing.NewType("ValueType", builtins.int) |
| 49 | + V: typing_extensions.TypeAlias = ValueType |
| 50 | + |
| 51 | + class _FamilyModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SearchQuery._FamilyMode.ValueType], builtins.type): |
| 52 | + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor |
| 53 | + FAMILY_MODE_UNSPECIFIED: SearchQuery._FamilyMode.ValueType # 0 |
| 54 | + FAMILY_MODE_NONE: SearchQuery._FamilyMode.ValueType # 1 |
| 55 | + """Filtering is disabled. Search results include any documents regardless of their contents.""" |
| 56 | + FAMILY_MODE_MODERATE: SearchQuery._FamilyMode.ValueType # 2 |
| 57 | + """Moderate filter (default value). Documents of the Adult category are excluded from search results |
| 58 | + unless a query is explicitly made for searching resources of this category. |
| 59 | + """ |
| 60 | + FAMILY_MODE_STRICT: SearchQuery._FamilyMode.ValueType # 3 |
| 61 | + """Regardless of a search query, documents of the Adult category |
| 62 | + and those with profanity are excluded from search results. |
| 63 | + """ |
| 64 | + |
| 65 | + class FamilyMode(_FamilyMode, metaclass=_FamilyModeEnumTypeWrapper): ... |
| 66 | + FAMILY_MODE_UNSPECIFIED: SearchQuery.FamilyMode.ValueType # 0 |
| 67 | + FAMILY_MODE_NONE: SearchQuery.FamilyMode.ValueType # 1 |
| 68 | + """Filtering is disabled. Search results include any documents regardless of their contents.""" |
| 69 | + FAMILY_MODE_MODERATE: SearchQuery.FamilyMode.ValueType # 2 |
| 70 | + """Moderate filter (default value). Documents of the Adult category are excluded from search results |
| 71 | + unless a query is explicitly made for searching resources of this category. |
| 72 | + """ |
| 73 | + FAMILY_MODE_STRICT: SearchQuery.FamilyMode.ValueType # 3 |
| 74 | + """Regardless of a search query, documents of the Adult category |
| 75 | + and those with profanity are excluded from search results. |
| 76 | + """ |
| 77 | + |
| 78 | + SEARCH_TYPE_FIELD_NUMBER: builtins.int |
| 79 | + QUERY_TEXT_FIELD_NUMBER: builtins.int |
| 80 | + FAMILY_MODE_FIELD_NUMBER: builtins.int |
| 81 | + PAGE_FIELD_NUMBER: builtins.int |
| 82 | + search_type: global___SearchQuery.SearchType.ValueType |
| 83 | + """Search type that determines the domain name that will be used for the search queries.""" |
| 84 | + query_text: builtins.str |
| 85 | + """Search query text""" |
| 86 | + family_mode: global___SearchQuery.FamilyMode.ValueType |
| 87 | + """Rule for filtering search results and determines whether any documents should be excluded.""" |
| 88 | + page: builtins.int |
| 89 | + """The number of a requested page with search results""" |
| 90 | + def __init__( |
| 91 | + self, |
| 92 | + *, |
| 93 | + search_type: global___SearchQuery.SearchType.ValueType = ..., |
| 94 | + query_text: builtins.str = ..., |
| 95 | + family_mode: global___SearchQuery.FamilyMode.ValueType = ..., |
| 96 | + page: builtins.int = ..., |
| 97 | + ) -> None: ... |
| 98 | + def ClearField(self, field_name: typing.Literal["family_mode", b"family_mode", "page", b"page", "query_text", b"query_text", "search_type", b"search_type"]) -> None: ... |
| 99 | + |
| 100 | +global___SearchQuery = SearchQuery |
0 commit comments