viewer_pb2.py 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/viewer.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/viewer.proto'
  19. )
  20. # @@protoc_insertion_point(imports)
  21. _sym_db = _symbol_database.Default()
  22. from chatto.api.v1 import notification_preferences_pb2 as chatto_dot_api_dot_v1_dot_notification__preferences__pb2
  23. from chatto.api.v1 import permissions_pb2 as chatto_dot_api_dot_v1_dot_permissions__pb2
  24. from chatto.api.v1 import users_pb2 as chatto_dot_api_dot_v1_dot_users__pb2
  25. from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
  26. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63hatto/api/v1/viewer.proto\x12\rchatto.api.v1\x1a,chatto/api/v1/notification_preferences.proto\x1a\x1f\x63hatto/api/v1/permissions.proto\x1a\x19\x63hatto/api/v1/users.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"b\n\x0cUserSettings\x12\x15\n\x08timezone\x18\x01 \x01(\tH\x00\x88\x01\x01\x12.\n\x0btime_format\x18\x02 \x01(\x0e\x32\x19.chatto.api.v1.TimeFormatB\x0b\n\t_timezone\"\xb8\x02\n\nViewerUser\x12\x1a\n\x12has_verified_email\x18\x07 \x01(\x08\x12-\n\x08settings\x18\x08 \x01(\x0b\x32\x1b.chatto.api.v1.UserSettings\x12!\n\x19viewer_can_delete_account\x18\t \x01(\x08\x12\x35\n\x11last_login_change\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12$\n\x07profile\x18\x0b \x01(\x0b\x32\x13.chatto.api.v1.User\x12\x14\n\x0chas_password\x18\x0c \x01(\x08J\x04\x08\x01\x10\x07R\x02idR\x05loginR\x0c\x64isplay_nameR\navatar_urlR\rcustom_statusR\x0fpresence_status\"\x9c\x01\n\x12ViewerCapabilities\x12.\n\x06grants\x18\x01 \x03(\x0b\x32\x1e.chatto.api.v1.CapabilityGrant\x12#\n\x1bhas_unread_followed_threads\x18\x02 \x01(\x08\x12\x31\n)has_pending_followed_thread_notifications\x18\x03 \x01(\x08\"N\n\x17ServerViewerPermissions\x12\x33\n\x0bpermissions\x18\x01 \x03(\x0b\x32\x1e.chatto.api.v1.PermissionGrant\"-\n\x11ServerViewerState\x12\x18\n\x10has_unread_rooms\x18\x01 \x01(\x08\"\x8c\x01\n\x1aRoomNotificationPreference\x12\x0f\n\x07room_id\x18\x01 \x01(\t\x12\x39\n\npreference\x18\x04 \x01(\x0b\x32%.chatto.api.v1.NotificationPreferenceJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04R\x05levelR\x0f\x65\x66\x66\x65\x63tive_level\"\x12\n\x10GetViewerRequest\"\x92\x03\n\x11GetViewerResponse\x12\'\n\x04user\x18\x01 \x01(\x0b\x32\x19.chatto.api.v1.ViewerUser\x12\x37\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32!.chatto.api.v1.ViewerCapabilities\x12M\n\x1eserver_notification_preference\x18\x03 \x01(\x0b\x32%.chatto.api.v1.NotificationPreference\x12P\n\x1droom_notification_preferences\x18\x04 \x03(\x0b\x32).chatto.api.v1.RoomNotificationPreference\x12\x42\n\x12viewer_permissions\x18\x05 \x01(\x0b\x32&.chatto.api.v1.ServerViewerPermissions\x12\x36\n\x0cviewer_state\x18\x06 \x01(\x0b\x32 .chatto.api.v1.ServerViewerState*q\n\nTimeFormat\x12\x1b\n\x17TIME_FORMAT_UNSPECIFIED\x10\x00\x12\x14\n\x10TIME_FORMAT_AUTO\x10\x01\x12\x17\n\x13TIME_FORMAT_12_HOUR\x10\x02\x12\x17\n\x13TIME_FORMAT_24_HOUR\x10\x03\x32_\n\rViewerService\x12N\n\tGetViewer\x12\x1f.chatto.api.v1.GetViewerRequest\x1a .chatto.api.v1.GetViewerResponseb\x06proto3')
  27. _globals = globals()
  28. _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  29. _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.viewer_pb2', _globals)
  30. if not _descriptor._USE_C_DESCRIPTORS:
  31. DESCRIPTOR._loaded_options = None
  32. _globals['_TIMEFORMAT']._serialized_start=1453
  33. _globals['_TIMEFORMAT']._serialized_end=1566
  34. _globals['_USERSETTINGS']._serialized_start=184
  35. _globals['_USERSETTINGS']._serialized_end=282
  36. _globals['_VIEWERUSER']._serialized_start=285
  37. _globals['_VIEWERUSER']._serialized_end=597
  38. _globals['_VIEWERCAPABILITIES']._serialized_start=600
  39. _globals['_VIEWERCAPABILITIES']._serialized_end=756
  40. _globals['_SERVERVIEWERPERMISSIONS']._serialized_start=758
  41. _globals['_SERVERVIEWERPERMISSIONS']._serialized_end=836
  42. _globals['_SERVERVIEWERSTATE']._serialized_start=838
  43. _globals['_SERVERVIEWERSTATE']._serialized_end=883
  44. _globals['_ROOMNOTIFICATIONPREFERENCE']._serialized_start=886
  45. _globals['_ROOMNOTIFICATIONPREFERENCE']._serialized_end=1026
  46. _globals['_GETVIEWERREQUEST']._serialized_start=1028
  47. _globals['_GETVIEWERREQUEST']._serialized_end=1046
  48. _globals['_GETVIEWERRESPONSE']._serialized_start=1049
  49. _globals['_GETVIEWERRESPONSE']._serialized_end=1451
  50. _globals['_VIEWERSERVICE']._serialized_start=1568
  51. _globals['_VIEWERSERVICE']._serialized_end=1663
  52. # @@protoc_insertion_point(module_scope)