# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: idm/api/proto/chat_manager_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor( name='idm/api/proto/chat_manager_service.proto', package='idm.api.proto', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, serialized_pb=b'\n(idm/api/proto/chat_manager_service.proto\x12\ridm.api.proto\"\xe3\x01\n\x04\x43hat\x12\x0f\n\x07\x63hat_id\x18\x01 \x01(\x03\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08language\x18\x03 \x01(\t\x12#\n\x1bis_system_messaging_enabled\x18\x04 \x01(\x08\x12\x1c\n\x14is_discovery_enabled\x18\x05 \x01(\x08\x12\x11\n\tban_until\x18\x06 \x01(\x05\x12\x13\n\x0b\x62\x61n_message\x18\x07 \x01(\t\x12\x10\n\x08is_admin\x18\x08 \x01(\x08\x12\x15\n\ris_subscribed\x18\t \x01(\x08\x12\x12\n\ncreated_at\x18\n \x01(\x03\"+\n\x05\x43hats\x12\"\n\x05\x63hats\x18\x01 \x03(\x0b\x32\x13.idm.api.proto.Chat\"H\n\x11\x43reateChatRequest\x12\x0f\n\x07\x63hat_id\x18\x01 \x01(\x03\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08language\x18\x03 \x01(\t\"!\n\x0eGetChatRequest\x12\x0f\n\x07\x63hat_id\x18\x01 \x01(\x03\"F\n\x10ListChatsRequest\x12\x1d\n\x10\x62\x61nned_at_moment\x18\x01 \x01(\x05H\x00\x88\x01\x01\x42\x13\n\x11_banned_at_moment\"\xc2\x02\n\x11UpdateChatRequest\x12\x0f\n\x07\x63hat_id\x18\x01 \x01(\x03\x12\x15\n\x08language\x18\x02 \x01(\tH\x00\x88\x01\x01\x12(\n\x1bis_system_messaging_enabled\x18\x03 \x01(\x08H\x01\x88\x01\x01\x12!\n\x14is_discovery_enabled\x18\x04 \x01(\x08H\x02\x88\x01\x01\x12\x16\n\tban_until\x18\x05 \x01(\x05H\x03\x88\x01\x01\x12\x18\n\x0b\x62\x61n_message\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08is_admin\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\x0b\n\t_languageB\x1e\n\x1c_is_system_messaging_enabledB\x17\n\x15_is_discovery_enabledB\x0c\n\n_ban_untilB\x0e\n\x0c_ban_messageB\x0b\n\t_is_admin2\xa6\x02\n\x0b\x43hatManager\x12\x46\n\x0b\x63reate_chat\x12 .idm.api.proto.CreateChatRequest\x1a\x13.idm.api.proto.Chat\"\x00\x12@\n\x08get_chat\x12\x1d.idm.api.proto.GetChatRequest\x1a\x13.idm.api.proto.Chat\"\x00\x12\x45\n\nlist_chats\x12\x1f.idm.api.proto.ListChatsRequest\x1a\x14.idm.api.proto.Chats\"\x00\x12\x46\n\x0bupdate_chat\x12 .idm.api.proto.UpdateChatRequest\x1a\x13.idm.api.proto.Chat\"\x00\x62\x06proto3' ) _CHAT = _descriptor.Descriptor( name='Chat', full_name='idm.api.proto.Chat', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='chat_id', full_name='idm.api.proto.Chat.chat_id', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='username', full_name='idm.api.proto.Chat.username', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='language', full_name='idm.api.proto.Chat.language', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_system_messaging_enabled', full_name='idm.api.proto.Chat.is_system_messaging_enabled', index=3, number=4, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_discovery_enabled', full_name='idm.api.proto.Chat.is_discovery_enabled', index=4, number=5, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='ban_until', full_name='idm.api.proto.Chat.ban_until', index=5, number=6, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='ban_message', full_name='idm.api.proto.Chat.ban_message', index=6, number=7, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_admin', full_name='idm.api.proto.Chat.is_admin', index=7, number=8, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_subscribed', full_name='idm.api.proto.Chat.is_subscribed', index=8, number=9, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='created_at', full_name='idm.api.proto.Chat.created_at', index=9, number=10, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=60, serialized_end=287, ) _CHATS = _descriptor.Descriptor( name='Chats', full_name='idm.api.proto.Chats', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='chats', full_name='idm.api.proto.Chats.chats', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=289, serialized_end=332, ) _CREATECHATREQUEST = _descriptor.Descriptor( name='CreateChatRequest', full_name='idm.api.proto.CreateChatRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='chat_id', full_name='idm.api.proto.CreateChatRequest.chat_id', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='username', full_name='idm.api.proto.CreateChatRequest.username', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='language', full_name='idm.api.proto.CreateChatRequest.language', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=334, serialized_end=406, ) _GETCHATREQUEST = _descriptor.Descriptor( name='GetChatRequest', full_name='idm.api.proto.GetChatRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='chat_id', full_name='idm.api.proto.GetChatRequest.chat_id', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=408, serialized_end=441, ) _LISTCHATSREQUEST = _descriptor.Descriptor( name='ListChatsRequest', full_name='idm.api.proto.ListChatsRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='banned_at_moment', full_name='idm.api.proto.ListChatsRequest.banned_at_moment', index=0, number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='_banned_at_moment', full_name='idm.api.proto.ListChatsRequest._banned_at_moment', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=443, serialized_end=513, ) _UPDATECHATREQUEST = _descriptor.Descriptor( name='UpdateChatRequest', full_name='idm.api.proto.UpdateChatRequest', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='chat_id', full_name='idm.api.proto.UpdateChatRequest.chat_id', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='language', full_name='idm.api.proto.UpdateChatRequest.language', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_system_messaging_enabled', full_name='idm.api.proto.UpdateChatRequest.is_system_messaging_enabled', index=2, number=3, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_discovery_enabled', full_name='idm.api.proto.UpdateChatRequest.is_discovery_enabled', index=3, number=4, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='ban_until', full_name='idm.api.proto.UpdateChatRequest.ban_until', index=4, number=5, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='ban_message', full_name='idm.api.proto.UpdateChatRequest.ban_message', index=5, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), _descriptor.FieldDescriptor( name='is_admin', full_name='idm.api.proto.UpdateChatRequest.is_admin', index=6, number=7, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='_language', full_name='idm.api.proto.UpdateChatRequest._language', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_is_system_messaging_enabled', full_name='idm.api.proto.UpdateChatRequest._is_system_messaging_enabled', index=1, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_is_discovery_enabled', full_name='idm.api.proto.UpdateChatRequest._is_discovery_enabled', index=2, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_ban_until', full_name='idm.api.proto.UpdateChatRequest._ban_until', index=3, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_ban_message', full_name='idm.api.proto.UpdateChatRequest._ban_message', index=4, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), _descriptor.OneofDescriptor( name='_is_admin', full_name='idm.api.proto.UpdateChatRequest._is_admin', index=5, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=516, serialized_end=838, ) _CHATS.fields_by_name['chats'].message_type = _CHAT _LISTCHATSREQUEST.oneofs_by_name['_banned_at_moment'].fields.append( _LISTCHATSREQUEST.fields_by_name['banned_at_moment']) _LISTCHATSREQUEST.fields_by_name['banned_at_moment'].containing_oneof = _LISTCHATSREQUEST.oneofs_by_name['_banned_at_moment'] _UPDATECHATREQUEST.oneofs_by_name['_language'].fields.append( _UPDATECHATREQUEST.fields_by_name['language']) _UPDATECHATREQUEST.fields_by_name['language'].containing_oneof = _UPDATECHATREQUEST.oneofs_by_name['_language'] _UPDATECHATREQUEST.oneofs_by_name['_is_system_messaging_enabled'].fields.append( _UPDATECHATREQUEST.fields_by_name['is_system_messaging_enabled']) _UPDATECHATREQUEST.fields_by_name['is_system_messaging_enabled'].containing_oneof = _UPDATECHATREQUEST.oneofs_by_name['_is_system_messaging_enabled'] _UPDATECHATREQUEST.oneofs_by_name['_is_discovery_enabled'].fields.append( _UPDATECHATREQUEST.fields_by_name['is_discovery_enabled']) _UPDATECHATREQUEST.fields_by_name['is_discovery_enabled'].containing_oneof = _UPDATECHATREQUEST.oneofs_by_name['_is_discovery_enabled'] _UPDATECHATREQUEST.oneofs_by_name['_ban_until'].fields.append( _UPDATECHATREQUEST.fields_by_name['ban_until']) _UPDATECHATREQUEST.fields_by_name['ban_until'].containing_oneof = _UPDATECHATREQUEST.oneofs_by_name['_ban_until'] _UPDATECHATREQUEST.oneofs_by_name['_ban_message'].fields.append( _UPDATECHATREQUEST.fields_by_name['ban_message']) _UPDATECHATREQUEST.fields_by_name['ban_message'].containing_oneof = _UPDATECHATREQUEST.oneofs_by_name['_ban_message'] _UPDATECHATREQUEST.oneofs_by_name['_is_admin'].fields.append( _UPDATECHATREQUEST.fields_by_name['is_admin']) _UPDATECHATREQUEST.fields_by_name['is_admin'].containing_oneof = _UPDATECHATREQUEST.oneofs_by_name['_is_admin'] DESCRIPTOR.message_types_by_name['Chat'] = _CHAT DESCRIPTOR.message_types_by_name['Chats'] = _CHATS DESCRIPTOR.message_types_by_name['CreateChatRequest'] = _CREATECHATREQUEST DESCRIPTOR.message_types_by_name['GetChatRequest'] = _GETCHATREQUEST DESCRIPTOR.message_types_by_name['ListChatsRequest'] = _LISTCHATSREQUEST DESCRIPTOR.message_types_by_name['UpdateChatRequest'] = _UPDATECHATREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) Chat = _reflection.GeneratedProtocolMessageType('Chat', (_message.Message,), { 'DESCRIPTOR' : _CHAT, '__module__' : 'idm.api.proto.chat_manager_service_pb2' # @@protoc_insertion_point(class_scope:idm.api.proto.Chat) }) _sym_db.RegisterMessage(Chat) Chats = _reflection.GeneratedProtocolMessageType('Chats', (_message.Message,), { 'DESCRIPTOR' : _CHATS, '__module__' : 'idm.api.proto.chat_manager_service_pb2' # @@protoc_insertion_point(class_scope:idm.api.proto.Chats) }) _sym_db.RegisterMessage(Chats) CreateChatRequest = _reflection.GeneratedProtocolMessageType('CreateChatRequest', (_message.Message,), { 'DESCRIPTOR' : _CREATECHATREQUEST, '__module__' : 'idm.api.proto.chat_manager_service_pb2' # @@protoc_insertion_point(class_scope:idm.api.proto.CreateChatRequest) }) _sym_db.RegisterMessage(CreateChatRequest) GetChatRequest = _reflection.GeneratedProtocolMessageType('GetChatRequest', (_message.Message,), { 'DESCRIPTOR' : _GETCHATREQUEST, '__module__' : 'idm.api.proto.chat_manager_service_pb2' # @@protoc_insertion_point(class_scope:idm.api.proto.GetChatRequest) }) _sym_db.RegisterMessage(GetChatRequest) ListChatsRequest = _reflection.GeneratedProtocolMessageType('ListChatsRequest', (_message.Message,), { 'DESCRIPTOR' : _LISTCHATSREQUEST, '__module__' : 'idm.api.proto.chat_manager_service_pb2' # @@protoc_insertion_point(class_scope:idm.api.proto.ListChatsRequest) }) _sym_db.RegisterMessage(ListChatsRequest) UpdateChatRequest = _reflection.GeneratedProtocolMessageType('UpdateChatRequest', (_message.Message,), { 'DESCRIPTOR' : _UPDATECHATREQUEST, '__module__' : 'idm.api.proto.chat_manager_service_pb2' # @@protoc_insertion_point(class_scope:idm.api.proto.UpdateChatRequest) }) _sym_db.RegisterMessage(UpdateChatRequest) _CHATMANAGER = _descriptor.ServiceDescriptor( name='ChatManager', full_name='idm.api.proto.ChatManager', file=DESCRIPTOR, index=0, serialized_options=None, create_key=_descriptor._internal_create_key, serialized_start=841, serialized_end=1135, methods=[ _descriptor.MethodDescriptor( name='create_chat', full_name='idm.api.proto.ChatManager.create_chat', index=0, containing_service=None, input_type=_CREATECHATREQUEST, output_type=_CHAT, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='get_chat', full_name='idm.api.proto.ChatManager.get_chat', index=1, containing_service=None, input_type=_GETCHATREQUEST, output_type=_CHAT, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='list_chats', full_name='idm.api.proto.ChatManager.list_chats', index=2, containing_service=None, input_type=_LISTCHATSREQUEST, output_type=_CHATS, serialized_options=None, create_key=_descriptor._internal_create_key, ), _descriptor.MethodDescriptor( name='update_chat', full_name='idm.api.proto.ChatManager.update_chat', index=3, containing_service=None, input_type=_UPDATECHATREQUEST, output_type=_CHAT, serialized_options=None, create_key=_descriptor._internal_create_key, ), ]) _sym_db.RegisterServiceDescriptor(_CHATMANAGER) DESCRIPTOR.services_by_name['ChatManager'] = _CHATMANAGER # @@protoc_insertion_point(module_scope)