# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nexus/pylon/proto/file.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='nexus/pylon/proto/file.proto', package='nexus.pylon.proto', syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, serialized_pb=b'\n\x1cnexus/pylon/proto/file.proto\x12\x11nexus.pylon.proto\"\x18\n\x05\x43hunk\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\"\xc0\x01\n\x0c\x46ileResponse\x12)\n\x05\x63hunk\x18\x01 \x01(\x0b\x32\x18.nexus.pylon.proto.ChunkH\x00\x12\x38\n\x06status\x18\x02 \x01(\x0e\x32&.nexus.pylon.proto.FileResponse.StatusH\x00\x12\x0e\n\x06source\x18\x03 \x01(\t\"/\n\x06Status\x12\r\n\tRESOLVING\x10\x00\x12\x16\n\x12\x42\x45GIN_TRANSMISSION\x10\x01\x42\n\n\x08responseb\x06proto3' ) _FILERESPONSE_STATUS = _descriptor.EnumDescriptor( name='Status', full_name='nexus.pylon.proto.FileResponse.Status', filename=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, values=[ _descriptor.EnumValueDescriptor( name='RESOLVING', index=0, number=0, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), _descriptor.EnumValueDescriptor( name='BEGIN_TRANSMISSION', index=1, number=1, serialized_options=None, type=None, create_key=_descriptor._internal_create_key), ], containing_type=None, serialized_options=None, serialized_start=211, serialized_end=258, ) _sym_db.RegisterEnumDescriptor(_FILERESPONSE_STATUS) _CHUNK = _descriptor.Descriptor( name='Chunk', full_name='nexus.pylon.proto.Chunk', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='content', full_name='nexus.pylon.proto.Chunk.content', index=0, number=1, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", 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=51, serialized_end=75, ) _FILERESPONSE = _descriptor.Descriptor( name='FileResponse', full_name='nexus.pylon.proto.FileResponse', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name='chunk', full_name='nexus.pylon.proto.FileResponse.chunk', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, 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='status', full_name='nexus.pylon.proto.FileResponse.status', index=1, number=2, type=14, cpp_type=8, 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='source', full_name='nexus.pylon.proto.FileResponse.source', 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=[ _FILERESPONSE_STATUS, ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( name='response', full_name='nexus.pylon.proto.FileResponse.response', index=0, containing_type=None, create_key=_descriptor._internal_create_key, fields=[]), ], serialized_start=78, serialized_end=270, ) _FILERESPONSE.fields_by_name['chunk'].message_type = _CHUNK _FILERESPONSE.fields_by_name['status'].enum_type = _FILERESPONSE_STATUS _FILERESPONSE_STATUS.containing_type = _FILERESPONSE _FILERESPONSE.oneofs_by_name['response'].fields.append( _FILERESPONSE.fields_by_name['chunk']) _FILERESPONSE.fields_by_name['chunk'].containing_oneof = _FILERESPONSE.oneofs_by_name['response'] _FILERESPONSE.oneofs_by_name['response'].fields.append( _FILERESPONSE.fields_by_name['status']) _FILERESPONSE.fields_by_name['status'].containing_oneof = _FILERESPONSE.oneofs_by_name['response'] DESCRIPTOR.message_types_by_name['Chunk'] = _CHUNK DESCRIPTOR.message_types_by_name['FileResponse'] = _FILERESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) Chunk = _reflection.GeneratedProtocolMessageType('Chunk', (_message.Message,), { 'DESCRIPTOR' : _CHUNK, '__module__' : 'nexus.pylon.proto.file_pb2' # @@protoc_insertion_point(class_scope:nexus.pylon.proto.Chunk) }) _sym_db.RegisterMessage(Chunk) FileResponse = _reflection.GeneratedProtocolMessageType('FileResponse', (_message.Message,), { 'DESCRIPTOR' : _FILERESPONSE, '__module__' : 'nexus.pylon.proto.file_pb2' # @@protoc_insertion_point(class_scope:nexus.pylon.proto.FileResponse) }) _sym_db.RegisterMessage(FileResponse) # @@protoc_insertion_point(module_scope)