# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: chatto/api/v1/viewer.proto # Protobuf Python Version: 7.34.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, 7, 34, 1, '', 'chatto/api/v1/viewer.proto' ) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from chatto.api.v1 import notification_preferences_pb2 as chatto_dot_api_dot_v1_dot_notification__preferences__pb2 from chatto.api.v1 import permissions_pb2 as chatto_dot_api_dot_v1_dot_permissions__pb2 from chatto.api.v1 import users_pb2 as chatto_dot_api_dot_v1_dot_users__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 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') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.viewer_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: DESCRIPTOR._loaded_options = None _globals['_TIMEFORMAT']._serialized_start=1453 _globals['_TIMEFORMAT']._serialized_end=1566 _globals['_USERSETTINGS']._serialized_start=184 _globals['_USERSETTINGS']._serialized_end=282 _globals['_VIEWERUSER']._serialized_start=285 _globals['_VIEWERUSER']._serialized_end=597 _globals['_VIEWERCAPABILITIES']._serialized_start=600 _globals['_VIEWERCAPABILITIES']._serialized_end=756 _globals['_SERVERVIEWERPERMISSIONS']._serialized_start=758 _globals['_SERVERVIEWERPERMISSIONS']._serialized_end=836 _globals['_SERVERVIEWERSTATE']._serialized_start=838 _globals['_SERVERVIEWERSTATE']._serialized_end=883 _globals['_ROOMNOTIFICATIONPREFERENCE']._serialized_start=886 _globals['_ROOMNOTIFICATIONPREFERENCE']._serialized_end=1026 _globals['_GETVIEWERREQUEST']._serialized_start=1028 _globals['_GETVIEWERREQUEST']._serialized_end=1046 _globals['_GETVIEWERRESPONSE']._serialized_start=1049 _globals['_GETVIEWERRESPONSE']._serialized_end=1451 _globals['_VIEWERSERVICE']._serialized_start=1568 _globals['_VIEWERSERVICE']._serialized_end=1663 # @@protoc_insertion_point(module_scope)