github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/msp/msp_principal_pb2.py (about)

     1  # Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  # source: msp/msp_principal.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_principal.proto',
    20    package='common',
    21    syntax='proto3',
    22    serialized_pb=_b('\n\x17msp/msp_principal.proto\x12\x06\x63ommon\"\xa9\x01\n\x0cMSPPrincipal\x12\x45\n\x18principal_classification\x18\x01 \x01(\x0e\x32#.common.MSPPrincipal.Classification\x12\x11\n\tprincipal\x18\x02 \x01(\x0c\"?\n\x0e\x43lassification\x12\x08\n\x04ROLE\x10\x00\x12\x15\n\x11ORGANIZATION_UNIT\x10\x01\x12\x0c\n\x08IDENTITY\x10\x02\"q\n\x10OrganizationUnit\x12\x16\n\x0emsp_identifier\x18\x01 \x01(\t\x12&\n\x1eorganizational_unit_identifier\x18\x02 \x01(\t\x12\x1d\n\x15\x63\x65rtifiers_identifier\x18\x03 \x01(\x0c\"r\n\x07MSPRole\x12\x16\n\x0emsp_identifier\x18\x01 \x01(\t\x12)\n\x04role\x18\x02 \x01(\x0e\x32\x1b.common.MSPRole.MSPRoleType\"$\n\x0bMSPRoleType\x12\n\n\x06MEMBER\x10\x00\x12\t\n\x05\x41\x44MIN\x10\x01\x42P\n$org.hyperledger.fabric.protos.commonZ(github.com/hyperledger/fabric/protos/mspb\x06proto3')
    23  )
    24  _sym_db.RegisterFileDescriptor(DESCRIPTOR)
    25  
    26  
    27  
    28  _MSPPRINCIPAL_CLASSIFICATION = _descriptor.EnumDescriptor(
    29    name='Classification',
    30    full_name='common.MSPPrincipal.Classification',
    31    filename=None,
    32    file=DESCRIPTOR,
    33    values=[
    34      _descriptor.EnumValueDescriptor(
    35        name='ROLE', index=0, number=0,
    36        options=None,
    37        type=None),
    38      _descriptor.EnumValueDescriptor(
    39        name='ORGANIZATION_UNIT', index=1, number=1,
    40        options=None,
    41        type=None),
    42      _descriptor.EnumValueDescriptor(
    43        name='IDENTITY', index=2, number=2,
    44        options=None,
    45        type=None),
    46    ],
    47    containing_type=None,
    48    options=None,
    49    serialized_start=142,
    50    serialized_end=205,
    51  )
    52  _sym_db.RegisterEnumDescriptor(_MSPPRINCIPAL_CLASSIFICATION)
    53  
    54  _MSPROLE_MSPROLETYPE = _descriptor.EnumDescriptor(
    55    name='MSPRoleType',
    56    full_name='common.MSPRole.MSPRoleType',
    57    filename=None,
    58    file=DESCRIPTOR,
    59    values=[
    60      _descriptor.EnumValueDescriptor(
    61        name='MEMBER', index=0, number=0,
    62        options=None,
    63        type=None),
    64      _descriptor.EnumValueDescriptor(
    65        name='ADMIN', index=1, number=1,
    66        options=None,
    67        type=None),
    68    ],
    69    containing_type=None,
    70    options=None,
    71    serialized_start=400,
    72    serialized_end=436,
    73  )
    74  _sym_db.RegisterEnumDescriptor(_MSPROLE_MSPROLETYPE)
    75  
    76  
    77  _MSPPRINCIPAL = _descriptor.Descriptor(
    78    name='MSPPrincipal',
    79    full_name='common.MSPPrincipal',
    80    filename=None,
    81    file=DESCRIPTOR,
    82    containing_type=None,
    83    fields=[
    84      _descriptor.FieldDescriptor(
    85        name='principal_classification', full_name='common.MSPPrincipal.principal_classification', index=0,
    86        number=1, type=14, cpp_type=8, label=1,
    87        has_default_value=False, default_value=0,
    88        message_type=None, enum_type=None, containing_type=None,
    89        is_extension=False, extension_scope=None,
    90        options=None),
    91      _descriptor.FieldDescriptor(
    92        name='principal', full_name='common.MSPPrincipal.principal', index=1,
    93        number=2, type=12, cpp_type=9, label=1,
    94        has_default_value=False, default_value=_b(""),
    95        message_type=None, enum_type=None, containing_type=None,
    96        is_extension=False, extension_scope=None,
    97        options=None),
    98    ],
    99    extensions=[
   100    ],
   101    nested_types=[],
   102    enum_types=[
   103      _MSPPRINCIPAL_CLASSIFICATION,
   104    ],
   105    options=None,
   106    is_extendable=False,
   107    syntax='proto3',
   108    extension_ranges=[],
   109    oneofs=[
   110    ],
   111    serialized_start=36,
   112    serialized_end=205,
   113  )
   114  
   115  
   116  _ORGANIZATIONUNIT = _descriptor.Descriptor(
   117    name='OrganizationUnit',
   118    full_name='common.OrganizationUnit',
   119    filename=None,
   120    file=DESCRIPTOR,
   121    containing_type=None,
   122    fields=[
   123      _descriptor.FieldDescriptor(
   124        name='msp_identifier', full_name='common.OrganizationUnit.msp_identifier', index=0,
   125        number=1, type=9, cpp_type=9, label=1,
   126        has_default_value=False, default_value=_b("").decode('utf-8'),
   127        message_type=None, enum_type=None, containing_type=None,
   128        is_extension=False, extension_scope=None,
   129        options=None),
   130      _descriptor.FieldDescriptor(
   131        name='organizational_unit_identifier', full_name='common.OrganizationUnit.organizational_unit_identifier', index=1,
   132        number=2, type=9, cpp_type=9, label=1,
   133        has_default_value=False, default_value=_b("").decode('utf-8'),
   134        message_type=None, enum_type=None, containing_type=None,
   135        is_extension=False, extension_scope=None,
   136        options=None),
   137      _descriptor.FieldDescriptor(
   138        name='certifiers_identifier', full_name='common.OrganizationUnit.certifiers_identifier', index=2,
   139        number=3, type=12, cpp_type=9, label=1,
   140        has_default_value=False, default_value=_b(""),
   141        message_type=None, enum_type=None, containing_type=None,
   142        is_extension=False, extension_scope=None,
   143        options=None),
   144    ],
   145    extensions=[
   146    ],
   147    nested_types=[],
   148    enum_types=[
   149    ],
   150    options=None,
   151    is_extendable=False,
   152    syntax='proto3',
   153    extension_ranges=[],
   154    oneofs=[
   155    ],
   156    serialized_start=207,
   157    serialized_end=320,
   158  )
   159  
   160  
   161  _MSPROLE = _descriptor.Descriptor(
   162    name='MSPRole',
   163    full_name='common.MSPRole',
   164    filename=None,
   165    file=DESCRIPTOR,
   166    containing_type=None,
   167    fields=[
   168      _descriptor.FieldDescriptor(
   169        name='msp_identifier', full_name='common.MSPRole.msp_identifier', index=0,
   170        number=1, type=9, cpp_type=9, label=1,
   171        has_default_value=False, default_value=_b("").decode('utf-8'),
   172        message_type=None, enum_type=None, containing_type=None,
   173        is_extension=False, extension_scope=None,
   174        options=None),
   175      _descriptor.FieldDescriptor(
   176        name='role', full_name='common.MSPRole.role', index=1,
   177        number=2, type=14, cpp_type=8, label=1,
   178        has_default_value=False, default_value=0,
   179        message_type=None, enum_type=None, containing_type=None,
   180        is_extension=False, extension_scope=None,
   181        options=None),
   182    ],
   183    extensions=[
   184    ],
   185    nested_types=[],
   186    enum_types=[
   187      _MSPROLE_MSPROLETYPE,
   188    ],
   189    options=None,
   190    is_extendable=False,
   191    syntax='proto3',
   192    extension_ranges=[],
   193    oneofs=[
   194    ],
   195    serialized_start=322,
   196    serialized_end=436,
   197  )
   198  
   199  _MSPPRINCIPAL.fields_by_name['principal_classification'].enum_type = _MSPPRINCIPAL_CLASSIFICATION
   200  _MSPPRINCIPAL_CLASSIFICATION.containing_type = _MSPPRINCIPAL
   201  _MSPROLE.fields_by_name['role'].enum_type = _MSPROLE_MSPROLETYPE
   202  _MSPROLE_MSPROLETYPE.containing_type = _MSPROLE
   203  DESCRIPTOR.message_types_by_name['MSPPrincipal'] = _MSPPRINCIPAL
   204  DESCRIPTOR.message_types_by_name['OrganizationUnit'] = _ORGANIZATIONUNIT
   205  DESCRIPTOR.message_types_by_name['MSPRole'] = _MSPROLE
   206  
   207  MSPPrincipal = _reflection.GeneratedProtocolMessageType('MSPPrincipal', (_message.Message,), dict(
   208    DESCRIPTOR = _MSPPRINCIPAL,
   209    __module__ = 'msp.msp_principal_pb2'
   210    # @@protoc_insertion_point(class_scope:common.MSPPrincipal)
   211    ))
   212  _sym_db.RegisterMessage(MSPPrincipal)
   213  
   214  OrganizationUnit = _reflection.GeneratedProtocolMessageType('OrganizationUnit', (_message.Message,), dict(
   215    DESCRIPTOR = _ORGANIZATIONUNIT,
   216    __module__ = 'msp.msp_principal_pb2'
   217    # @@protoc_insertion_point(class_scope:common.OrganizationUnit)
   218    ))
   219  _sym_db.RegisterMessage(OrganizationUnit)
   220  
   221  MSPRole = _reflection.GeneratedProtocolMessageType('MSPRole', (_message.Message,), dict(
   222    DESCRIPTOR = _MSPROLE,
   223    __module__ = 'msp.msp_principal_pb2'
   224    # @@protoc_insertion_point(class_scope:common.MSPRole)
   225    ))
   226  _sym_db.RegisterMessage(MSPRole)
   227  
   228  
   229  DESCRIPTOR.has_options = True
   230  DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n$org.hyperledger.fabric.protos.commonZ(github.com/hyperledger/fabric/protos/msp'))
   231  try:
   232    # THESE ELEMENTS WILL BE DEPRECATED.
   233    # Please use the generated *_pb2_grpc.py files instead.
   234    import grpc
   235    from grpc.framework.common import cardinality
   236    from grpc.framework.interfaces.face import utilities as face_utilities
   237    from grpc.beta import implementations as beta_implementations
   238    from grpc.beta import interfaces as beta_interfaces
   239  except ImportError:
   240    pass
   241  # @@protoc_insertion_point(module_scope)