messages_pb2.py 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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/messages.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/messages.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. from chatto.api.v1 import link_previews_pb2 as chatto_dot_api_dot_v1_dot_link__previews__pb2
  24. from chatto.api.v1 import message_types_pb2 as chatto_dot_api_dot_v1_dot_message__types__pb2
  25. from chatto.api.v1 import reactions_pb2 as chatto_dot_api_dot_v1_dot_reactions__pb2
  26. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63hatto/api/v1/messages.proto\x12\rchatto.api.v1\x1a\x1b\x62uf/validate/validate.proto\x1a!chatto/api/v1/link_previews.proto\x1a!chatto/api/v1/message_types.proto\x1a\x1d\x63hatto/api/v1/reactions.proto\"\xa4\x02\n\x14\x43reateMessageRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x0c\n\x04\x62ody\x18\x02 \x01(\t\x12.\n\x14\x61ttachment_asset_ids\x18\x03 \x03(\tB\x10\xbaH\r\x92\x01\n\x10\n\"\x06r\x04\x10\x01(\x0f\x12\x1c\n\x14thread_root_event_id\x18\x04 \x01(\t\x12\x13\n\x0bin_reply_to\x18\x05 \x01(\t\x12\x1c\n\x14\x61lso_send_to_channel\x18\x06 \x01(\x08\x12\x1a\n\x12link_preview_token\x18\n \x01(\tJ\x04\x08\x08\x10\tJ\x04\x08\t\x10\nJ\x04\x08\x07\x10\x08R\x0clink_previewR\x0b\x61ttachmentsR\x1amention_confirmation_token\"l\n\x15\x43reateMessageResponse\x12\'\n\x07message\x18\x01 \x01(\x0b\x32\x16.chatto.api.v1.MessageJ\x04\x08\x02\x10\x03J\x04\x08\x03\x10\x04R\x14mention_confirmationR\x08includes\"\xad\x01\n\x14UpdateMessageRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x19\n\x08\x65vent_id\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x1b\n\x04\x62ody\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\x90NH\x00\x88\x01\x01\x12!\n\x14\x61lso_send_to_channel\x18\x04 \x01(\x08H\x01\x88\x01\x01\x42\x07\n\x05_bodyB\x17\n\x15_also_send_to_channel\"_\n\x15UpdateMessageResponse\x12\'\n\x07message\x18\x02 \x01(\x0b\x32\x16.chatto.api.v1.MessageJ\x04\x08\x01\x10\x02J\x04\x08\x03\x10\x04R\x07updatedR\x08includes\"K\n\x14\x44\x65leteMessageRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x19\n\x08\x65vent_id\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\"(\n\x15\x44\x65leteMessageResponse\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x08\"n\n\x17\x44\x65leteAttachmentRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x19\n\x08\x65vent_id\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x1e\n\rattachment_id\x18\x03 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\"+\n\x18\x44\x65leteAttachmentResponse\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x08\"e\n\x18\x44\x65leteLinkPreviewRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x19\n\x08\x65vent_id\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x14\n\x03url\x18\x03 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\",\n\x19\x44\x65leteLinkPreviewResponse\x12\x0f\n\x07\x64\x65leted\x18\x01 \x01(\x08\"Y\n\x11GetMessageRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x19\n\x08\x65vent_id\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01J\x04\x08\x03\x10\x04R\tthumbnail\"M\n\x12GetMessageResponse\x12\'\n\x07message\x18\x01 \x01(\x0b\x32\x16.chatto.api.v1.MessageJ\x04\x08\x02\x10\x03R\x08includes\"i\n\x17\x42\x61tchGetMessagesRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12#\n\tevent_ids\x18\x02 \x03(\tB\x10\xbaH\r\x92\x01\n\x08\x01\x10\x64\"\x04r\x02\x10\x01J\x04\x08\x03\x10\x04R\tthumbnail\"T\n\x18\x42\x61tchGetMessagesResponse\x12(\n\x08messages\x18\x01 \x03(\x0b\x32\x16.chatto.api.v1.MessageJ\x04\x08\x02\x10\x03R\x08includes2\xc3\x07\n\x0eMessageService\x12\x63\n\x10\x46\x65tchLinkPreview\x12&.chatto.api.v1.FetchLinkPreviewRequest\x1a\'.chatto.api.v1.FetchLinkPreviewResponse\x12Z\n\rCreateMessage\x12#.chatto.api.v1.CreateMessageRequest\x1a$.chatto.api.v1.CreateMessageResponse\x12Z\n\rUpdateMessage\x12#.chatto.api.v1.UpdateMessageRequest\x1a$.chatto.api.v1.UpdateMessageResponse\x12Z\n\rDeleteMessage\x12#.chatto.api.v1.DeleteMessageRequest\x1a$.chatto.api.v1.DeleteMessageResponse\x12\x63\n\x10\x44\x65leteAttachment\x12&.chatto.api.v1.DeleteAttachmentRequest\x1a\'.chatto.api.v1.DeleteAttachmentResponse\x12\x66\n\x11\x44\x65leteLinkPreview\x12\'.chatto.api.v1.DeleteLinkPreviewRequest\x1a(.chatto.api.v1.DeleteLinkPreviewResponse\x12Q\n\nGetMessage\x12 .chatto.api.v1.GetMessageRequest\x1a!.chatto.api.v1.GetMessageResponse\x12\x63\n\x10\x42\x61tchGetMessages\x12&.chatto.api.v1.BatchGetMessagesRequest\x1a\'.chatto.api.v1.BatchGetMessagesResponse\x12T\n\x0b\x41\x64\x64Reaction\x12!.chatto.api.v1.AddReactionRequest\x1a\".chatto.api.v1.AddReactionResponse\x12]\n\x0eRemoveReaction\x12$.chatto.api.v1.RemoveReactionRequest\x1a%.chatto.api.v1.RemoveReactionResponseb\x06proto3')
  27. _globals = globals()
  28. _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  29. _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.messages_pb2', _globals)
  30. if not _descriptor._USE_C_DESCRIPTORS:
  31. DESCRIPTOR._loaded_options = None
  32. _globals['_CREATEMESSAGEREQUEST'].fields_by_name['room_id']._loaded_options = None
  33. _globals['_CREATEMESSAGEREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  34. _globals['_CREATEMESSAGEREQUEST'].fields_by_name['attachment_asset_ids']._loaded_options = None
  35. _globals['_CREATEMESSAGEREQUEST'].fields_by_name['attachment_asset_ids']._serialized_options = b'\272H\r\222\001\n\020\n\"\006r\004\020\001(\017'
  36. _globals['_UPDATEMESSAGEREQUEST'].fields_by_name['room_id']._loaded_options = None
  37. _globals['_UPDATEMESSAGEREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  38. _globals['_UPDATEMESSAGEREQUEST'].fields_by_name['event_id']._loaded_options = None
  39. _globals['_UPDATEMESSAGEREQUEST'].fields_by_name['event_id']._serialized_options = b'\272H\004r\002\020\001'
  40. _globals['_UPDATEMESSAGEREQUEST'].fields_by_name['body']._loaded_options = None
  41. _globals['_UPDATEMESSAGEREQUEST'].fields_by_name['body']._serialized_options = b'\272H\005r\003\030\220N'
  42. _globals['_DELETEMESSAGEREQUEST'].fields_by_name['room_id']._loaded_options = None
  43. _globals['_DELETEMESSAGEREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  44. _globals['_DELETEMESSAGEREQUEST'].fields_by_name['event_id']._loaded_options = None
  45. _globals['_DELETEMESSAGEREQUEST'].fields_by_name['event_id']._serialized_options = b'\272H\004r\002\020\001'
  46. _globals['_DELETEATTACHMENTREQUEST'].fields_by_name['room_id']._loaded_options = None
  47. _globals['_DELETEATTACHMENTREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  48. _globals['_DELETEATTACHMENTREQUEST'].fields_by_name['event_id']._loaded_options = None
  49. _globals['_DELETEATTACHMENTREQUEST'].fields_by_name['event_id']._serialized_options = b'\272H\004r\002\020\001'
  50. _globals['_DELETEATTACHMENTREQUEST'].fields_by_name['attachment_id']._loaded_options = None
  51. _globals['_DELETEATTACHMENTREQUEST'].fields_by_name['attachment_id']._serialized_options = b'\272H\004r\002\020\001'
  52. _globals['_DELETELINKPREVIEWREQUEST'].fields_by_name['room_id']._loaded_options = None
  53. _globals['_DELETELINKPREVIEWREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  54. _globals['_DELETELINKPREVIEWREQUEST'].fields_by_name['event_id']._loaded_options = None
  55. _globals['_DELETELINKPREVIEWREQUEST'].fields_by_name['event_id']._serialized_options = b'\272H\004r\002\020\001'
  56. _globals['_DELETELINKPREVIEWREQUEST'].fields_by_name['url']._loaded_options = None
  57. _globals['_DELETELINKPREVIEWREQUEST'].fields_by_name['url']._serialized_options = b'\272H\004r\002\020\001'
  58. _globals['_GETMESSAGEREQUEST'].fields_by_name['room_id']._loaded_options = None
  59. _globals['_GETMESSAGEREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  60. _globals['_GETMESSAGEREQUEST'].fields_by_name['event_id']._loaded_options = None
  61. _globals['_GETMESSAGEREQUEST'].fields_by_name['event_id']._serialized_options = b'\272H\004r\002\020\001'
  62. _globals['_BATCHGETMESSAGESREQUEST'].fields_by_name['room_id']._loaded_options = None
  63. _globals['_BATCHGETMESSAGESREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  64. _globals['_BATCHGETMESSAGESREQUEST'].fields_by_name['event_ids']._loaded_options = None
  65. _globals['_BATCHGETMESSAGESREQUEST'].fields_by_name['event_ids']._serialized_options = b'\272H\r\222\001\n\010\001\020d\"\004r\002\020\001'
  66. _globals['_CREATEMESSAGEREQUEST']._serialized_start=178
  67. _globals['_CREATEMESSAGEREQUEST']._serialized_end=470
  68. _globals['_CREATEMESSAGERESPONSE']._serialized_start=472
  69. _globals['_CREATEMESSAGERESPONSE']._serialized_end=580
  70. _globals['_UPDATEMESSAGEREQUEST']._serialized_start=583
  71. _globals['_UPDATEMESSAGEREQUEST']._serialized_end=756
  72. _globals['_UPDATEMESSAGERESPONSE']._serialized_start=758
  73. _globals['_UPDATEMESSAGERESPONSE']._serialized_end=853
  74. _globals['_DELETEMESSAGEREQUEST']._serialized_start=855
  75. _globals['_DELETEMESSAGEREQUEST']._serialized_end=930
  76. _globals['_DELETEMESSAGERESPONSE']._serialized_start=932
  77. _globals['_DELETEMESSAGERESPONSE']._serialized_end=972
  78. _globals['_DELETEATTACHMENTREQUEST']._serialized_start=974
  79. _globals['_DELETEATTACHMENTREQUEST']._serialized_end=1084
  80. _globals['_DELETEATTACHMENTRESPONSE']._serialized_start=1086
  81. _globals['_DELETEATTACHMENTRESPONSE']._serialized_end=1129
  82. _globals['_DELETELINKPREVIEWREQUEST']._serialized_start=1131
  83. _globals['_DELETELINKPREVIEWREQUEST']._serialized_end=1232
  84. _globals['_DELETELINKPREVIEWRESPONSE']._serialized_start=1234
  85. _globals['_DELETELINKPREVIEWRESPONSE']._serialized_end=1278
  86. _globals['_GETMESSAGEREQUEST']._serialized_start=1280
  87. _globals['_GETMESSAGEREQUEST']._serialized_end=1369
  88. _globals['_GETMESSAGERESPONSE']._serialized_start=1371
  89. _globals['_GETMESSAGERESPONSE']._serialized_end=1448
  90. _globals['_BATCHGETMESSAGESREQUEST']._serialized_start=1450
  91. _globals['_BATCHGETMESSAGESREQUEST']._serialized_end=1555
  92. _globals['_BATCHGETMESSAGESRESPONSE']._serialized_start=1557
  93. _globals['_BATCHGETMESSAGESRESPONSE']._serialized_end=1641
  94. _globals['_MESSAGESERVICE']._serialized_start=1644
  95. _globals['_MESSAGESERVICE']._serialized_end=2607
  96. # @@protoc_insertion_point(module_scope)