# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: chatto/api/v1/asset_uploads.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/asset_uploads.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 attachments_pb2 as chatto_dot_api_dot_v1_dot_attachments__pb2
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!chatto/api/v1/asset_uploads.proto\x12\rchatto.api.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1f\x63hatto/api/v1/attachments.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x01\n\x0b\x41ssetUpload\x12\x11\n\tupload_id\x18\x01 \x01(\t\x12\x0f\n\x07room_id\x18\x02 \x01(\t\x12\x30\n\x06status\x18\x03 \x01(\x0e\x32 .chatto.api.v1.AssetUploadStatus\x12\x18\n\x10\x63ommitted_offset\x18\x04 \x01(\x03\x12\x0c\n\x04size\x18\x05 \x01(\x03\x12\x16\n\x0emax_chunk_size\x18\x06 \x01(\x05\x12\x0e\n\x06sha256\x18\x07 \x01(\t\x12.\n\nexpires_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x61sset_id\x18\t \x01(\t\"\xd6\x01\n\x13\x43reateUploadRequest\x12\x18\n\x07room_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x19\n\x08\x66ilename\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x14\n\x0c\x63ontent_type\x18\x03 \x01(\t\x12\x15\n\x04size\x18\x04 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00\x12%\n\x06sha256\x18\x05 \x01(\tB\x15\xbaH\x12r\x10\x32\x0e^[a-f0-9]{64}$J\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08R\x14thread_root_event_idR\x14\x61lso_send_to_channel\"B\n\x14\x43reateUploadResponse\x12*\n\x06upload\x18\x01 \x01(\x0b\x32\x1a.chatto.api.v1.AssetUpload\"\x90\x01\n\x12UploadChunkRequest\x12\x1a\n\tupload_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\x12\x17\n\x06offset\x18\x02 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00\x12\x18\n\x07\x63ontent\x18\x03 \x01(\x0c\x42\x07\xbaH\x04z\x02\x10\x01\x12+\n\x0c\x63hunk_sha256\x18\x04 \x01(\tB\x15\xbaH\x12r\x10\x32\x0e^[a-f0-9]{64}$\"A\n\x13UploadChunkResponse\x12*\n\x06upload\x18\x01 \x01(\x0b\x32\x1a.chatto.api.v1.AssetUpload\".\n\x10GetUploadRequest\x12\x1a\n\tupload_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\"?\n\x11GetUploadResponse\x12*\n\x06upload\x18\x01 \x01(\x0b\x32\x1a.chatto.api.v1.AssetUpload\"3\n\x15\x43ompleteUploadRequest\x12\x1a\n\tupload_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\"i\n\x16\x43ompleteUploadResponse\x12*\n\x06upload\x18\x01 \x01(\x0b\x32\x1a.chatto.api.v1.AssetUpload\x12#\n\x05\x61sset\x18\x02 \x01(\x0b\x32\x14.chatto.api.v1.Asset\"1\n\x13\x43\x61ncelUploadRequest\x12\x1a\n\tupload_id\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x10\x01\"B\n\x14\x43\x61ncelUploadResponse\x12*\n\x06upload\x18\x01 \x01(\x0b\x32\x1a.chatto.api.v1.AssetUpload*\x9c\x01\n\x11\x41ssetUploadStatus\x12#\n\x1f\x41SSET_UPLOAD_STATUS_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41SSET_UPLOAD_STATUS_OPEN\x10\x01\x12!\n\x1d\x41SSET_UPLOAD_STATUS_COMPLETED\x10\x02\x12!\n\x1d\x41SSET_UPLOAD_STATUS_CANCELLED\x10\x03\x32\xcb\x03\n\x12\x41ssetUploadService\x12W\n\x0c\x43reateUpload\x12\".chatto.api.v1.CreateUploadRequest\x1a#.chatto.api.v1.CreateUploadResponse\x12T\n\x0bUploadChunk\x12!.chatto.api.v1.UploadChunkRequest\x1a\".chatto.api.v1.UploadChunkResponse\x12N\n\tGetUpload\x12\x1f.chatto.api.v1.GetUploadRequest\x1a .chatto.api.v1.GetUploadResponse\x12]\n\x0e\x43ompleteUpload\x12$.chatto.api.v1.CompleteUploadRequest\x1a%.chatto.api.v1.CompleteUploadResponse\x12W\n\x0c\x43\x61ncelUpload\x12\".chatto.api.v1.CancelUploadRequest\x1a#.chatto.api.v1.CancelUploadResponseb\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chatto.api.v1.asset_uploads_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_CREATEUPLOADREQUEST'].fields_by_name['room_id']._loaded_options = None
  _globals['_CREATEUPLOADREQUEST'].fields_by_name['room_id']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_CREATEUPLOADREQUEST'].fields_by_name['filename']._loaded_options = None
  _globals['_CREATEUPLOADREQUEST'].fields_by_name['filename']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_CREATEUPLOADREQUEST'].fields_by_name['size']._loaded_options = None
  _globals['_CREATEUPLOADREQUEST'].fields_by_name['size']._serialized_options = b'\272H\004\"\002(\000'
  _globals['_CREATEUPLOADREQUEST'].fields_by_name['sha256']._loaded_options = None
  _globals['_CREATEUPLOADREQUEST'].fields_by_name['sha256']._serialized_options = b'\272H\022r\0202\016^[a-f0-9]{64}$'
  _globals['_UPLOADCHUNKREQUEST'].fields_by_name['upload_id']._loaded_options = None
  _globals['_UPLOADCHUNKREQUEST'].fields_by_name['upload_id']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_UPLOADCHUNKREQUEST'].fields_by_name['offset']._loaded_options = None
  _globals['_UPLOADCHUNKREQUEST'].fields_by_name['offset']._serialized_options = b'\272H\004\"\002(\000'
  _globals['_UPLOADCHUNKREQUEST'].fields_by_name['content']._loaded_options = None
  _globals['_UPLOADCHUNKREQUEST'].fields_by_name['content']._serialized_options = b'\272H\004z\002\020\001'
  _globals['_UPLOADCHUNKREQUEST'].fields_by_name['chunk_sha256']._loaded_options = None
  _globals['_UPLOADCHUNKREQUEST'].fields_by_name['chunk_sha256']._serialized_options = b'\272H\022r\0202\016^[a-f0-9]{64}$'
  _globals['_GETUPLOADREQUEST'].fields_by_name['upload_id']._loaded_options = None
  _globals['_GETUPLOADREQUEST'].fields_by_name['upload_id']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_COMPLETEUPLOADREQUEST'].fields_by_name['upload_id']._loaded_options = None
  _globals['_COMPLETEUPLOADREQUEST'].fields_by_name['upload_id']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_CANCELUPLOADREQUEST'].fields_by_name['upload_id']._loaded_options = None
  _globals['_CANCELUPLOADREQUEST'].fields_by_name['upload_id']._serialized_options = b'\272H\004r\002\020\001'
  _globals['_ASSETUPLOADSTATUS']._serialized_start=1287
  _globals['_ASSETUPLOADSTATUS']._serialized_end=1443
  _globals['_ASSETUPLOAD']._serialized_start=148
  _globals['_ASSETUPLOAD']._serialized_end=393
  _globals['_CREATEUPLOADREQUEST']._serialized_start=396
  _globals['_CREATEUPLOADREQUEST']._serialized_end=610
  _globals['_CREATEUPLOADRESPONSE']._serialized_start=612
  _globals['_CREATEUPLOADRESPONSE']._serialized_end=678
  _globals['_UPLOADCHUNKREQUEST']._serialized_start=681
  _globals['_UPLOADCHUNKREQUEST']._serialized_end=825
  _globals['_UPLOADCHUNKRESPONSE']._serialized_start=827
  _globals['_UPLOADCHUNKRESPONSE']._serialized_end=892
  _globals['_GETUPLOADREQUEST']._serialized_start=894
  _globals['_GETUPLOADREQUEST']._serialized_end=940
  _globals['_GETUPLOADRESPONSE']._serialized_start=942
  _globals['_GETUPLOADRESPONSE']._serialized_end=1005
  _globals['_COMPLETEUPLOADREQUEST']._serialized_start=1007
  _globals['_COMPLETEUPLOADREQUEST']._serialized_end=1058
  _globals['_COMPLETEUPLOADRESPONSE']._serialized_start=1060
  _globals['_COMPLETEUPLOADRESPONSE']._serialized_end=1165
  _globals['_CANCELUPLOADREQUEST']._serialized_start=1167
  _globals['_CANCELUPLOADREQUEST']._serialized_end=1216
  _globals['_CANCELUPLOADRESPONSE']._serialized_start=1218
  _globals['_CANCELUPLOADRESPONSE']._serialized_end=1284
  _globals['_ASSETUPLOADSERVICE']._serialized_start=1446
  _globals['_ASSETUPLOADSERVICE']._serialized_end=1905
# @@protoc_insertion_point(module_scope)
