github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/bddtests/common/msp_principal_pb2.py (about)

     1  # Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  # source: common/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='common/msp_principal.proto',
    20    package='common',
    21    syntax='proto3',
    22    serialized_pb=_b('\n\x1a\x63ommon/msp_principal.proto\x12\x06\x63ommon\"\xb0\x01\n\x0cMSPPrincipal\x12\x44\n\x17PrincipalClassification\x18\x01 \x01(\x0e\x32#.common.MSPPrincipal.Classification\x12\x11\n\tPrincipal\x18\x03 \x01(\x0c\"G\n\x0e\x43lassification\x12\r\n\tByMSPRole\x10\x00\x12\x16\n\x12\x42yOrganizationUnit\x10\x01\x12\x0e\n\nByIdentity\x10\x02\"M\n\x10OrganizationUnit\x12\x15\n\rMSPIdentifier\x18\x01 \x01(\t\x12\"\n\x1aOrganizationUnitIdentifier\x18\x02 \x01(\t\"q\n\x07MSPRole\x12\x15\n\rMSPIdentifier\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\x64min\x10\x01\x42-Z+github.com/hyperledger/fabric/protos/commonb\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='ByMSPRole', index=0, number=0,
    36        options=None,
    37        type=None),
    38      _descriptor.EnumValueDescriptor(
    39        name='ByOrganizationUnit', index=1, number=1,
    40        options=None,
    41        type=None),
    42      _descriptor.EnumValueDescriptor(
    43        name='ByIdentity', index=2, number=2,
    44        options=None,
    45        type=None),
    46    ],
    47    containing_type=None,
    48    options=None,
    49    serialized_start=144,
    50    serialized_end=215,
    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=373,
    72    serialized_end=409,
    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='PrincipalClassification', full_name='common.MSPPrincipal.PrincipalClassification', 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=3, 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=39,
   112    serialized_end=215,
   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='MSPIdentifier', full_name='common.OrganizationUnit.MSPIdentifier', 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='OrganizationUnitIdentifier', full_name='common.OrganizationUnit.OrganizationUnitIdentifier', 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    ],
   138    extensions=[
   139    ],
   140    nested_types=[],
   141    enum_types=[
   142    ],
   143    options=None,
   144    is_extendable=False,
   145    syntax='proto3',
   146    extension_ranges=[],
   147    oneofs=[
   148    ],
   149    serialized_start=217,
   150    serialized_end=294,
   151  )
   152  
   153  
   154  _MSPROLE = _descriptor.Descriptor(
   155    name='MSPRole',
   156    full_name='common.MSPRole',
   157    filename=None,
   158    file=DESCRIPTOR,
   159    containing_type=None,
   160    fields=[
   161      _descriptor.FieldDescriptor(
   162        name='MSPIdentifier', full_name='common.MSPRole.MSPIdentifier', index=0,
   163        number=1, type=9, cpp_type=9, label=1,
   164        has_default_value=False, default_value=_b("").decode('utf-8'),
   165        message_type=None, enum_type=None, containing_type=None,
   166        is_extension=False, extension_scope=None,
   167        options=None),
   168      _descriptor.FieldDescriptor(
   169        name='Role', full_name='common.MSPRole.Role', index=1,
   170        number=2, type=14, cpp_type=8, label=1,
   171        has_default_value=False, default_value=0,
   172        message_type=None, enum_type=None, containing_type=None,
   173        is_extension=False, extension_scope=None,
   174        options=None),
   175    ],
   176    extensions=[
   177    ],
   178    nested_types=[],
   179    enum_types=[
   180      _MSPROLE_MSPROLETYPE,
   181    ],
   182    options=None,
   183    is_extendable=False,
   184    syntax='proto3',
   185    extension_ranges=[],
   186    oneofs=[
   187    ],
   188    serialized_start=296,
   189    serialized_end=409,
   190  )
   191  
   192  _MSPPRINCIPAL.fields_by_name['PrincipalClassification'].enum_type = _MSPPRINCIPAL_CLASSIFICATION
   193  _MSPPRINCIPAL_CLASSIFICATION.containing_type = _MSPPRINCIPAL
   194  _MSPROLE.fields_by_name['Role'].enum_type = _MSPROLE_MSPROLETYPE
   195  _MSPROLE_MSPROLETYPE.containing_type = _MSPROLE
   196  DESCRIPTOR.message_types_by_name['MSPPrincipal'] = _MSPPRINCIPAL
   197  DESCRIPTOR.message_types_by_name['OrganizationUnit'] = _ORGANIZATIONUNIT
   198  DESCRIPTOR.message_types_by_name['MSPRole'] = _MSPROLE
   199  
   200  MSPPrincipal = _reflection.GeneratedProtocolMessageType('MSPPrincipal', (_message.Message,), dict(
   201    DESCRIPTOR = _MSPPRINCIPAL,
   202    __module__ = 'common.msp_principal_pb2'
   203    # @@protoc_insertion_point(class_scope:common.MSPPrincipal)
   204    ))
   205  _sym_db.RegisterMessage(MSPPrincipal)
   206  
   207  OrganizationUnit = _reflection.GeneratedProtocolMessageType('OrganizationUnit', (_message.Message,), dict(
   208    DESCRIPTOR = _ORGANIZATIONUNIT,
   209    __module__ = 'common.msp_principal_pb2'
   210    # @@protoc_insertion_point(class_scope:common.OrganizationUnit)
   211    ))
   212  _sym_db.RegisterMessage(OrganizationUnit)
   213  
   214  MSPRole = _reflection.GeneratedProtocolMessageType('MSPRole', (_message.Message,), dict(
   215    DESCRIPTOR = _MSPROLE,
   216    __module__ = 'common.msp_principal_pb2'
   217    # @@protoc_insertion_point(class_scope:common.MSPRole)
   218    ))
   219  _sym_db.RegisterMessage(MSPRole)
   220  
   221  
   222  DESCRIPTOR.has_options = True
   223  DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z+github.com/hyperledger/fabric/protos/common'))
   224  try:
   225    # THESE ELEMENTS WILL BE DEPRECATED.
   226    # Please use the generated *_pb2_grpc.py files instead.
   227    import grpc
   228    from grpc.framework.common import cardinality
   229    from grpc.framework.interfaces.face import utilities as face_utilities
   230    from grpc.beta import implementations as beta_implementations
   231    from grpc.beta import interfaces as beta_interfaces
   232  except ImportError:
   233    pass
   234  # @@protoc_insertion_point(module_scope)