1# Copyright (c) 2017, 2020, Oracle and/or its affiliates. 2# 3# This program is free software; you can redistribute it and/or modify 4# it under the terms of the GNU General Public License, version 2.0, as 5# published by the Free Software Foundation. 6# 7# This program is also distributed with certain software (including 8# but not limited to OpenSSL) that is licensed under separate terms, 9# as designated in a particular file or component or in included license 10# documentation. The authors of MySQL hereby grant you an 11# additional permission to link the program and your derivative works 12# with the separately licensed software that they have included with 13# MySQL. 14# 15# Without limiting anything contained in the foregoing, this file, 16# which is part of MySQL Connector/Python, is also subject to the 17# Universal FOSS Exception, version 1.0, a copy of which can be found at 18# http://oss.oracle.com/licenses/universal-foss-exception. 19# 20# This program is distributed in the hope that it will be useful, but 21# WITHOUT ANY WARRANTY; without even the implied warranty of 22# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23# See the GNU General Public License, version 2.0, for more details. 24# 25# You should have received a copy of the GNU General Public License 26# along with this program; if not, write to the Free Software Foundation, Inc., 27# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 28 29# Generated by the protocol buffer compiler. DO NOT EDIT! 30# source: mysqlx_resultset.proto 31 32import sys 33_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 34from google.protobuf.internal import enum_type_wrapper 35from google.protobuf import descriptor as _descriptor 36from google.protobuf import message as _message 37from google.protobuf import reflection as _reflection 38from google.protobuf import symbol_database as _symbol_database 39from google.protobuf import descriptor_pb2 40# @@protoc_insertion_point(imports) 41 42_sym_db = _symbol_database.Default() 43 44 45 46 47DESCRIPTOR = _descriptor.FileDescriptor( 48 name='mysqlx_resultset.proto', 49 package='Mysqlx.Resultset', 50 syntax='proto2', 51 serialized_pb=_b('\n\x16mysqlx_resultset.proto\x12\x10Mysqlx.Resultset\"\x18\n\x16\x46\x65tchDoneMoreOutParams\"\x19\n\x17\x46\x65tchDoneMoreResultsets\"\x0b\n\tFetchDone\"\x10\n\x0e\x46\x65tchSuspended\"\x9f\x03\n\x0e\x43olumnMetaData\x12\x38\n\x04type\x18\x01 \x02(\x0e\x32*.Mysqlx.Resultset.ColumnMetaData.FieldType\x12\x0c\n\x04name\x18\x02 \x01(\x0c\x12\x15\n\roriginal_name\x18\x03 \x01(\x0c\x12\r\n\x05table\x18\x04 \x01(\x0c\x12\x16\n\x0eoriginal_table\x18\x05 \x01(\x0c\x12\x0e\n\x06schema\x18\x06 \x01(\x0c\x12\x0f\n\x07\x63\x61talog\x18\x07 \x01(\x0c\x12\x11\n\tcollation\x18\x08 \x01(\x04\x12\x19\n\x11\x66ractional_digits\x18\t \x01(\r\x12\x0e\n\x06length\x18\n \x01(\r\x12\r\n\x05\x66lags\x18\x0b \x01(\r\x12\x14\n\x0c\x63ontent_type\x18\x0c \x01(\r\"\x82\x01\n\tFieldType\x12\x08\n\x04SINT\x10\x01\x12\x08\n\x04UINT\x10\x02\x12\n\n\x06\x44OUBLE\x10\x05\x12\t\n\x05\x46LOAT\x10\x06\x12\t\n\x05\x42YTES\x10\x07\x12\x08\n\x04TIME\x10\n\x12\x0c\n\x08\x44\x41TETIME\x10\x0c\x12\x07\n\x03SET\x10\x0f\x12\x08\n\x04\x45NUM\x10\x10\x12\x07\n\x03\x42IT\x10\x11\x12\x0b\n\x07\x44\x45\x43IMAL\x10\x12\"\x14\n\x03Row\x12\r\n\x05\x66ield\x18\x01 \x03(\x0c*4\n\x11\x43ontentType_BYTES\x12\x0c\n\x08GEOMETRY\x10\x01\x12\x08\n\x04JSON\x10\x02\x12\x07\n\x03XML\x10\x03*.\n\x14\x43ontentType_DATETIME\x12\x08\n\x04\x44\x41TE\x10\x01\x12\x0c\n\x08\x44\x41TETIME\x10\x02\x42\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03') 52) 53_sym_db.RegisterFileDescriptor(DESCRIPTOR) 54 55_CONTENTTYPE_BYTES = _descriptor.EnumDescriptor( 56 name='ContentType_BYTES', 57 full_name='Mysqlx.Resultset.ContentType_BYTES', 58 filename=None, 59 file=DESCRIPTOR, 60 values=[ 61 _descriptor.EnumValueDescriptor( 62 name='GEOMETRY', index=0, number=1, 63 options=None, 64 type=None), 65 _descriptor.EnumValueDescriptor( 66 name='JSON', index=1, number=2, 67 options=None, 68 type=None), 69 _descriptor.EnumValueDescriptor( 70 name='XML', index=2, number=3, 71 options=None, 72 type=None), 73 ], 74 containing_type=None, 75 options=None, 76 serialized_start=568, 77 serialized_end=620, 78) 79_sym_db.RegisterEnumDescriptor(_CONTENTTYPE_BYTES) 80 81ContentType_BYTES = enum_type_wrapper.EnumTypeWrapper(_CONTENTTYPE_BYTES) 82_CONTENTTYPE_DATETIME = _descriptor.EnumDescriptor( 83 name='ContentType_DATETIME', 84 full_name='Mysqlx.Resultset.ContentType_DATETIME', 85 filename=None, 86 file=DESCRIPTOR, 87 values=[ 88 _descriptor.EnumValueDescriptor( 89 name='DATE', index=0, number=1, 90 options=None, 91 type=None), 92 _descriptor.EnumValueDescriptor( 93 name='DATETIME', index=1, number=2, 94 options=None, 95 type=None), 96 ], 97 containing_type=None, 98 options=None, 99 serialized_start=622, 100 serialized_end=668, 101) 102_sym_db.RegisterEnumDescriptor(_CONTENTTYPE_DATETIME) 103 104ContentType_DATETIME = enum_type_wrapper.EnumTypeWrapper(_CONTENTTYPE_DATETIME) 105GEOMETRY = 1 106JSON = 2 107XML = 3 108DATE = 1 109DATETIME = 2 110 111 112_COLUMNMETADATA_FIELDTYPE = _descriptor.EnumDescriptor( 113 name='FieldType', 114 full_name='Mysqlx.Resultset.ColumnMetaData.FieldType', 115 filename=None, 116 file=DESCRIPTOR, 117 values=[ 118 _descriptor.EnumValueDescriptor( 119 name='SINT', index=0, number=1, 120 options=None, 121 type=None), 122 _descriptor.EnumValueDescriptor( 123 name='UINT', index=1, number=2, 124 options=None, 125 type=None), 126 _descriptor.EnumValueDescriptor( 127 name='DOUBLE', index=2, number=5, 128 options=None, 129 type=None), 130 _descriptor.EnumValueDescriptor( 131 name='FLOAT', index=3, number=6, 132 options=None, 133 type=None), 134 _descriptor.EnumValueDescriptor( 135 name='BYTES', index=4, number=7, 136 options=None, 137 type=None), 138 _descriptor.EnumValueDescriptor( 139 name='TIME', index=5, number=10, 140 options=None, 141 type=None), 142 _descriptor.EnumValueDescriptor( 143 name='DATETIME', index=6, number=12, 144 options=None, 145 type=None), 146 _descriptor.EnumValueDescriptor( 147 name='SET', index=7, number=15, 148 options=None, 149 type=None), 150 _descriptor.EnumValueDescriptor( 151 name='ENUM', index=8, number=16, 152 options=None, 153 type=None), 154 _descriptor.EnumValueDescriptor( 155 name='BIT', index=9, number=17, 156 options=None, 157 type=None), 158 _descriptor.EnumValueDescriptor( 159 name='DECIMAL', index=10, number=18, 160 options=None, 161 type=None), 162 ], 163 containing_type=None, 164 options=None, 165 serialized_start=414, 166 serialized_end=544, 167) 168_sym_db.RegisterEnumDescriptor(_COLUMNMETADATA_FIELDTYPE) 169 170 171_FETCHDONEMOREOUTPARAMS = _descriptor.Descriptor( 172 name='FetchDoneMoreOutParams', 173 full_name='Mysqlx.Resultset.FetchDoneMoreOutParams', 174 filename=None, 175 file=DESCRIPTOR, 176 containing_type=None, 177 fields=[ 178 ], 179 extensions=[ 180 ], 181 nested_types=[], 182 enum_types=[ 183 ], 184 options=None, 185 is_extendable=False, 186 syntax='proto2', 187 extension_ranges=[], 188 oneofs=[ 189 ], 190 serialized_start=44, 191 serialized_end=68, 192) 193 194 195_FETCHDONEMORERESULTSETS = _descriptor.Descriptor( 196 name='FetchDoneMoreResultsets', 197 full_name='Mysqlx.Resultset.FetchDoneMoreResultsets', 198 filename=None, 199 file=DESCRIPTOR, 200 containing_type=None, 201 fields=[ 202 ], 203 extensions=[ 204 ], 205 nested_types=[], 206 enum_types=[ 207 ], 208 options=None, 209 is_extendable=False, 210 syntax='proto2', 211 extension_ranges=[], 212 oneofs=[ 213 ], 214 serialized_start=70, 215 serialized_end=95, 216) 217 218 219_FETCHDONE = _descriptor.Descriptor( 220 name='FetchDone', 221 full_name='Mysqlx.Resultset.FetchDone', 222 filename=None, 223 file=DESCRIPTOR, 224 containing_type=None, 225 fields=[ 226 ], 227 extensions=[ 228 ], 229 nested_types=[], 230 enum_types=[ 231 ], 232 options=None, 233 is_extendable=False, 234 syntax='proto2', 235 extension_ranges=[], 236 oneofs=[ 237 ], 238 serialized_start=97, 239 serialized_end=108, 240) 241 242 243_FETCHSUSPENDED = _descriptor.Descriptor( 244 name='FetchSuspended', 245 full_name='Mysqlx.Resultset.FetchSuspended', 246 filename=None, 247 file=DESCRIPTOR, 248 containing_type=None, 249 fields=[ 250 ], 251 extensions=[ 252 ], 253 nested_types=[], 254 enum_types=[ 255 ], 256 options=None, 257 is_extendable=False, 258 syntax='proto2', 259 extension_ranges=[], 260 oneofs=[ 261 ], 262 serialized_start=110, 263 serialized_end=126, 264) 265 266 267_COLUMNMETADATA = _descriptor.Descriptor( 268 name='ColumnMetaData', 269 full_name='Mysqlx.Resultset.ColumnMetaData', 270 filename=None, 271 file=DESCRIPTOR, 272 containing_type=None, 273 fields=[ 274 _descriptor.FieldDescriptor( 275 name='type', full_name='Mysqlx.Resultset.ColumnMetaData.type', index=0, 276 number=1, type=14, cpp_type=8, label=2, 277 has_default_value=False, default_value=1, 278 message_type=None, enum_type=None, containing_type=None, 279 is_extension=False, extension_scope=None, 280 options=None), 281 _descriptor.FieldDescriptor( 282 name='name', full_name='Mysqlx.Resultset.ColumnMetaData.name', index=1, 283 number=2, type=12, cpp_type=9, label=1, 284 has_default_value=False, default_value=_b(""), 285 message_type=None, enum_type=None, containing_type=None, 286 is_extension=False, extension_scope=None, 287 options=None), 288 _descriptor.FieldDescriptor( 289 name='original_name', full_name='Mysqlx.Resultset.ColumnMetaData.original_name', index=2, 290 number=3, type=12, cpp_type=9, label=1, 291 has_default_value=False, default_value=_b(""), 292 message_type=None, enum_type=None, containing_type=None, 293 is_extension=False, extension_scope=None, 294 options=None), 295 _descriptor.FieldDescriptor( 296 name='table', full_name='Mysqlx.Resultset.ColumnMetaData.table', index=3, 297 number=4, type=12, cpp_type=9, label=1, 298 has_default_value=False, default_value=_b(""), 299 message_type=None, enum_type=None, containing_type=None, 300 is_extension=False, extension_scope=None, 301 options=None), 302 _descriptor.FieldDescriptor( 303 name='original_table', full_name='Mysqlx.Resultset.ColumnMetaData.original_table', index=4, 304 number=5, type=12, cpp_type=9, label=1, 305 has_default_value=False, default_value=_b(""), 306 message_type=None, enum_type=None, containing_type=None, 307 is_extension=False, extension_scope=None, 308 options=None), 309 _descriptor.FieldDescriptor( 310 name='schema', full_name='Mysqlx.Resultset.ColumnMetaData.schema', index=5, 311 number=6, type=12, cpp_type=9, label=1, 312 has_default_value=False, default_value=_b(""), 313 message_type=None, enum_type=None, containing_type=None, 314 is_extension=False, extension_scope=None, 315 options=None), 316 _descriptor.FieldDescriptor( 317 name='catalog', full_name='Mysqlx.Resultset.ColumnMetaData.catalog', index=6, 318 number=7, type=12, cpp_type=9, label=1, 319 has_default_value=False, default_value=_b(""), 320 message_type=None, enum_type=None, containing_type=None, 321 is_extension=False, extension_scope=None, 322 options=None), 323 _descriptor.FieldDescriptor( 324 name='collation', full_name='Mysqlx.Resultset.ColumnMetaData.collation', index=7, 325 number=8, type=4, cpp_type=4, label=1, 326 has_default_value=False, default_value=0, 327 message_type=None, enum_type=None, containing_type=None, 328 is_extension=False, extension_scope=None, 329 options=None), 330 _descriptor.FieldDescriptor( 331 name='fractional_digits', full_name='Mysqlx.Resultset.ColumnMetaData.fractional_digits', index=8, 332 number=9, type=13, cpp_type=3, label=1, 333 has_default_value=False, default_value=0, 334 message_type=None, enum_type=None, containing_type=None, 335 is_extension=False, extension_scope=None, 336 options=None), 337 _descriptor.FieldDescriptor( 338 name='length', full_name='Mysqlx.Resultset.ColumnMetaData.length', index=9, 339 number=10, type=13, cpp_type=3, label=1, 340 has_default_value=False, default_value=0, 341 message_type=None, enum_type=None, containing_type=None, 342 is_extension=False, extension_scope=None, 343 options=None), 344 _descriptor.FieldDescriptor( 345 name='flags', full_name='Mysqlx.Resultset.ColumnMetaData.flags', index=10, 346 number=11, type=13, cpp_type=3, label=1, 347 has_default_value=False, default_value=0, 348 message_type=None, enum_type=None, containing_type=None, 349 is_extension=False, extension_scope=None, 350 options=None), 351 _descriptor.FieldDescriptor( 352 name='content_type', full_name='Mysqlx.Resultset.ColumnMetaData.content_type', index=11, 353 number=12, type=13, cpp_type=3, label=1, 354 has_default_value=False, default_value=0, 355 message_type=None, enum_type=None, containing_type=None, 356 is_extension=False, extension_scope=None, 357 options=None), 358 ], 359 extensions=[ 360 ], 361 nested_types=[], 362 enum_types=[ 363 _COLUMNMETADATA_FIELDTYPE, 364 ], 365 options=None, 366 is_extendable=False, 367 syntax='proto2', 368 extension_ranges=[], 369 oneofs=[ 370 ], 371 serialized_start=129, 372 serialized_end=544, 373) 374 375 376_ROW = _descriptor.Descriptor( 377 name='Row', 378 full_name='Mysqlx.Resultset.Row', 379 filename=None, 380 file=DESCRIPTOR, 381 containing_type=None, 382 fields=[ 383 _descriptor.FieldDescriptor( 384 name='field', full_name='Mysqlx.Resultset.Row.field', index=0, 385 number=1, type=12, cpp_type=9, label=3, 386 has_default_value=False, default_value=[], 387 message_type=None, enum_type=None, containing_type=None, 388 is_extension=False, extension_scope=None, 389 options=None), 390 ], 391 extensions=[ 392 ], 393 nested_types=[], 394 enum_types=[ 395 ], 396 options=None, 397 is_extendable=False, 398 syntax='proto2', 399 extension_ranges=[], 400 oneofs=[ 401 ], 402 serialized_start=546, 403 serialized_end=566, 404) 405 406_COLUMNMETADATA.fields_by_name['type'].enum_type = _COLUMNMETADATA_FIELDTYPE 407_COLUMNMETADATA_FIELDTYPE.containing_type = _COLUMNMETADATA 408DESCRIPTOR.message_types_by_name['FetchDoneMoreOutParams'] = _FETCHDONEMOREOUTPARAMS 409DESCRIPTOR.message_types_by_name['FetchDoneMoreResultsets'] = _FETCHDONEMORERESULTSETS 410DESCRIPTOR.message_types_by_name['FetchDone'] = _FETCHDONE 411DESCRIPTOR.message_types_by_name['FetchSuspended'] = _FETCHSUSPENDED 412DESCRIPTOR.message_types_by_name['ColumnMetaData'] = _COLUMNMETADATA 413DESCRIPTOR.message_types_by_name['Row'] = _ROW 414DESCRIPTOR.enum_types_by_name['ContentType_BYTES'] = _CONTENTTYPE_BYTES 415DESCRIPTOR.enum_types_by_name['ContentType_DATETIME'] = _CONTENTTYPE_DATETIME 416 417FetchDoneMoreOutParams = _reflection.GeneratedProtocolMessageType('FetchDoneMoreOutParams', (_message.Message,), dict( 418 DESCRIPTOR = _FETCHDONEMOREOUTPARAMS, 419 __module__ = 'mysqlx_resultset_pb2' 420 # @@protoc_insertion_point(class_scope:Mysqlx.Resultset.FetchDoneMoreOutParams) 421 )) 422_sym_db.RegisterMessage(FetchDoneMoreOutParams) 423 424FetchDoneMoreResultsets = _reflection.GeneratedProtocolMessageType('FetchDoneMoreResultsets', (_message.Message,), dict( 425 DESCRIPTOR = _FETCHDONEMORERESULTSETS, 426 __module__ = 'mysqlx_resultset_pb2' 427 # @@protoc_insertion_point(class_scope:Mysqlx.Resultset.FetchDoneMoreResultsets) 428 )) 429_sym_db.RegisterMessage(FetchDoneMoreResultsets) 430 431FetchDone = _reflection.GeneratedProtocolMessageType('FetchDone', (_message.Message,), dict( 432 DESCRIPTOR = _FETCHDONE, 433 __module__ = 'mysqlx_resultset_pb2' 434 # @@protoc_insertion_point(class_scope:Mysqlx.Resultset.FetchDone) 435 )) 436_sym_db.RegisterMessage(FetchDone) 437 438FetchSuspended = _reflection.GeneratedProtocolMessageType('FetchSuspended', (_message.Message,), dict( 439 DESCRIPTOR = _FETCHSUSPENDED, 440 __module__ = 'mysqlx_resultset_pb2' 441 # @@protoc_insertion_point(class_scope:Mysqlx.Resultset.FetchSuspended) 442 )) 443_sym_db.RegisterMessage(FetchSuspended) 444 445ColumnMetaData = _reflection.GeneratedProtocolMessageType('ColumnMetaData', (_message.Message,), dict( 446 DESCRIPTOR = _COLUMNMETADATA, 447 __module__ = 'mysqlx_resultset_pb2' 448 # @@protoc_insertion_point(class_scope:Mysqlx.Resultset.ColumnMetaData) 449 )) 450_sym_db.RegisterMessage(ColumnMetaData) 451 452Row = _reflection.GeneratedProtocolMessageType('Row', (_message.Message,), dict( 453 DESCRIPTOR = _ROW, 454 __module__ = 'mysqlx_resultset_pb2' 455 # @@protoc_insertion_point(class_scope:Mysqlx.Resultset.Row) 456 )) 457_sym_db.RegisterMessage(Row) 458 459 460DESCRIPTOR.has_options = True 461DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003')) 462# @@protoc_insertion_point(module_scope) 463