# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: chatto/api/v1/attachments.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/attachments.proto' ) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2 from chatto.api.v1 import common_pb2 as chatto_dot_api_dot_v1_dot_common__pb2 from chatto.api.v1 import message_types_pb2 as chatto_dot_api_dot_v1_dot_message__types__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 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') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.attachments_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: DESCRIPTOR._loaded_options = None _globals['_GETASSETREQUEST'].fields_by_name['room_id']._loaded_options = None _globals['_GETASSETREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001' _globals['_GETASSETREQUEST'].fields_by_name['asset_id']._loaded_options = None _globals['_GETASSETREQUEST'].fields_by_name['asset_id']._serialized_options = b'\272H\004r\002\020\001' _globals['_BATCHGETASSETSREQUEST'].fields_by_name['room_id']._loaded_options = None _globals['_BATCHGETASSETSREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001' _globals['_BATCHGETASSETSREQUEST'].fields_by_name['asset_ids']._loaded_options = None _globals['_BATCHGETASSETSREQUEST'].fields_by_name['asset_ids']._serialized_options = b'\272H\r\222\001\n\010\001\020d\"\004r\002\020\001' _globals['_ASSET']._serialized_start=176 _globals['_ASSET']._serialized_end=457 _globals['_ROOMATTACHMENTLISTITEM']._serialized_start=460 _globals['_ROOMATTACHMENTLISTITEM']._serialized_end=630 _globals['_GETASSETREQUEST']._serialized_start=632 _globals['_GETASSETREQUEST']._serialized_end=759 _globals['_GETASSETRESPONSE']._serialized_start=761 _globals['_GETASSETRESPONSE']._serialized_end=816 _globals['_BATCHGETASSETSREQUEST']._serialized_start=819 _globals['_BATCHGETASSETSREQUEST']._serialized_end=962 _globals['_BATCHGETASSETSRESPONSE']._serialized_start=964 _globals['_BATCHGETASSETSRESPONSE']._serialized_end=1026 _globals['_ASSETSERVICE']._serialized_start=1029 _globals['_ASSETSERVICE']._serialized_end=1215 # @@protoc_insertion_point(module_scope)