github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/msp/msp_config_pb2.py (about) 1 # Generated by the protocol buffer compiler. DO NOT EDIT! 2 # source: msp/msp_config.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 import descriptor as _descriptor 7 from google.protobuf import message as _message 8 from google.protobuf import reflection as _reflection 9 from google.protobuf import symbol_database as _symbol_database 10 from google.protobuf import descriptor_pb2 11 # @@protoc_insertion_point(imports) 12 13 _sym_db = _symbol_database.Default() 14 15 16 17 18 DESCRIPTOR = _descriptor.FileDescriptor( 19 name='msp/msp_config.proto', 20 package='msp', 21 syntax='proto3', 22 serialized_pb=_b('\n\x14msp/msp_config.proto\x12\x03msp\")\n\tMSPConfig\x12\x0c\n\x04type\x18\x01 \x01(\x05\x12\x0e\n\x06\x63onfig\x18\x02 \x01(\x0c\"\xee\x01\n\x0f\x46\x61\x62ricMSPConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nroot_certs\x18\x02 \x03(\x0c\x12\x1a\n\x12intermediate_certs\x18\x03 \x03(\x0c\x12\x0e\n\x06\x61\x64mins\x18\x04 \x03(\x0c\x12\x17\n\x0frevocation_list\x18\x05 \x03(\x0c\x12\x32\n\x10signing_identity\x18\x06 \x01(\x0b\x32\x18.msp.SigningIdentityInfo\x12@\n\x1forganizational_unit_identifiers\x18\x07 \x03(\x0b\x32\x17.msp.FabricOUIdentifier\"R\n\x13SigningIdentityInfo\x12\x15\n\rpublic_signer\x18\x01 \x01(\x0c\x12$\n\x0eprivate_signer\x18\x02 \x01(\x0b\x32\x0c.msp.KeyInfo\"7\n\x07KeyInfo\x12\x16\n\x0ekey_identifier\x18\x01 \x01(\t\x12\x14\n\x0ckey_material\x18\x02 \x01(\x0c\"[\n\x12\x46\x61\x62ricOUIdentifier\x12\x1d\n\x15\x63\x65rtifiers_identifier\x18\x01 \x01(\x0c\x12&\n\x1eorganizational_unit_identifier\x18\x02 \x01(\tB_\n!org.hyperledger.fabric.protos.mspB\x10MspConfigPackageZ(github.com/hyperledger/fabric/protos/mspb\x06proto3') 23 ) 24 _sym_db.RegisterFileDescriptor(DESCRIPTOR) 25 26 27 28 29 _MSPCONFIG = _descriptor.Descriptor( 30 name='MSPConfig', 31 full_name='msp.MSPConfig', 32 filename=None, 33 file=DESCRIPTOR, 34 containing_type=None, 35 fields=[ 36 _descriptor.FieldDescriptor( 37 name='type', full_name='msp.MSPConfig.type', index=0, 38 number=1, type=5, cpp_type=1, label=1, 39 has_default_value=False, default_value=0, 40 message_type=None, enum_type=None, containing_type=None, 41 is_extension=False, extension_scope=None, 42 options=None), 43 _descriptor.FieldDescriptor( 44 name='config', full_name='msp.MSPConfig.config', index=1, 45 number=2, type=12, cpp_type=9, label=1, 46 has_default_value=False, default_value=_b(""), 47 message_type=None, enum_type=None, containing_type=None, 48 is_extension=False, extension_scope=None, 49 options=None), 50 ], 51 extensions=[ 52 ], 53 nested_types=[], 54 enum_types=[ 55 ], 56 options=None, 57 is_extendable=False, 58 syntax='proto3', 59 extension_ranges=[], 60 oneofs=[ 61 ], 62 serialized_start=29, 63 serialized_end=70, 64 ) 65 66 67 _FABRICMSPCONFIG = _descriptor.Descriptor( 68 name='FabricMSPConfig', 69 full_name='msp.FabricMSPConfig', 70 filename=None, 71 file=DESCRIPTOR, 72 containing_type=None, 73 fields=[ 74 _descriptor.FieldDescriptor( 75 name='name', full_name='msp.FabricMSPConfig.name', index=0, 76 number=1, type=9, cpp_type=9, label=1, 77 has_default_value=False, default_value=_b("").decode('utf-8'), 78 message_type=None, enum_type=None, containing_type=None, 79 is_extension=False, extension_scope=None, 80 options=None), 81 _descriptor.FieldDescriptor( 82 name='root_certs', full_name='msp.FabricMSPConfig.root_certs', index=1, 83 number=2, type=12, cpp_type=9, label=3, 84 has_default_value=False, default_value=[], 85 message_type=None, enum_type=None, containing_type=None, 86 is_extension=False, extension_scope=None, 87 options=None), 88 _descriptor.FieldDescriptor( 89 name='intermediate_certs', full_name='msp.FabricMSPConfig.intermediate_certs', index=2, 90 number=3, type=12, cpp_type=9, label=3, 91 has_default_value=False, default_value=[], 92 message_type=None, enum_type=None, containing_type=None, 93 is_extension=False, extension_scope=None, 94 options=None), 95 _descriptor.FieldDescriptor( 96 name='admins', full_name='msp.FabricMSPConfig.admins', index=3, 97 number=4, type=12, cpp_type=9, label=3, 98 has_default_value=False, default_value=[], 99 message_type=None, enum_type=None, containing_type=None, 100 is_extension=False, extension_scope=None, 101 options=None), 102 _descriptor.FieldDescriptor( 103 name='revocation_list', full_name='msp.FabricMSPConfig.revocation_list', index=4, 104 number=5, type=12, cpp_type=9, label=3, 105 has_default_value=False, default_value=[], 106 message_type=None, enum_type=None, containing_type=None, 107 is_extension=False, extension_scope=None, 108 options=None), 109 _descriptor.FieldDescriptor( 110 name='signing_identity', full_name='msp.FabricMSPConfig.signing_identity', index=5, 111 number=6, type=11, cpp_type=10, label=1, 112 has_default_value=False, default_value=None, 113 message_type=None, enum_type=None, containing_type=None, 114 is_extension=False, extension_scope=None, 115 options=None), 116 _descriptor.FieldDescriptor( 117 name='organizational_unit_identifiers', full_name='msp.FabricMSPConfig.organizational_unit_identifiers', index=6, 118 number=7, type=11, cpp_type=10, label=3, 119 has_default_value=False, default_value=[], 120 message_type=None, enum_type=None, containing_type=None, 121 is_extension=False, extension_scope=None, 122 options=None), 123 ], 124 extensions=[ 125 ], 126 nested_types=[], 127 enum_types=[ 128 ], 129 options=None, 130 is_extendable=False, 131 syntax='proto3', 132 extension_ranges=[], 133 oneofs=[ 134 ], 135 serialized_start=73, 136 serialized_end=311, 137 ) 138 139 140 _SIGNINGIDENTITYINFO = _descriptor.Descriptor( 141 name='SigningIdentityInfo', 142 full_name='msp.SigningIdentityInfo', 143 filename=None, 144 file=DESCRIPTOR, 145 containing_type=None, 146 fields=[ 147 _descriptor.FieldDescriptor( 148 name='public_signer', full_name='msp.SigningIdentityInfo.public_signer', index=0, 149 number=1, type=12, cpp_type=9, label=1, 150 has_default_value=False, default_value=_b(""), 151 message_type=None, enum_type=None, containing_type=None, 152 is_extension=False, extension_scope=None, 153 options=None), 154 _descriptor.FieldDescriptor( 155 name='private_signer', full_name='msp.SigningIdentityInfo.private_signer', index=1, 156 number=2, type=11, cpp_type=10, label=1, 157 has_default_value=False, default_value=None, 158 message_type=None, enum_type=None, containing_type=None, 159 is_extension=False, extension_scope=None, 160 options=None), 161 ], 162 extensions=[ 163 ], 164 nested_types=[], 165 enum_types=[ 166 ], 167 options=None, 168 is_extendable=False, 169 syntax='proto3', 170 extension_ranges=[], 171 oneofs=[ 172 ], 173 serialized_start=313, 174 serialized_end=395, 175 ) 176 177 178 _KEYINFO = _descriptor.Descriptor( 179 name='KeyInfo', 180 full_name='msp.KeyInfo', 181 filename=None, 182 file=DESCRIPTOR, 183 containing_type=None, 184 fields=[ 185 _descriptor.FieldDescriptor( 186 name='key_identifier', full_name='msp.KeyInfo.key_identifier', index=0, 187 number=1, type=9, cpp_type=9, label=1, 188 has_default_value=False, default_value=_b("").decode('utf-8'), 189 message_type=None, enum_type=None, containing_type=None, 190 is_extension=False, extension_scope=None, 191 options=None), 192 _descriptor.FieldDescriptor( 193 name='key_material', full_name='msp.KeyInfo.key_material', index=1, 194 number=2, type=12, cpp_type=9, label=1, 195 has_default_value=False, default_value=_b(""), 196 message_type=None, enum_type=None, containing_type=None, 197 is_extension=False, extension_scope=None, 198 options=None), 199 ], 200 extensions=[ 201 ], 202 nested_types=[], 203 enum_types=[ 204 ], 205 options=None, 206 is_extendable=False, 207 syntax='proto3', 208 extension_ranges=[], 209 oneofs=[ 210 ], 211 serialized_start=397, 212 serialized_end=452, 213 ) 214 215 216 _FABRICOUIDENTIFIER = _descriptor.Descriptor( 217 name='FabricOUIdentifier', 218 full_name='msp.FabricOUIdentifier', 219 filename=None, 220 file=DESCRIPTOR, 221 containing_type=None, 222 fields=[ 223 _descriptor.FieldDescriptor( 224 name='certifiers_identifier', full_name='msp.FabricOUIdentifier.certifiers_identifier', index=0, 225 number=1, type=12, cpp_type=9, label=1, 226 has_default_value=False, default_value=_b(""), 227 message_type=None, enum_type=None, containing_type=None, 228 is_extension=False, extension_scope=None, 229 options=None), 230 _descriptor.FieldDescriptor( 231 name='organizational_unit_identifier', full_name='msp.FabricOUIdentifier.organizational_unit_identifier', index=1, 232 number=2, type=9, cpp_type=9, label=1, 233 has_default_value=False, default_value=_b("").decode('utf-8'), 234 message_type=None, enum_type=None, containing_type=None, 235 is_extension=False, extension_scope=None, 236 options=None), 237 ], 238 extensions=[ 239 ], 240 nested_types=[], 241 enum_types=[ 242 ], 243 options=None, 244 is_extendable=False, 245 syntax='proto3', 246 extension_ranges=[], 247 oneofs=[ 248 ], 249 serialized_start=454, 250 serialized_end=545, 251 ) 252 253 _FABRICMSPCONFIG.fields_by_name['signing_identity'].message_type = _SIGNINGIDENTITYINFO 254 _FABRICMSPCONFIG.fields_by_name['organizational_unit_identifiers'].message_type = _FABRICOUIDENTIFIER 255 _SIGNINGIDENTITYINFO.fields_by_name['private_signer'].message_type = _KEYINFO 256 DESCRIPTOR.message_types_by_name['MSPConfig'] = _MSPCONFIG 257 DESCRIPTOR.message_types_by_name['FabricMSPConfig'] = _FABRICMSPCONFIG 258 DESCRIPTOR.message_types_by_name['SigningIdentityInfo'] = _SIGNINGIDENTITYINFO 259 DESCRIPTOR.message_types_by_name['KeyInfo'] = _KEYINFO 260 DESCRIPTOR.message_types_by_name['FabricOUIdentifier'] = _FABRICOUIDENTIFIER 261 262 MSPConfig = _reflection.GeneratedProtocolMessageType('MSPConfig', (_message.Message,), dict( 263 DESCRIPTOR = _MSPCONFIG, 264 __module__ = 'msp.msp_config_pb2' 265 # @@protoc_insertion_point(class_scope:msp.MSPConfig) 266 )) 267 _sym_db.RegisterMessage(MSPConfig) 268 269 FabricMSPConfig = _reflection.GeneratedProtocolMessageType('FabricMSPConfig', (_message.Message,), dict( 270 DESCRIPTOR = _FABRICMSPCONFIG, 271 __module__ = 'msp.msp_config_pb2' 272 # @@protoc_insertion_point(class_scope:msp.FabricMSPConfig) 273 )) 274 _sym_db.RegisterMessage(FabricMSPConfig) 275 276 SigningIdentityInfo = _reflection.GeneratedProtocolMessageType('SigningIdentityInfo', (_message.Message,), dict( 277 DESCRIPTOR = _SIGNINGIDENTITYINFO, 278 __module__ = 'msp.msp_config_pb2' 279 # @@protoc_insertion_point(class_scope:msp.SigningIdentityInfo) 280 )) 281 _sym_db.RegisterMessage(SigningIdentityInfo) 282 283 KeyInfo = _reflection.GeneratedProtocolMessageType('KeyInfo', (_message.Message,), dict( 284 DESCRIPTOR = _KEYINFO, 285 __module__ = 'msp.msp_config_pb2' 286 # @@protoc_insertion_point(class_scope:msp.KeyInfo) 287 )) 288 _sym_db.RegisterMessage(KeyInfo) 289 290 FabricOUIdentifier = _reflection.GeneratedProtocolMessageType('FabricOUIdentifier', (_message.Message,), dict( 291 DESCRIPTOR = _FABRICOUIDENTIFIER, 292 __module__ = 'msp.msp_config_pb2' 293 # @@protoc_insertion_point(class_scope:msp.FabricOUIdentifier) 294 )) 295 _sym_db.RegisterMessage(FabricOUIdentifier) 296 297 298 DESCRIPTOR.has_options = True 299 DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n!org.hyperledger.fabric.protos.mspB\020MspConfigPackageZ(github.com/hyperledger/fabric/protos/msp')) 300 try: 301 # THESE ELEMENTS WILL BE DEPRECATED. 302 # Please use the generated *_pb2_grpc.py files instead. 303 import grpc 304 from grpc.framework.common import cardinality 305 from grpc.framework.interfaces.face import utilities as face_utilities 306 from grpc.beta import implementations as beta_implementations 307 from grpc.beta import interfaces as beta_interfaces 308 except ImportError: 309 pass 310 # @@protoc_insertion_point(module_scope)