|
| 1 | +from eolymp.annotations import http_pb2 as _http_pb2 |
| 2 | +from eolymp.annotations import ratelimit_pb2 as _ratelimit_pb2 |
| 3 | +from eolymp.annotations import scope_pb2 as _scope_pb2 |
| 4 | +from eolymp.commerce import product_pb2 as _product_pb2 |
| 5 | +from eolymp.wellknown import direction_pb2 as _direction_pb2 |
| 6 | +from eolymp.wellknown import expression_pb2 as _expression_pb2 |
| 7 | +from google.protobuf.internal import containers as _containers |
| 8 | +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper |
| 9 | +from google.protobuf import descriptor as _descriptor |
| 10 | +from google.protobuf import message as _message |
| 11 | +from collections.abc import Iterable as _Iterable, Mapping as _Mapping |
| 12 | +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union |
| 13 | + |
| 14 | +DESCRIPTOR: _descriptor.FileDescriptor |
| 15 | + |
| 16 | +class DescribeProductInput(_message.Message): |
| 17 | + __slots__ = ("product_id", "locale", "extra") |
| 18 | + PRODUCT_ID_FIELD_NUMBER: _ClassVar[int] |
| 19 | + LOCALE_FIELD_NUMBER: _ClassVar[int] |
| 20 | + EXTRA_FIELD_NUMBER: _ClassVar[int] |
| 21 | + product_id: str |
| 22 | + locale: str |
| 23 | + extra: _containers.RepeatedScalarFieldContainer[_product_pb2.Product.Extra.Field] |
| 24 | + def __init__(self, product_id: _Optional[str] = ..., locale: _Optional[str] = ..., extra: _Optional[_Iterable[_Union[_product_pb2.Product.Extra.Field, str]]] = ...) -> None: ... |
| 25 | + |
| 26 | +class DescribeProductOutput(_message.Message): |
| 27 | + __slots__ = ("product",) |
| 28 | + PRODUCT_FIELD_NUMBER: _ClassVar[int] |
| 29 | + product: _product_pb2.Product |
| 30 | + def __init__(self, product: _Optional[_Union[_product_pb2.Product, _Mapping]] = ...) -> None: ... |
| 31 | + |
| 32 | +class ListProductsInput(_message.Message): |
| 33 | + __slots__ = ("offset", "size", "search", "filters", "sort", "order", "locale", "extra") |
| 34 | + class Sortable(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): |
| 35 | + __slots__ = () |
| 36 | + DEFAULT: _ClassVar[ListProductsInput.Sortable] |
| 37 | + DEFAULT: ListProductsInput.Sortable |
| 38 | + class Filter(_message.Message): |
| 39 | + __slots__ = ("id", "name", "out_of_stock", "price") |
| 40 | + ID_FIELD_NUMBER: _ClassVar[int] |
| 41 | + NAME_FIELD_NUMBER: _ClassVar[int] |
| 42 | + OUT_OF_STOCK_FIELD_NUMBER: _ClassVar[int] |
| 43 | + PRICE_FIELD_NUMBER: _ClassVar[int] |
| 44 | + id: _containers.RepeatedCompositeFieldContainer[_expression_pb2.ExpressionID] |
| 45 | + name: _containers.RepeatedCompositeFieldContainer[_expression_pb2.ExpressionString] |
| 46 | + out_of_stock: _containers.RepeatedCompositeFieldContainer[_expression_pb2.ExpressionBool] |
| 47 | + price: _containers.RepeatedCompositeFieldContainer[_expression_pb2.ExpressionInt] |
| 48 | + def __init__(self, id: _Optional[_Iterable[_Union[_expression_pb2.ExpressionID, _Mapping]]] = ..., name: _Optional[_Iterable[_Union[_expression_pb2.ExpressionString, _Mapping]]] = ..., out_of_stock: _Optional[_Iterable[_Union[_expression_pb2.ExpressionBool, _Mapping]]] = ..., price: _Optional[_Iterable[_Union[_expression_pb2.ExpressionInt, _Mapping]]] = ...) -> None: ... |
| 49 | + OFFSET_FIELD_NUMBER: _ClassVar[int] |
| 50 | + SIZE_FIELD_NUMBER: _ClassVar[int] |
| 51 | + SEARCH_FIELD_NUMBER: _ClassVar[int] |
| 52 | + FILTERS_FIELD_NUMBER: _ClassVar[int] |
| 53 | + SORT_FIELD_NUMBER: _ClassVar[int] |
| 54 | + ORDER_FIELD_NUMBER: _ClassVar[int] |
| 55 | + LOCALE_FIELD_NUMBER: _ClassVar[int] |
| 56 | + EXTRA_FIELD_NUMBER: _ClassVar[int] |
| 57 | + offset: int |
| 58 | + size: int |
| 59 | + search: str |
| 60 | + filters: ListProductsInput.Filter |
| 61 | + sort: ListProductsInput.Sortable |
| 62 | + order: _direction_pb2.Direction |
| 63 | + locale: str |
| 64 | + extra: _containers.RepeatedCompositeFieldContainer[_product_pb2.Product.Extra] |
| 65 | + def __init__(self, offset: _Optional[int] = ..., size: _Optional[int] = ..., search: _Optional[str] = ..., filters: _Optional[_Union[ListProductsInput.Filter, _Mapping]] = ..., sort: _Optional[_Union[ListProductsInput.Sortable, str]] = ..., order: _Optional[_Union[_direction_pb2.Direction, str]] = ..., locale: _Optional[str] = ..., extra: _Optional[_Iterable[_Union[_product_pb2.Product.Extra, _Mapping]]] = ...) -> None: ... |
| 66 | + |
| 67 | +class ListProductsOutput(_message.Message): |
| 68 | + __slots__ = ("total", "items") |
| 69 | + TOTAL_FIELD_NUMBER: _ClassVar[int] |
| 70 | + ITEMS_FIELD_NUMBER: _ClassVar[int] |
| 71 | + total: int |
| 72 | + items: _containers.RepeatedCompositeFieldContainer[_product_pb2.Product] |
| 73 | + def __init__(self, total: _Optional[int] = ..., items: _Optional[_Iterable[_Union[_product_pb2.Product, _Mapping]]] = ...) -> None: ... |
0 commit comments