pagination_pb2.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: chatto/api/v1/pagination.proto
  5. # Protobuf Python Version: 7.34.1
  6. """Generated protocol buffer code."""
  7. from google.protobuf import descriptor as _descriptor
  8. from google.protobuf import descriptor_pool as _descriptor_pool
  9. from google.protobuf import runtime_version as _runtime_version
  10. from google.protobuf import symbol_database as _symbol_database
  11. from google.protobuf.internal import builder as _builder
  12. _runtime_version.ValidateProtobufRuntimeVersion(
  13. _runtime_version.Domain.PUBLIC,
  14. 7,
  15. 34,
  16. 1,
  17. '',
  18. 'chatto/api/v1/pagination.proto'
  19. )
  20. # @@protoc_insertion_point(imports)
  21. _sym_db = _symbol_database.Default()
  22. from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
  23. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63hatto/api/v1/pagination.proto\x12\rchatto.api.v1\x1a\x1b\x62uf/validate/validate.proto\"A\n\x0bPageRequest\x12\x19\n\x05limit\x18\x01 \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xf4\x03(\x00\x12\x17\n\x06offset\x18\x02 \x01(\x05\x42\x07\xbaH\x04\x1a\x02(\x00\"1\n\x08PageInfo\x12\x13\n\x0btotal_count\x18\x01 \x01(\x03\x12\x10\n\x08has_more\x18\x02 \x01(\x08\x62\x06proto3')
  24. _globals = globals()
  25. _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  26. _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.pagination_pb2', _globals)
  27. if not _descriptor._USE_C_DESCRIPTORS:
  28. DESCRIPTOR._loaded_options = None
  29. _globals['_PAGEREQUEST'].fields_by_name['limit']._loaded_options = None
  30. _globals['_PAGEREQUEST'].fields_by_name['limit']._serialized_options = b'\272H\007\032\005\030\364\003(\000'
  31. _globals['_PAGEREQUEST'].fields_by_name['offset']._loaded_options = None
  32. _globals['_PAGEREQUEST'].fields_by_name['offset']._serialized_options = b'\272H\004\032\002(\000'
  33. _globals['_PAGEREQUEST']._serialized_start=78
  34. _globals['_PAGEREQUEST']._serialized_end=143
  35. _globals['_PAGEINFO']._serialized_start=145
  36. _globals['_PAGEINFO']._serialized_end=194
  37. # @@protoc_insertion_point(module_scope)