github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/bddtests/peer/configuration_pb2.py (about)

     1  # Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  # source: peer/configuration.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='peer/configuration.proto',
    20    package='protos',
    21    syntax='proto3',
    22    serialized_pb=_b('\n\x18peer/configuration.proto\x12\x06protos\"7\n\x0b\x41nchorPeers\x12(\n\x0c\x61nchor_peers\x18\x01 \x03(\x0b\x32\x12.protos.AnchorPeer\"(\n\nAnchorPeer\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x42O\n\"org.hyperledger.fabric.protos.peerZ)github.com/hyperledger/fabric/protos/peerb\x06proto3')
    23  )
    24  _sym_db.RegisterFileDescriptor(DESCRIPTOR)
    25  
    26  
    27  
    28  
    29  _ANCHORPEERS = _descriptor.Descriptor(
    30    name='AnchorPeers',
    31    full_name='protos.AnchorPeers',
    32    filename=None,
    33    file=DESCRIPTOR,
    34    containing_type=None,
    35    fields=[
    36      _descriptor.FieldDescriptor(
    37        name='anchor_peers', full_name='protos.AnchorPeers.anchor_peers', index=0,
    38        number=1, type=11, cpp_type=10, label=3,
    39        has_default_value=False, default_value=[],
    40        message_type=None, enum_type=None, containing_type=None,
    41        is_extension=False, extension_scope=None,
    42        options=None),
    43    ],
    44    extensions=[
    45    ],
    46    nested_types=[],
    47    enum_types=[
    48    ],
    49    options=None,
    50    is_extendable=False,
    51    syntax='proto3',
    52    extension_ranges=[],
    53    oneofs=[
    54    ],
    55    serialized_start=36,
    56    serialized_end=91,
    57  )
    58  
    59  
    60  _ANCHORPEER = _descriptor.Descriptor(
    61    name='AnchorPeer',
    62    full_name='protos.AnchorPeer',
    63    filename=None,
    64    file=DESCRIPTOR,
    65    containing_type=None,
    66    fields=[
    67      _descriptor.FieldDescriptor(
    68        name='host', full_name='protos.AnchorPeer.host', index=0,
    69        number=1, type=9, cpp_type=9, label=1,
    70        has_default_value=False, default_value=_b("").decode('utf-8'),
    71        message_type=None, enum_type=None, containing_type=None,
    72        is_extension=False, extension_scope=None,
    73        options=None),
    74      _descriptor.FieldDescriptor(
    75        name='port', full_name='protos.AnchorPeer.port', index=1,
    76        number=2, type=5, cpp_type=1, label=1,
    77        has_default_value=False, default_value=0,
    78        message_type=None, enum_type=None, containing_type=None,
    79        is_extension=False, extension_scope=None,
    80        options=None),
    81    ],
    82    extensions=[
    83    ],
    84    nested_types=[],
    85    enum_types=[
    86    ],
    87    options=None,
    88    is_extendable=False,
    89    syntax='proto3',
    90    extension_ranges=[],
    91    oneofs=[
    92    ],
    93    serialized_start=93,
    94    serialized_end=133,
    95  )
    96  
    97  _ANCHORPEERS.fields_by_name['anchor_peers'].message_type = _ANCHORPEER
    98  DESCRIPTOR.message_types_by_name['AnchorPeers'] = _ANCHORPEERS
    99  DESCRIPTOR.message_types_by_name['AnchorPeer'] = _ANCHORPEER
   100  
   101  AnchorPeers = _reflection.GeneratedProtocolMessageType('AnchorPeers', (_message.Message,), dict(
   102    DESCRIPTOR = _ANCHORPEERS,
   103    __module__ = 'peer.configuration_pb2'
   104    # @@protoc_insertion_point(class_scope:protos.AnchorPeers)
   105    ))
   106  _sym_db.RegisterMessage(AnchorPeers)
   107  
   108  AnchorPeer = _reflection.GeneratedProtocolMessageType('AnchorPeer', (_message.Message,), dict(
   109    DESCRIPTOR = _ANCHORPEER,
   110    __module__ = 'peer.configuration_pb2'
   111    # @@protoc_insertion_point(class_scope:protos.AnchorPeer)
   112    ))
   113  _sym_db.RegisterMessage(AnchorPeer)
   114  
   115  
   116  DESCRIPTOR.has_options = True
   117  DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"org.hyperledger.fabric.protos.peerZ)github.com/hyperledger/fabric/protos/peer'))
   118  try:
   119    # THESE ELEMENTS WILL BE DEPRECATED.
   120    # Please use the generated *_pb2_grpc.py files instead.
   121    import grpc
   122    from grpc.framework.common import cardinality
   123    from grpc.framework.interfaces.face import utilities as face_utilities
   124    from grpc.beta import implementations as beta_implementations
   125    from grpc.beta import interfaces as beta_interfaces
   126  except ImportError:
   127    pass
   128  # @@protoc_insertion_point(module_scope)