github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/bddtests/peer/events_pb2.py (about) 1 # Generated by the protocol buffer compiler. DO NOT EDIT! 2 # source: peer/events.proto 3 4 import sys 5 _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 6 from google.protobuf.internal import enum_type_wrapper 7 from google.protobuf import descriptor as _descriptor 8 from google.protobuf import message as _message 9 from google.protobuf import reflection as _reflection 10 from google.protobuf import symbol_database as _symbol_database 11 from google.protobuf import descriptor_pb2 12 # @@protoc_insertion_point(imports) 13 14 _sym_db = _symbol_database.Default() 15 16 17 from common import common_pb2 as common_dot_common__pb2 18 from peer import chaincode_event_pb2 as peer_dot_chaincode__event__pb2 19 from peer import transaction_pb2 as peer_dot_transaction__pb2 20 21 22 DESCRIPTOR = _descriptor.FileDescriptor( 23 name='peer/events.proto', 24 package='protos', 25 syntax='proto3', 26 serialized_pb=_b('\n\x11peer/events.proto\x12\x06protos\x1a\x13\x63ommon/common.proto\x1a\x1apeer/chaincode_event.proto\x1a\x16peer/transaction.proto\"8\n\x0c\x43haincodeReg\x12\x14\n\x0c\x63haincode_id\x18\x01 \x01(\t\x12\x12\n\nevent_name\x18\x02 \x01(\t\"\x81\x01\n\x08Interest\x12%\n\nevent_type\x18\x01 \x01(\x0e\x32\x11.protos.EventType\x12\x32\n\x12\x63haincode_reg_info\x18\x02 \x01(\x0b\x32\x14.protos.ChaincodeRegH\x00\x12\x0f\n\x07\x63hainID\x18\x03 \x01(\tB\t\n\x07RegInfo\",\n\x08Register\x12 \n\x06\x65vents\x18\x01 \x03(\x0b\x32\x10.protos.Interest\"?\n\tRejection\x12\x1f\n\x02tx\x18\x01 \x01(\x0b\x32\x13.protos.Transaction\x12\x11\n\terror_msg\x18\x02 \x01(\t\".\n\nUnregister\x12 \n\x06\x65vents\x18\x01 \x03(\x0b\x32\x10.protos.Interest\"4\n\x0bSignedEvent\x12\x11\n\tsignature\x18\x01 \x01(\x0c\x12\x12\n\neventBytes\x18\x02 \x01(\x0c\"\xec\x01\n\x05\x45vent\x12$\n\x08register\x18\x01 \x01(\x0b\x32\x10.protos.RegisterH\x00\x12\x1e\n\x05\x62lock\x18\x02 \x01(\x0b\x32\r.common.BlockH\x00\x12\x31\n\x0f\x63haincode_event\x18\x03 \x01(\x0b\x32\x16.protos.ChaincodeEventH\x00\x12&\n\trejection\x18\x04 \x01(\x0b\x32\x11.protos.RejectionH\x00\x12(\n\nunregister\x18\x05 \x01(\x0b\x32\x12.protos.UnregisterH\x00\x12\x0f\n\x07\x63reator\x18\x06 \x01(\x0c\x42\x07\n\x05\x45vent*B\n\tEventType\x12\x0c\n\x08REGISTER\x10\x00\x12\t\n\x05\x42LOCK\x10\x01\x12\r\n\tCHAINCODE\x10\x02\x12\r\n\tREJECTION\x10\x03\x32\x34\n\x06\x45vents\x12*\n\x04\x43hat\x12\r.protos.Event\x1a\r.protos.Event\"\x00(\x01\x30\x01\x42^\n\"org.hyperledger.fabric.protos.peerB\rEventsPackageZ)github.com/hyperledger/fabric/protos/peerb\x06proto3') 27 , 28 dependencies=[common_dot_common__pb2.DESCRIPTOR,peer_dot_chaincode__event__pb2.DESCRIPTOR,peer_dot_transaction__pb2.DESCRIPTOR,]) 29 _sym_db.RegisterFileDescriptor(DESCRIPTOR) 30 31 _EVENTTYPE = _descriptor.EnumDescriptor( 32 name='EventType', 33 full_name='protos.EventType', 34 filename=None, 35 file=DESCRIPTOR, 36 values=[ 37 _descriptor.EnumValueDescriptor( 38 name='REGISTER', index=0, number=0, 39 options=None, 40 type=None), 41 _descriptor.EnumValueDescriptor( 42 name='BLOCK', index=1, number=1, 43 options=None, 44 type=None), 45 _descriptor.EnumValueDescriptor( 46 name='CHAINCODE', index=2, number=2, 47 options=None, 48 type=None), 49 _descriptor.EnumValueDescriptor( 50 name='REJECTION', index=3, number=3, 51 options=None, 52 type=None), 53 ], 54 containing_type=None, 55 options=None, 56 serialized_start=744, 57 serialized_end=810, 58 ) 59 _sym_db.RegisterEnumDescriptor(_EVENTTYPE) 60 61 EventType = enum_type_wrapper.EnumTypeWrapper(_EVENTTYPE) 62 REGISTER = 0 63 BLOCK = 1 64 CHAINCODE = 2 65 REJECTION = 3 66 67 68 69 _CHAINCODEREG = _descriptor.Descriptor( 70 name='ChaincodeReg', 71 full_name='protos.ChaincodeReg', 72 filename=None, 73 file=DESCRIPTOR, 74 containing_type=None, 75 fields=[ 76 _descriptor.FieldDescriptor( 77 name='chaincode_id', full_name='protos.ChaincodeReg.chaincode_id', index=0, 78 number=1, type=9, cpp_type=9, label=1, 79 has_default_value=False, default_value=_b("").decode('utf-8'), 80 message_type=None, enum_type=None, containing_type=None, 81 is_extension=False, extension_scope=None, 82 options=None), 83 _descriptor.FieldDescriptor( 84 name='event_name', full_name='protos.ChaincodeReg.event_name', index=1, 85 number=2, type=9, cpp_type=9, label=1, 86 has_default_value=False, default_value=_b("").decode('utf-8'), 87 message_type=None, enum_type=None, containing_type=None, 88 is_extension=False, extension_scope=None, 89 options=None), 90 ], 91 extensions=[ 92 ], 93 nested_types=[], 94 enum_types=[ 95 ], 96 options=None, 97 is_extendable=False, 98 syntax='proto3', 99 extension_ranges=[], 100 oneofs=[ 101 ], 102 serialized_start=102, 103 serialized_end=158, 104 ) 105 106 107 _INTEREST = _descriptor.Descriptor( 108 name='Interest', 109 full_name='protos.Interest', 110 filename=None, 111 file=DESCRIPTOR, 112 containing_type=None, 113 fields=[ 114 _descriptor.FieldDescriptor( 115 name='event_type', full_name='protos.Interest.event_type', index=0, 116 number=1, type=14, cpp_type=8, label=1, 117 has_default_value=False, default_value=0, 118 message_type=None, enum_type=None, containing_type=None, 119 is_extension=False, extension_scope=None, 120 options=None), 121 _descriptor.FieldDescriptor( 122 name='chaincode_reg_info', full_name='protos.Interest.chaincode_reg_info', index=1, 123 number=2, type=11, cpp_type=10, label=1, 124 has_default_value=False, default_value=None, 125 message_type=None, enum_type=None, containing_type=None, 126 is_extension=False, extension_scope=None, 127 options=None), 128 _descriptor.FieldDescriptor( 129 name='chainID', full_name='protos.Interest.chainID', index=2, 130 number=3, type=9, cpp_type=9, label=1, 131 has_default_value=False, default_value=_b("").decode('utf-8'), 132 message_type=None, enum_type=None, containing_type=None, 133 is_extension=False, extension_scope=None, 134 options=None), 135 ], 136 extensions=[ 137 ], 138 nested_types=[], 139 enum_types=[ 140 ], 141 options=None, 142 is_extendable=False, 143 syntax='proto3', 144 extension_ranges=[], 145 oneofs=[ 146 _descriptor.OneofDescriptor( 147 name='RegInfo', full_name='protos.Interest.RegInfo', 148 index=0, containing_type=None, fields=[]), 149 ], 150 serialized_start=161, 151 serialized_end=290, 152 ) 153 154 155 _REGISTER = _descriptor.Descriptor( 156 name='Register', 157 full_name='protos.Register', 158 filename=None, 159 file=DESCRIPTOR, 160 containing_type=None, 161 fields=[ 162 _descriptor.FieldDescriptor( 163 name='events', full_name='protos.Register.events', index=0, 164 number=1, type=11, cpp_type=10, label=3, 165 has_default_value=False, default_value=[], 166 message_type=None, enum_type=None, containing_type=None, 167 is_extension=False, extension_scope=None, 168 options=None), 169 ], 170 extensions=[ 171 ], 172 nested_types=[], 173 enum_types=[ 174 ], 175 options=None, 176 is_extendable=False, 177 syntax='proto3', 178 extension_ranges=[], 179 oneofs=[ 180 ], 181 serialized_start=292, 182 serialized_end=336, 183 ) 184 185 186 _REJECTION = _descriptor.Descriptor( 187 name='Rejection', 188 full_name='protos.Rejection', 189 filename=None, 190 file=DESCRIPTOR, 191 containing_type=None, 192 fields=[ 193 _descriptor.FieldDescriptor( 194 name='tx', full_name='protos.Rejection.tx', index=0, 195 number=1, type=11, cpp_type=10, label=1, 196 has_default_value=False, default_value=None, 197 message_type=None, enum_type=None, containing_type=None, 198 is_extension=False, extension_scope=None, 199 options=None), 200 _descriptor.FieldDescriptor( 201 name='error_msg', full_name='protos.Rejection.error_msg', index=1, 202 number=2, type=9, cpp_type=9, label=1, 203 has_default_value=False, default_value=_b("").decode('utf-8'), 204 message_type=None, enum_type=None, containing_type=None, 205 is_extension=False, extension_scope=None, 206 options=None), 207 ], 208 extensions=[ 209 ], 210 nested_types=[], 211 enum_types=[ 212 ], 213 options=None, 214 is_extendable=False, 215 syntax='proto3', 216 extension_ranges=[], 217 oneofs=[ 218 ], 219 serialized_start=338, 220 serialized_end=401, 221 ) 222 223 224 _UNREGISTER = _descriptor.Descriptor( 225 name='Unregister', 226 full_name='protos.Unregister', 227 filename=None, 228 file=DESCRIPTOR, 229 containing_type=None, 230 fields=[ 231 _descriptor.FieldDescriptor( 232 name='events', full_name='protos.Unregister.events', index=0, 233 number=1, type=11, cpp_type=10, label=3, 234 has_default_value=False, default_value=[], 235 message_type=None, enum_type=None, containing_type=None, 236 is_extension=False, extension_scope=None, 237 options=None), 238 ], 239 extensions=[ 240 ], 241 nested_types=[], 242 enum_types=[ 243 ], 244 options=None, 245 is_extendable=False, 246 syntax='proto3', 247 extension_ranges=[], 248 oneofs=[ 249 ], 250 serialized_start=403, 251 serialized_end=449, 252 ) 253 254 255 _SIGNEDEVENT = _descriptor.Descriptor( 256 name='SignedEvent', 257 full_name='protos.SignedEvent', 258 filename=None, 259 file=DESCRIPTOR, 260 containing_type=None, 261 fields=[ 262 _descriptor.FieldDescriptor( 263 name='signature', full_name='protos.SignedEvent.signature', index=0, 264 number=1, type=12, cpp_type=9, label=1, 265 has_default_value=False, default_value=_b(""), 266 message_type=None, enum_type=None, containing_type=None, 267 is_extension=False, extension_scope=None, 268 options=None), 269 _descriptor.FieldDescriptor( 270 name='eventBytes', full_name='protos.SignedEvent.eventBytes', index=1, 271 number=2, type=12, cpp_type=9, label=1, 272 has_default_value=False, default_value=_b(""), 273 message_type=None, enum_type=None, containing_type=None, 274 is_extension=False, extension_scope=None, 275 options=None), 276 ], 277 extensions=[ 278 ], 279 nested_types=[], 280 enum_types=[ 281 ], 282 options=None, 283 is_extendable=False, 284 syntax='proto3', 285 extension_ranges=[], 286 oneofs=[ 287 ], 288 serialized_start=451, 289 serialized_end=503, 290 ) 291 292 293 _EVENT = _descriptor.Descriptor( 294 name='Event', 295 full_name='protos.Event', 296 filename=None, 297 file=DESCRIPTOR, 298 containing_type=None, 299 fields=[ 300 _descriptor.FieldDescriptor( 301 name='register', full_name='protos.Event.register', index=0, 302 number=1, type=11, cpp_type=10, label=1, 303 has_default_value=False, default_value=None, 304 message_type=None, enum_type=None, containing_type=None, 305 is_extension=False, extension_scope=None, 306 options=None), 307 _descriptor.FieldDescriptor( 308 name='block', full_name='protos.Event.block', index=1, 309 number=2, type=11, cpp_type=10, label=1, 310 has_default_value=False, default_value=None, 311 message_type=None, enum_type=None, containing_type=None, 312 is_extension=False, extension_scope=None, 313 options=None), 314 _descriptor.FieldDescriptor( 315 name='chaincode_event', full_name='protos.Event.chaincode_event', index=2, 316 number=3, type=11, cpp_type=10, label=1, 317 has_default_value=False, default_value=None, 318 message_type=None, enum_type=None, containing_type=None, 319 is_extension=False, extension_scope=None, 320 options=None), 321 _descriptor.FieldDescriptor( 322 name='rejection', full_name='protos.Event.rejection', index=3, 323 number=4, type=11, cpp_type=10, label=1, 324 has_default_value=False, default_value=None, 325 message_type=None, enum_type=None, containing_type=None, 326 is_extension=False, extension_scope=None, 327 options=None), 328 _descriptor.FieldDescriptor( 329 name='unregister', full_name='protos.Event.unregister', index=4, 330 number=5, type=11, cpp_type=10, label=1, 331 has_default_value=False, default_value=None, 332 message_type=None, enum_type=None, containing_type=None, 333 is_extension=False, extension_scope=None, 334 options=None), 335 _descriptor.FieldDescriptor( 336 name='creator', full_name='protos.Event.creator', index=5, 337 number=6, type=12, cpp_type=9, label=1, 338 has_default_value=False, default_value=_b(""), 339 message_type=None, enum_type=None, containing_type=None, 340 is_extension=False, extension_scope=None, 341 options=None), 342 ], 343 extensions=[ 344 ], 345 nested_types=[], 346 enum_types=[ 347 ], 348 options=None, 349 is_extendable=False, 350 syntax='proto3', 351 extension_ranges=[], 352 oneofs=[ 353 _descriptor.OneofDescriptor( 354 name='Event', full_name='protos.Event.Event', 355 index=0, containing_type=None, fields=[]), 356 ], 357 serialized_start=506, 358 serialized_end=742, 359 ) 360 361 _INTEREST.fields_by_name['event_type'].enum_type = _EVENTTYPE 362 _INTEREST.fields_by_name['chaincode_reg_info'].message_type = _CHAINCODEREG 363 _INTEREST.oneofs_by_name['RegInfo'].fields.append( 364 _INTEREST.fields_by_name['chaincode_reg_info']) 365 _INTEREST.fields_by_name['chaincode_reg_info'].containing_oneof = _INTEREST.oneofs_by_name['RegInfo'] 366 _REGISTER.fields_by_name['events'].message_type = _INTEREST 367 _REJECTION.fields_by_name['tx'].message_type = peer_dot_transaction__pb2._TRANSACTION 368 _UNREGISTER.fields_by_name['events'].message_type = _INTEREST 369 _EVENT.fields_by_name['register'].message_type = _REGISTER 370 _EVENT.fields_by_name['block'].message_type = common_dot_common__pb2._BLOCK 371 _EVENT.fields_by_name['chaincode_event'].message_type = peer_dot_chaincode__event__pb2._CHAINCODEEVENT 372 _EVENT.fields_by_name['rejection'].message_type = _REJECTION 373 _EVENT.fields_by_name['unregister'].message_type = _UNREGISTER 374 _EVENT.oneofs_by_name['Event'].fields.append( 375 _EVENT.fields_by_name['register']) 376 _EVENT.fields_by_name['register'].containing_oneof = _EVENT.oneofs_by_name['Event'] 377 _EVENT.oneofs_by_name['Event'].fields.append( 378 _EVENT.fields_by_name['block']) 379 _EVENT.fields_by_name['block'].containing_oneof = _EVENT.oneofs_by_name['Event'] 380 _EVENT.oneofs_by_name['Event'].fields.append( 381 _EVENT.fields_by_name['chaincode_event']) 382 _EVENT.fields_by_name['chaincode_event'].containing_oneof = _EVENT.oneofs_by_name['Event'] 383 _EVENT.oneofs_by_name['Event'].fields.append( 384 _EVENT.fields_by_name['rejection']) 385 _EVENT.fields_by_name['rejection'].containing_oneof = _EVENT.oneofs_by_name['Event'] 386 _EVENT.oneofs_by_name['Event'].fields.append( 387 _EVENT.fields_by_name['unregister']) 388 _EVENT.fields_by_name['unregister'].containing_oneof = _EVENT.oneofs_by_name['Event'] 389 DESCRIPTOR.message_types_by_name['ChaincodeReg'] = _CHAINCODEREG 390 DESCRIPTOR.message_types_by_name['Interest'] = _INTEREST 391 DESCRIPTOR.message_types_by_name['Register'] = _REGISTER 392 DESCRIPTOR.message_types_by_name['Rejection'] = _REJECTION 393 DESCRIPTOR.message_types_by_name['Unregister'] = _UNREGISTER 394 DESCRIPTOR.message_types_by_name['SignedEvent'] = _SIGNEDEVENT 395 DESCRIPTOR.message_types_by_name['Event'] = _EVENT 396 DESCRIPTOR.enum_types_by_name['EventType'] = _EVENTTYPE 397 398 ChaincodeReg = _reflection.GeneratedProtocolMessageType('ChaincodeReg', (_message.Message,), dict( 399 DESCRIPTOR = _CHAINCODEREG, 400 __module__ = 'peer.events_pb2' 401 # @@protoc_insertion_point(class_scope:protos.ChaincodeReg) 402 )) 403 _sym_db.RegisterMessage(ChaincodeReg) 404 405 Interest = _reflection.GeneratedProtocolMessageType('Interest', (_message.Message,), dict( 406 DESCRIPTOR = _INTEREST, 407 __module__ = 'peer.events_pb2' 408 # @@protoc_insertion_point(class_scope:protos.Interest) 409 )) 410 _sym_db.RegisterMessage(Interest) 411 412 Register = _reflection.GeneratedProtocolMessageType('Register', (_message.Message,), dict( 413 DESCRIPTOR = _REGISTER, 414 __module__ = 'peer.events_pb2' 415 # @@protoc_insertion_point(class_scope:protos.Register) 416 )) 417 _sym_db.RegisterMessage(Register) 418 419 Rejection = _reflection.GeneratedProtocolMessageType('Rejection', (_message.Message,), dict( 420 DESCRIPTOR = _REJECTION, 421 __module__ = 'peer.events_pb2' 422 # @@protoc_insertion_point(class_scope:protos.Rejection) 423 )) 424 _sym_db.RegisterMessage(Rejection) 425 426 Unregister = _reflection.GeneratedProtocolMessageType('Unregister', (_message.Message,), dict( 427 DESCRIPTOR = _UNREGISTER, 428 __module__ = 'peer.events_pb2' 429 # @@protoc_insertion_point(class_scope:protos.Unregister) 430 )) 431 _sym_db.RegisterMessage(Unregister) 432 433 SignedEvent = _reflection.GeneratedProtocolMessageType('SignedEvent', (_message.Message,), dict( 434 DESCRIPTOR = _SIGNEDEVENT, 435 __module__ = 'peer.events_pb2' 436 # @@protoc_insertion_point(class_scope:protos.SignedEvent) 437 )) 438 _sym_db.RegisterMessage(SignedEvent) 439 440 Event = _reflection.GeneratedProtocolMessageType('Event', (_message.Message,), dict( 441 DESCRIPTOR = _EVENT, 442 __module__ = 'peer.events_pb2' 443 # @@protoc_insertion_point(class_scope:protos.Event) 444 )) 445 _sym_db.RegisterMessage(Event) 446 447 448 DESCRIPTOR.has_options = True 449 DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"org.hyperledger.fabric.protos.peerB\rEventsPackageZ)github.com/hyperledger/fabric/protos/peer')) 450 try: 451 # THESE ELEMENTS WILL BE DEPRECATED. 452 # Please use the generated *_pb2_grpc.py files instead. 453 import grpc 454 from grpc.framework.common import cardinality 455 from grpc.framework.interfaces.face import utilities as face_utilities 456 from grpc.beta import implementations as beta_implementations 457 from grpc.beta import interfaces as beta_interfaces 458 459 460 class EventsStub(object): 461 """Interface exported by the events server 462 """ 463 464 def __init__(self, channel): 465 """Constructor. 466 467 Args: 468 channel: A grpc.Channel. 469 """ 470 self.Chat = channel.stream_stream( 471 '/protos.Events/Chat', 472 request_serializer=Event.SerializeToString, 473 response_deserializer=Event.FromString, 474 ) 475 476 477 class EventsServicer(object): 478 """Interface exported by the events server 479 """ 480 481 def Chat(self, request_iterator, context): 482 """event chatting using Event 483 """ 484 context.set_code(grpc.StatusCode.UNIMPLEMENTED) 485 context.set_details('Method not implemented!') 486 raise NotImplementedError('Method not implemented!') 487 488 489 def add_EventsServicer_to_server(servicer, server): 490 rpc_method_handlers = { 491 'Chat': grpc.stream_stream_rpc_method_handler( 492 servicer.Chat, 493 request_deserializer=Event.FromString, 494 response_serializer=Event.SerializeToString, 495 ), 496 } 497 generic_handler = grpc.method_handlers_generic_handler( 498 'protos.Events', rpc_method_handlers) 499 server.add_generic_rpc_handlers((generic_handler,)) 500 501 502 class BetaEventsServicer(object): 503 """The Beta API is deprecated for 0.15.0 and later. 504 505 It is recommended to use the GA API (classes and functions in this 506 file not marked beta) for all further purposes. This class was generated 507 only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.""" 508 """Interface exported by the events server 509 """ 510 def Chat(self, request_iterator, context): 511 """event chatting using Event 512 """ 513 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED) 514 515 516 class BetaEventsStub(object): 517 """The Beta API is deprecated for 0.15.0 and later. 518 519 It is recommended to use the GA API (classes and functions in this 520 file not marked beta) for all further purposes. This class was generated 521 only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.""" 522 """Interface exported by the events server 523 """ 524 def Chat(self, request_iterator, timeout, metadata=None, with_call=False, protocol_options=None): 525 """event chatting using Event 526 """ 527 raise NotImplementedError() 528 529 530 def beta_create_Events_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None): 531 """The Beta API is deprecated for 0.15.0 and later. 532 533 It is recommended to use the GA API (classes and functions in this 534 file not marked beta) for all further purposes. This function was 535 generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0""" 536 request_deserializers = { 537 ('protos.Events', 'Chat'): Event.FromString, 538 } 539 response_serializers = { 540 ('protos.Events', 'Chat'): Event.SerializeToString, 541 } 542 method_implementations = { 543 ('protos.Events', 'Chat'): face_utilities.stream_stream_inline(servicer.Chat), 544 } 545 server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout) 546 return beta_implementations.server(method_implementations, options=server_options) 547 548 549 def beta_create_Events_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None): 550 """The Beta API is deprecated for 0.15.0 and later. 551 552 It is recommended to use the GA API (classes and functions in this 553 file not marked beta) for all further purposes. This function was 554 generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0""" 555 request_serializers = { 556 ('protos.Events', 'Chat'): Event.SerializeToString, 557 } 558 response_deserializers = { 559 ('protos.Events', 'Chat'): Event.FromString, 560 } 561 cardinalities = { 562 'Chat': cardinality.Cardinality.STREAM_STREAM, 563 } 564 stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size) 565 return beta_implementations.dynamic_stub(channel, 'protos.Events', cardinalities, options=stub_options) 566 except ImportError: 567 pass 568 # @@protoc_insertion_point(module_scope)