attachments_pb2.py 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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/attachments.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/attachments.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 common_pb2 as chatto_dot_api_dot_v1_dot_common__pb2
  24. from chatto.api.v1 import message_types_pb2 as chatto_dot_api_dot_v1_dot_message__types__pb2
  25. from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
  26. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63hatto/api/v1/attachments.proto\x12\rchatto.api.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1a\x63hatto/api/v1/common.proto\x1a!chatto/api/v1/message_types.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x99\x02\n\x05\x41sset\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08\x66ilename\x18\x02 \x01(\t\x12\x14\n\x0c\x63ontent_type\x18\x03 \x01(\t\x12\x0c\n\x04size\x18\x04 \x01(\x03\x12\r\n\x05width\x18\x05 \x01(\x05\x12\x0e\n\x06height\x18\x06 \x01(\x05\x12\x31\n\tasset_url\x18\x07 \x01(\x0b\x32\x1e.chatto.api.v1.MessageAssetUrl\x12;\n\x13thumbnail_asset_url\x18\x08 \x01(\x0b\x32\x1e.chatto.api.v1.MessageAssetUrl\x12?\n\x10video_processing\x18\t \x01(\x0b\x32%.chatto.api.v1.MessageVideoProcessing\"\xaa\x01\n\x16RoomAttachmentListItem\x12(\n\nattachment\x18\x01 \x01(\x0b\x32\x14.chatto.api.v1.Asset\x12\x18\n\x10message_event_id\x18\x02 \x01(\t\x12\x1c\n\x14thread_root_event_id\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x7f\n\x0fGetAssetRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x19\n\x08\x61sset_id\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x37\n\tthumbnail\x18\x03 \x01(\x0b\x32$.chatto.api.v1.ImageTransformOptions\"7\n\x10GetAssetResponse\x12#\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x14.chatto.api.v1.Asset\"\x8f\x01\n\x15\x42\x61tchGetAssetsRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12#\n\tasset_ids\x18\x02 \x03(\tB\x10\xbaH\r\x92\x01\n\x08\x01\x10\x64\"\x04r\x02\x10\x01\x12\x37\n\tthumbnail\x18\x03 \x01(\x0b\x32$.chatto.api.v1.ImageTransformOptions\">\n\x16\x42\x61tchGetAssetsResponse\x12$\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x14.chatto.api.v1.Asset2\xba\x01\n\x0c\x41ssetService\x12K\n\x08GetAsset\x12\x1e.chatto.api.v1.GetAssetRequest\x1a\x1f.chatto.api.v1.GetAssetResponse\x12]\n\x0e\x42\x61tchGetAssets\x12$.chatto.api.v1.BatchGetAssetsRequest\x1a%.chatto.api.v1.BatchGetAssetsResponseb\x06proto3')
  27. _globals = globals()
  28. _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
  29. _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.attachments_pb2', _globals)
  30. if not _descriptor._USE_C_DESCRIPTORS:
  31. DESCRIPTOR._loaded_options = None
  32. _globals['_GETASSETREQUEST'].fields_by_name['room_id']._loaded_options = None
  33. _globals['_GETASSETREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  34. _globals['_GETASSETREQUEST'].fields_by_name['asset_id']._loaded_options = None
  35. _globals['_GETASSETREQUEST'].fields_by_name['asset_id']._serialized_options = b'\272H\004r\002\020\001'
  36. _globals['_BATCHGETASSETSREQUEST'].fields_by_name['room_id']._loaded_options = None
  37. _globals['_BATCHGETASSETSREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  38. _globals['_BATCHGETASSETSREQUEST'].fields_by_name['asset_ids']._loaded_options = None
  39. _globals['_BATCHGETASSETSREQUEST'].fields_by_name['asset_ids']._serialized_options = b'\272H\r\222\001\n\010\001\020d\"\004r\002\020\001'
  40. _globals['_ASSET']._serialized_start=176
  41. _globals['_ASSET']._serialized_end=457
  42. _globals['_ROOMATTACHMENTLISTITEM']._serialized_start=460
  43. _globals['_ROOMATTACHMENTLISTITEM']._serialized_end=630
  44. _globals['_GETASSETREQUEST']._serialized_start=632
  45. _globals['_GETASSETREQUEST']._serialized_end=759
  46. _globals['_GETASSETRESPONSE']._serialized_start=761
  47. _globals['_GETASSETRESPONSE']._serialized_end=816
  48. _globals['_BATCHGETASSETSREQUEST']._serialized_start=819
  49. _globals['_BATCHGETASSETSREQUEST']._serialized_end=962
  50. _globals['_BATCHGETASSETSRESPONSE']._serialized_start=964
  51. _globals['_BATCHGETASSETSRESPONSE']._serialized_end=1026
  52. _globals['_ASSETSERVICE']._serialized_start=1029
  53. _globals['_ASSETSERVICE']._serialized_end=1215
  54. # @@protoc_insertion_point(module_scope)