# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: dbrouter.proto
# Protobuf Python Version: 6.31.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,
    6,
    31,
    1,
    '',
    'dbrouter.proto'
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x64\x62router.proto\x12\x08\x64\x62router\x1a\x1cgoogle/protobuf/struct.proto\"\x14\n\x12HealthCheckRequest\"p\n\x10\x43onnectionStatus\x12\x0e\n\x06status\x18\x01 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x02 \x01(\x08\x12\x0c\n\x04host\x18\x03 \x01(\t\x12\x0c\n\x04port\x18\x04 \x01(\t\x12\x10\n\x08\x64\x61tabase\x18\x05 \x01(\t\x12\r\n\x05\x65rror\x18\x06 \x01(\t\"\xb2\x01\n\x13HealthCheckResponse\x12\x17\n\x0foverall_healthy\x18\x01 \x01(\x08\x12,\n\x08postgres\x18\x02 \x01(\x0b\x32\x1a.dbrouter.ConnectionStatus\x12)\n\x05mongo\x18\x03 \x01(\x0b\x32\x1a.dbrouter.ConnectionStatus\x12)\n\x05redis\x18\x04 \x01(\x0b\x32\x1a.dbrouter.ConnectionStatus\"\x16\n\x14ListDatabasesRequest\"*\n\x15ListDatabasesResponse\x12\x11\n\tdatabases\x18\x01 \x03(\t\"%\n\x15\x43reateDatabaseRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"7\n\x16\x43reateDatabaseResponse\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\"%\n\x11ListTablesRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\"6\n\x12ListTablesResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x0e\n\x06tables\x18\x02 \x03(\t\"6\n\x13\x45xecuteQueryRequest\x12\r\n\x05query\x18\x01 \x01(\t\x12\x10\n\x08\x64\x61tabase\x18\x02 \x01(\t\"\x8d\x01\n\x0eQueryResultRow\x12\x34\n\x06\x66ields\x18\x01 \x03(\x0b\x32$.dbrouter.QueryResultRow.FieldsEntry\x1a\x45\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"\x86\x01\n\x14\x45xecuteQueryResponse\x12\x0f\n\x07\x63olumns\x18\x01 \x03(\t\x12&\n\x04rows\x18\x02 \x03(\x0b\x32\x18.dbrouter.QueryResultRow\x12\r\n\x05\x63ount\x18\x03 \x01(\x03\x12\x15\n\rrows_affected\x18\x04 \x01(\x03\x12\x0f\n\x07message\x18\x05 \x01(\t\"C\n\x11SelectDataRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x05\"l\n\x12SelectDataResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12&\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x18.dbrouter.QueryResultRow\x12\r\n\x05\x63ount\x18\x04 \x01(\x03\"\xae\x01\n\x11InsertDataRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\x33\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32%.dbrouter.InsertDataRequest.DataEntry\x1a\x43\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"[\n\x12InsertDataResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\x13\n\x0binserted_id\x18\x03 \x01(\t\x12\x0f\n\x07message\x18\x04 \x01(\t\"\xba\x01\n\x11UpdateDataRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\x33\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32%.dbrouter.UpdateDataRequest.DataEntry\x1a\x43\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"X\n\x12UpdateDataResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\x15\n\rrows_affected\x18\x04 \x01(\x03\"@\n\x11\x44\x65leteDataRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\"X\n\x12\x44\x65leteDataResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\r\n\x05table\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\x15\n\rrows_affected\x18\x04 \x01(\x03\"\x1b\n\x19ListMongoDatabasesRequest\"/\n\x1aListMongoDatabasesResponse\x12\x11\n\tdatabases\x18\x01 \x03(\t\"*\n\x16ListCollectionsRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\"@\n\x17ListCollectionsResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x13\n\x0b\x63ollections\x18\x02 \x03(\t\"h\n\x15InsertDocumentRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12)\n\x08\x64ocument\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"S\n\x16InsertDocumentResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\x13\n\x0binserted_id\x18\x03 \x01(\t\"<\n\x14\x46indDocumentsRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\"\x8b\x01\n\rMongoDocument\x12\x33\n\x06\x66ields\x18\x01 \x03(\x0b\x32#.dbrouter.MongoDocument.FieldsEntry\x1a\x45\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"x\n\x15\x46indDocumentsResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12*\n\tdocuments\x18\x03 \x03(\x0b\x32\x17.dbrouter.MongoDocument\x12\r\n\x05\x63ount\x18\x04 \x01(\x03\"r\n\x15UpdateDocumentRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\x12\'\n\x06update\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"m\n\x16UpdateDocumentResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\x15\n\rmatched_count\x18\x03 \x01(\x03\x12\x16\n\x0emodified_count\x18\x04 \x01(\x03\"I\n\x15\x44\x65leteDocumentRequest\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\n\n\x02id\x18\x03 \x01(\t\"U\n\x16\x44\x65leteDocumentResponse\x12\x10\n\x08\x64\x61tabase\x18\x01 \x01(\t\x12\x12\n\ncollection\x18\x02 \x01(\t\x12\x15\n\rdeleted_count\x18\x03 \x01(\x03\"\"\n\x0fListKeysRequest\x12\x0f\n\x07pattern\x18\x01 \x01(\t\"/\n\x10ListKeysResponse\x12\x0c\n\x04keys\x18\x01 \x03(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\":\n\x0fSetValueRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0b\n\x03ttl\x18\x03 \x01(\x05\";\n\x10SetValueResponse\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0b\n\x03ttl\x18\x03 \x01(\x05\"\x1e\n\x0fGetValueRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\";\n\x10GetValueResponse\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x0b\n\x03ttl\x18\x03 \x01(\x05\"\x1f\n\x10\x44\x65leteKeyRequest\x12\x0b\n\x03key\x18\x01 \x01(\t\"1\n\x11\x44\x65leteKeyResponse\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65leted\x18\x02 \x01(\x08\"\x12\n\x10RedisInfoRequest\"2\n\x11RedisInfoResponse\x12\x0f\n\x07\x64\x62_size\x18\x01 \x01(\x03\x12\x0c\n\x04info\x18\x02 \x01(\t2\xb0\x02\n\rHealthService\x12\x44\n\x05\x43heck\x12\x1c.dbrouter.HealthCheckRequest\x1a\x1d.dbrouter.HealthCheckResponse\x12I\n\rCheckPostgres\x12\x1c.dbrouter.HealthCheckRequest\x1a\x1a.dbrouter.ConnectionStatus\x12\x46\n\nCheckMongo\x12\x1c.dbrouter.HealthCheckRequest\x1a\x1a.dbrouter.ConnectionStatus\x12\x46\n\nCheckRedis\x12\x1c.dbrouter.HealthCheckRequest\x1a\x1a.dbrouter.ConnectionStatus2\xf4\x04\n\x0fPostgresService\x12P\n\rListDatabases\x12\x1e.dbrouter.ListDatabasesRequest\x1a\x1f.dbrouter.ListDatabasesResponse\x12S\n\x0e\x43reateDatabase\x12\x1f.dbrouter.CreateDatabaseRequest\x1a .dbrouter.CreateDatabaseResponse\x12G\n\nListTables\x12\x1b.dbrouter.ListTablesRequest\x1a\x1c.dbrouter.ListTablesResponse\x12M\n\x0c\x45xecuteQuery\x12\x1d.dbrouter.ExecuteQueryRequest\x1a\x1e.dbrouter.ExecuteQueryResponse\x12G\n\nSelectData\x12\x1b.dbrouter.SelectDataRequest\x1a\x1c.dbrouter.SelectDataResponse\x12G\n\nInsertData\x12\x1b.dbrouter.InsertDataRequest\x1a\x1c.dbrouter.InsertDataResponse\x12G\n\nUpdateData\x12\x1b.dbrouter.UpdateDataRequest\x1a\x1c.dbrouter.UpdateDataResponse\x12G\n\nDeleteData\x12\x1b.dbrouter.DeleteDataRequest\x1a\x1c.dbrouter.DeleteDataResponse2\x93\x04\n\x0cMongoService\x12Z\n\rListDatabases\x12#.dbrouter.ListMongoDatabasesRequest\x1a$.dbrouter.ListMongoDatabasesResponse\x12V\n\x0fListCollections\x12 .dbrouter.ListCollectionsRequest\x1a!.dbrouter.ListCollectionsResponse\x12S\n\x0eInsertDocument\x12\x1f.dbrouter.InsertDocumentRequest\x1a .dbrouter.InsertDocumentResponse\x12P\n\rFindDocuments\x12\x1e.dbrouter.FindDocumentsRequest\x1a\x1f.dbrouter.FindDocumentsResponse\x12S\n\x0eUpdateDocument\x12\x1f.dbrouter.UpdateDocumentRequest\x1a .dbrouter.UpdateDocumentResponse\x12S\n\x0e\x44\x65leteDocument\x12\x1f.dbrouter.DeleteDocumentRequest\x1a .dbrouter.DeleteDocumentResponse2\xde\x02\n\x0cRedisService\x12\x41\n\x08ListKeys\x12\x19.dbrouter.ListKeysRequest\x1a\x1a.dbrouter.ListKeysResponse\x12\x41\n\x08SetValue\x12\x19.dbrouter.SetValueRequest\x1a\x1a.dbrouter.SetValueResponse\x12\x41\n\x08GetValue\x12\x19.dbrouter.GetValueRequest\x1a\x1a.dbrouter.GetValueResponse\x12\x44\n\tDeleteKey\x12\x1a.dbrouter.DeleteKeyRequest\x1a\x1b.dbrouter.DeleteKeyResponse\x12?\n\x04Info\x12\x1a.dbrouter.RedisInfoRequest\x1a\x1b.dbrouter.RedisInfoResponseB\x1aZ\x18\x64\x62-router/proto/dbrouterb\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dbrouter_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  _globals['DESCRIPTOR']._loaded_options = None
  _globals['DESCRIPTOR']._serialized_options = b'Z\030db-router/proto/dbrouter'
  _globals['_QUERYRESULTROW_FIELDSENTRY']._loaded_options = None
  _globals['_QUERYRESULTROW_FIELDSENTRY']._serialized_options = b'8\001'
  _globals['_INSERTDATAREQUEST_DATAENTRY']._loaded_options = None
  _globals['_INSERTDATAREQUEST_DATAENTRY']._serialized_options = b'8\001'
  _globals['_UPDATEDATAREQUEST_DATAENTRY']._loaded_options = None
  _globals['_UPDATEDATAREQUEST_DATAENTRY']._serialized_options = b'8\001'
  _globals['_MONGODOCUMENT_FIELDSENTRY']._loaded_options = None
  _globals['_MONGODOCUMENT_FIELDSENTRY']._serialized_options = b'8\001'
  _globals['_HEALTHCHECKREQUEST']._serialized_start=58
  _globals['_HEALTHCHECKREQUEST']._serialized_end=78
  _globals['_CONNECTIONSTATUS']._serialized_start=80
  _globals['_CONNECTIONSTATUS']._serialized_end=192
  _globals['_HEALTHCHECKRESPONSE']._serialized_start=195
  _globals['_HEALTHCHECKRESPONSE']._serialized_end=373
  _globals['_LISTDATABASESREQUEST']._serialized_start=375
  _globals['_LISTDATABASESREQUEST']._serialized_end=397
  _globals['_LISTDATABASESRESPONSE']._serialized_start=399
  _globals['_LISTDATABASESRESPONSE']._serialized_end=441
  _globals['_CREATEDATABASEREQUEST']._serialized_start=443
  _globals['_CREATEDATABASEREQUEST']._serialized_end=480
  _globals['_CREATEDATABASERESPONSE']._serialized_start=482
  _globals['_CREATEDATABASERESPONSE']._serialized_end=537
  _globals['_LISTTABLESREQUEST']._serialized_start=539
  _globals['_LISTTABLESREQUEST']._serialized_end=576
  _globals['_LISTTABLESRESPONSE']._serialized_start=578
  _globals['_LISTTABLESRESPONSE']._serialized_end=632
  _globals['_EXECUTEQUERYREQUEST']._serialized_start=634
  _globals['_EXECUTEQUERYREQUEST']._serialized_end=688
  _globals['_QUERYRESULTROW']._serialized_start=691
  _globals['_QUERYRESULTROW']._serialized_end=832
  _globals['_QUERYRESULTROW_FIELDSENTRY']._serialized_start=763
  _globals['_QUERYRESULTROW_FIELDSENTRY']._serialized_end=832
  _globals['_EXECUTEQUERYRESPONSE']._serialized_start=835
  _globals['_EXECUTEQUERYRESPONSE']._serialized_end=969
  _globals['_SELECTDATAREQUEST']._serialized_start=971
  _globals['_SELECTDATAREQUEST']._serialized_end=1038
  _globals['_SELECTDATARESPONSE']._serialized_start=1040
  _globals['_SELECTDATARESPONSE']._serialized_end=1148
  _globals['_INSERTDATAREQUEST']._serialized_start=1151
  _globals['_INSERTDATAREQUEST']._serialized_end=1325
  _globals['_INSERTDATAREQUEST_DATAENTRY']._serialized_start=1258
  _globals['_INSERTDATAREQUEST_DATAENTRY']._serialized_end=1325
  _globals['_INSERTDATARESPONSE']._serialized_start=1327
  _globals['_INSERTDATARESPONSE']._serialized_end=1418
  _globals['_UPDATEDATAREQUEST']._serialized_start=1421
  _globals['_UPDATEDATAREQUEST']._serialized_end=1607
  _globals['_UPDATEDATAREQUEST_DATAENTRY']._serialized_start=1258
  _globals['_UPDATEDATAREQUEST_DATAENTRY']._serialized_end=1325
  _globals['_UPDATEDATARESPONSE']._serialized_start=1609
  _globals['_UPDATEDATARESPONSE']._serialized_end=1697
  _globals['_DELETEDATAREQUEST']._serialized_start=1699
  _globals['_DELETEDATAREQUEST']._serialized_end=1763
  _globals['_DELETEDATARESPONSE']._serialized_start=1765
  _globals['_DELETEDATARESPONSE']._serialized_end=1853
  _globals['_LISTMONGODATABASESREQUEST']._serialized_start=1855
  _globals['_LISTMONGODATABASESREQUEST']._serialized_end=1882
  _globals['_LISTMONGODATABASESRESPONSE']._serialized_start=1884
  _globals['_LISTMONGODATABASESRESPONSE']._serialized_end=1931
  _globals['_LISTCOLLECTIONSREQUEST']._serialized_start=1933
  _globals['_LISTCOLLECTIONSREQUEST']._serialized_end=1975
  _globals['_LISTCOLLECTIONSRESPONSE']._serialized_start=1977
  _globals['_LISTCOLLECTIONSRESPONSE']._serialized_end=2041
  _globals['_INSERTDOCUMENTREQUEST']._serialized_start=2043
  _globals['_INSERTDOCUMENTREQUEST']._serialized_end=2147
  _globals['_INSERTDOCUMENTRESPONSE']._serialized_start=2149
  _globals['_INSERTDOCUMENTRESPONSE']._serialized_end=2232
  _globals['_FINDDOCUMENTSREQUEST']._serialized_start=2234
  _globals['_FINDDOCUMENTSREQUEST']._serialized_end=2294
  _globals['_MONGODOCUMENT']._serialized_start=2297
  _globals['_MONGODOCUMENT']._serialized_end=2436
  _globals['_MONGODOCUMENT_FIELDSENTRY']._serialized_start=763
  _globals['_MONGODOCUMENT_FIELDSENTRY']._serialized_end=832
  _globals['_FINDDOCUMENTSRESPONSE']._serialized_start=2438
  _globals['_FINDDOCUMENTSRESPONSE']._serialized_end=2558
  _globals['_UPDATEDOCUMENTREQUEST']._serialized_start=2560
  _globals['_UPDATEDOCUMENTREQUEST']._serialized_end=2674
  _globals['_UPDATEDOCUMENTRESPONSE']._serialized_start=2676
  _globals['_UPDATEDOCUMENTRESPONSE']._serialized_end=2785
  _globals['_DELETEDOCUMENTREQUEST']._serialized_start=2787
  _globals['_DELETEDOCUMENTREQUEST']._serialized_end=2860
  _globals['_DELETEDOCUMENTRESPONSE']._serialized_start=2862
  _globals['_DELETEDOCUMENTRESPONSE']._serialized_end=2947
  _globals['_LISTKEYSREQUEST']._serialized_start=2949
  _globals['_LISTKEYSREQUEST']._serialized_end=2983
  _globals['_LISTKEYSRESPONSE']._serialized_start=2985
  _globals['_LISTKEYSRESPONSE']._serialized_end=3032
  _globals['_SETVALUEREQUEST']._serialized_start=3034
  _globals['_SETVALUEREQUEST']._serialized_end=3092
  _globals['_SETVALUERESPONSE']._serialized_start=3094
  _globals['_SETVALUERESPONSE']._serialized_end=3153
  _globals['_GETVALUEREQUEST']._serialized_start=3155
  _globals['_GETVALUEREQUEST']._serialized_end=3185
  _globals['_GETVALUERESPONSE']._serialized_start=3187
  _globals['_GETVALUERESPONSE']._serialized_end=3246
  _globals['_DELETEKEYREQUEST']._serialized_start=3248
  _globals['_DELETEKEYREQUEST']._serialized_end=3279
  _globals['_DELETEKEYRESPONSE']._serialized_start=3281
  _globals['_DELETEKEYRESPONSE']._serialized_end=3330
  _globals['_REDISINFOREQUEST']._serialized_start=3332
  _globals['_REDISINFOREQUEST']._serialized_end=3350
  _globals['_REDISINFORESPONSE']._serialized_start=3352
  _globals['_REDISINFORESPONSE']._serialized_end=3402
  _globals['_HEALTHSERVICE']._serialized_start=3405
  _globals['_HEALTHSERVICE']._serialized_end=3709
  _globals['_POSTGRESSERVICE']._serialized_start=3712
  _globals['_POSTGRESSERVICE']._serialized_end=4340
  _globals['_MONGOSERVICE']._serialized_start=4343
  _globals['_MONGOSERVICE']._serialized_end=4874
  _globals['_REDISSERVICE']._serialized_start=4877
  _globals['_REDISSERVICE']._serialized_end=5227
# @@protoc_insertion_point(module_scope)
